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:
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>