VNCViewer certificate problem

Zrychli

New Member
Sep 25, 2013
2
0
1
Hello everyone. I was trying to make VNC work through php calls but no success so far.
I use VNCViewer.jar which is used itself by the proxmox UI.
To implement console i copied "applet" tag completely from proxmox's console window and added auto replacement of all needed variales with php.
But when i open a page i get java IO exception saying that it can't load certificate "Incomplete data".
What could be wrong? I thought that maybe some extra steps should be taken besides "\n" with "|" replacement, but proxmox produces the same output as i do. But mine does not work.
Came up with this:
Code:
<html class="x-border-box x-quirks x-viewport"><head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body>
<applet width="100%" height="100%" border="false" archive="VncViewer.jar" code="com.tigervnc.vncviewer.VncViewer" id="pveOpenVZConsole-1018-vncapp" style="width: 745px; height: 426">

<param value="pveOpenVZConsole-1018-vncapp" name="id">
<param value="xxxx" name="PORT">
<param value="xxxx" name="PASSWORD">
<param value="root@pam" name="USERNAME">
<param value="No" name="Show Controls">
<param value="No" name="Offer Relogin">
<param value="-----BEGIN CERTIFICATE-----......." name="PVECert">
</applet>
</body>
</html>
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!