vnc console change certificate

mir

Famous Member
Apr 14, 2012
3,570
132
133
Copenhagen, Denmark
Hi all,

Has someone been able to change the default certificate on proxmox and at the same time have the vnc console working?
Getting apache to work is easy but no matter what I do I cannot make the vnc console working with another certificate than the one provide by default from the proxmox installation.
 
The error message from Java:
Initializing...
Connecting to pve.datanom.net, port 5900...
Connected to server
RFB server supports protocol version 3.8
Using RFB protocol version 3.8
VeNCrypt chooser
X509Plain
Generating TLS context
Doing TLS handshake
Error: TLS handshake failed javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: certificate does not match
java.lang.Exception: TLS handshake failed javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: certificate does not match
at com.tigervnc.vncviewer.TLSTunnelBase.setup(TLSTunnelBase.java:73)
at com.tigervnc.vncviewer.RfbProto.authenticateX509(RfbProto.java:416)
at com.tigervnc.vncviewer.VncViewer.doAuthentification(VncViewer.java:445)
at com.tigervnc.vncviewer.VncViewer.doAuthentification(VncViewer.java:406)
at com.tigervnc.vncviewer.VncViewer.connectAndAuthenticate(VncViewer.java:385)
at com.tigervnc.vncviewer.VncViewer.run(VncViewer.java:202)
at java.lang.Thread.run(Thread.java:662)
RFB socket closed