secure connection with novnc for VM's

Roeffus

Cadet
Joined
Apr 22, 2016
Messages
9
I am trying to make a secure connection to my ubuntuVM which i have made in the Freenas (11.3-U3.2) Webgui.
if i run:

curl -i https://theipofmyfreenasserver:portofbhyvevncinterface

i get the following result
Code:
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to theipofmyfreenasserver:portofbhyvevncinterface


apparently novnc is not configured for a secure connection, but you can have a password on the interface....

Does anyone have the knowledge on how to add this?
 
Last edited:

Roeffus

Cadet
Joined
Apr 22, 2016
Messages
9
Found the following:

If you have a self.pem at the top-level of you noVNC repo/installation then launch.sh will automatically add the --cert option to the websockify invocation.

The private key which freenas creates can be changed to a pem file (https://stackoverflow.com/questions/991758/how-to-get-pem-file-from-key-and-crt-files)
Just change the filename to self.pem, put it on the server and move it to /usr/local/libexec/novnc/ should work. I will reboot later this day to see if it worked.
 

Roeffus

Cadet
Joined
Apr 22, 2016
Messages
9
On the stackoverflow page someone stated that the .pem file should contain the key and crt. So i did this:
cat server.crt server.key > self.pem
I have rebooted, but when i force a https connection, i get:
ERR_CONNECTION_CLOSED

So i am a bit stuck now. Any tips?
 

ljchuying

Cadet
Joined
Dec 21, 2021
Messages
2
On the stackoverflow page someone stated that the .pem file should contain the key and crt. So i did this:
cat server.crt server.key > self.pem
I have rebooted, but when i force a https connection, i get:


So i am a bit stuck now. Any tips?
Excuse me, has your problem been solved?
 
Top