[PVE-User] External VNC Applet

Adnan RIHAN axel50397 at gmail.com
Mon Oct 8 11:27:03 CEST 2012


Aha !
Done !

I had to change the pve-root-ca.pem file too.

Thank you all !
--  
Cordialement, Adnan RIHAN.
Président-Fondateur de l'association (de loi 1901) Virtual-Info (http://www.virtual-info.info/), hébergeur Web et Serveurs de Jeux.
Directeur-Technique pour le groupe Rininvest.
Consultant (http://rihan.fr/)-Technicien Supérieur en Informatique de Gestion.
Ambassadeur Qt (http://lyt.me/7E) (Projet Tag-PG (http://rihan.fr/projects/system/tagpg)).


Le dimanche 7 octobre 2012 à 20:44, Adnan RIHAN a écrit :

> Ok thanks.
>  
> It's strange, don't you have a certificate confirmation from Java, for a cert "www.proxmox.com (http://www.proxmox.com)" ?
>  
> --  
> Cordialement, Adnan RIHAN.
> Directeur-Technique pour l'Hôtel Olympic Palace, Brazzaville.
> Président-Fondateur de l'association Virtual-Info (Loi 1901),
> hébergement Web et Serveurs de jeux.
> Technicien-Supérieur développeur d'applications Web et Système.
> Envoyé de mon iPhone 
>  
>  
> Le 7 oct. 2012 à 20:17, Guy <guy at britewhite.net (mailto:guy at britewhite.net)> a écrit :
>  
> > it's on a different server.. I copied the .jar file from the proxmox and host it on my portal server.  I did nothing with the jar file but copied it.
> >  
> > I have my own root cert, and signed for proxmox server and the portal however I don't think that makes any difference here.
> >  
> > Cheers,
> >  
> > --Guy
> >  
> >  
> >  
> >  
> > On 7 Oct 2012, at 18:49, Adnan RIHAN <axel50397 at gmail.com (mailto:axel50397 at gmail.com)> wrote:
> > > Thanks.
> > > Is your code on the same server as proxmox or another one, and you've downloaded the .jar on your external server ?
> > >  
> > > And the jar, did you recompiled it, or resigned it, and do you have a valid SSL cert ? (Because I've changed web interface SSL cert for a valid one, and I got an SSL error)  
> > >  
> > > --  
> > > Cordialement, Adnan RIHAN.
> > > Président-Fondateur de l'association (de loi 1901) Virtual-Info (http://www.virtual-info.info/), hébergeur Web et Serveurs de Jeux.  
> > > Directeur-Technique pour le groupe Rininvest.
> > > Consultant (http://rihan.fr/)-Technicien Supérieur en Informatique de Gestion.
> > > Ambassadeur Qt (http://lyt.me/7E) (Projet Tag-PG (http://rihan.fr/projects/system/tagpg)).  
> > >  
> > >  
> > > Le dimanche 7 octobre 2012 à 19:36, Guy a écrit :
> > >  
> > > > Here's a copy of my HTML/Ruby which opens a console..It works, however it does suffer from the console hanging after a short idle time.  I've never managed to solve that...
> > > >  
> > > > <HTML class="x-border-box x-quirks x-viewport">
> > > > <HEAD><TITLE>Client Console: <%= @vm.comment %></TITLE>
> > > > <script type="text/javascript" src="/ext-all-debug.js"></script>
> > > > <script type="text/javascript">function gettext(buf) { return buf; }</script>
> > > > <script type="text/javascript" src="/pvemanagerlib.js"></script>
> > > >  
> > > > </HEAD>
> > > >  
> > > > <body class="x-body x-webkit x-safari x-mac x-reset x-container x-container-default x-layout-fit" id="ext-gen1009" role="application">  
> > > > <div id="pveKVMConsole-1018-body" class="x-panel-body x-panel-body-default x-panel-body-default x-layout-fit x-docked-noborder-right x-docked-noborder-bottom x-docked-noborder-left" style="width: 1024px; height: 768px; left: 0px; top: 0px; ">
> > > > <div id="component-1019" class="x-component x-fit-item x-component-default" role="presentation" style="margin: 0px; width: 1024px; height: 767px; ">
> > > >  
> > > > <applet width="100%" height="100%" border="false" archive="/VncViewer.jar" code="com.tigervnc.vncviewer.VncViewer" style="width: 1024px; height: 768px;">
> > > >     <param name="PVECert" value="<%= @newcert %>">
> > > >     <param name="HOST" value="<%= @host %>">
> > > >     <param name="PORT" value="<%= @vncport %>">  
> > > >     <param name="Show Controls" value="No">
> > > >     <param name="Offer Relogin" value="No">  
> > > >     <param name="USERNAME" value="<%= @username %>">
> > > >     <param name="PASSWORD" value="<%= @ticket %>">
> > > > </APPLET>
> > > >  
> > > > </div></div>
> > > >     <!-- Fields required for history management -->
> > > >     <form id="history-form" class="x-hidden">
> > > >     <input type="hidden" id="x-history-field">
> > > >     </form>
> > > >    
> > > >  
> > > > <iframe frameborder="0" class="x-shim" src="about:blank" id="ext-gen1014" style="display: none; "></iframe><div id="ext-comp-1015" class="x-tip x-tip-default x-layer" style="position: absolute; display: none; left: 373px; top: 214px; " role="tooltip" aria-labelledby="component-1017"><div id="ext-comp-1015-body" class="x-tip-body  x-tip-body-default x-tip-body-default"></div><div class="x-tip-anchor x-tip-anchor-top" id="ext-gen1011" style="z-index: 1; "></div></div><div tabindex="-1" class="x-focus-element" id="ext-gen1035"> </div></body>  
> > > > </HTML>
> > > >  
> > > >  
> > > >  
> > > >  
> > > > Cheers,
> > > >  
> > > > --Guy
> > > >  
> > > >  
> > > >  
> > > >  
> > > > On 7 Oct 2012, at 18:00, Adnan RIHAN <axel50397 at gmail.com (mailto:axel50397 at gmail.com)> wrote:
> > > > > [Sent to pve-devel, no answer :/]  
> > > > >  
> > > > > Hello Proxmox !
> > > > >  
> > > > > I have some VPS (PV2 2.1) and I'm making some APIs (Proxy API) to allow my customers building their own app/website to manage their VPS.
> > > > >  
> > > > > Today, I'm making a test script to show the VNCViewer (vncproxy) from my computer, and I'm trying to make it LIKE the proxmox VNCViewer. I'm ok with the headers, the tokens, the ticket and the info about the VNC (PORT/Cert/User/Pass). My problem is embedding proxmox (tigervnc) java applet in an external HTML Page.
> > > > >  
> > > > > Here is my code: http://pastebin.com/aG3m0FYs
> > > > >  
> > > > > I've checked the 'param's, they're good (I put them correctly), and I also have a valid certificate on proxmox (pve-ssl.key & pve-ssl.pem).
> > > > > So, when I try to load the page, the applet shows blackscreen for less than 1 sec then "Error: Server did not offer supported security type".
> > > > >  
> > > > > I know that there is a thing with authentication not supported by the new VNC servers, but I'm strictly using the same applet that on my proxmox server, but maybe I'm using it badly.
> > > > > Then I've noticed that the applet is trying to connect to the current webpage hostname, not the hostname of the server where the .jar is.
> > > > >  
> > > > > So... I've read tigerVNC sources a little, and I found a "Server" parameter. So I tried to add it in the <param> list:
> > > > > > <param name='Server' value='<?php echo "MY_HOST::".$res->data->port; ?>'>Still the same Error. Maybe the server only accepts localhost connection… Or does anyone have an idea :) ?
> > > > >  
> > > > > Thank you all !
> > > > >  
> > > > > --  
> > > > > Cordialement, Adnan RIHAN.
> > > > > Président-Fondateur de l'association (de loi 1901) Virtual-Info (http://www.virtual-info.info/), hébergeur Web et Serveurs de Jeux.  
> > > > > Directeur-Technique pour le groupe Rininvest.
> > > > > Consultant (http://rihan.fr/)-Technicien Supérieur en Informatique de Gestion.
> > > > > Ambassadeur Qt (http://lyt.me/7E) (Projet Tag-PG (http://rihan.fr/projects/system/tagpg)). _______________________________________________
> > > > > pve-user mailing list
> > > > > pve-user at pve.proxmox.com (mailto:pve-user at pve.proxmox.com)
> > > > > http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
> > > >  
> > > >  
> > > > Pièces jointes :  
> > > > - smime.p7s
> > > >  
> > > >  
> > >  
> > >  
> >  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20121008/d879022c/attachment-0014.html>


More information about the pve-user mailing list