Cannot connect using https

839 views
Skip to first unread message

Masrur Akif

unread,
Aug 5, 2021, 11:55:05 AM8/5/21
to noVNC
Hello,

I currently have a setup running noVNC on a Raspberry Pi that's connected to a port running TightVNC on a separate laptop. I can connect to the noVNC (http://<ip-address>:<listen-port>:vnc.html) and access the VNC-server normally but I can't connect to it if I'm on a different network or when I enter https instead of http. I am running websockify as a daemon process.

This is what I've done so far:

sudo apt install novnc
sudo apt install websockify

cd /etc/ssl/
sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365

cd ~
sudo websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/self.pem <listen-port> <ip-address>:<port>

My goal is to be able to connect to the noVNC from any network through a https link.

Thanks in advance.

Masrur Akif

unread,
Aug 5, 2021, 2:08:49 PM8/5/21
to noVNC
Just an update, I mixed up the file names for my SSL certificate so the daemon service couldn't detect the certificate. I am able to connect through a https link but I am still unable to connect to it from a different network.

Samuel Mannehed

unread,
Aug 10, 2021, 12:43:58 PM8/10/21
to no...@googlegroups.com
Hi Masrur,

On 8/5/21 20:08, Masrur Akif wrote:
> Just an update, I mixed up the file names for my SSL certificate so
> the daemon service couldn't detect the certificate. I am able to
> connect through a https link but I am still unable to connect to it
> from a different network.

This is not really a question for noVNC, it's quite generic about
networking. It's not something we're experts at here. I suggest looking
for help regarding opening ports to the internet from a local machine on
your LAN. You probably need to configure port forwarding in your router.

Once you're able to reach your host from outside your local network,
accessing noVNC or Websockify shouldn't be a problem.

Sorry to not be able to help more, good luck.

Regards,
--
Samuel
Cendio AB

deyber molina cruz

unread,
May 13, 2022, 1:09:24 PM5/13/22
to noVNC
Cordial saludo.


Vi tu mensaje y me sucede igual, no me permite abrir https, solo puedo abrirla por http, ¿Como hiciste para solucionarlo me puedes indicar por favor?
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/linux/nombreequipo.pem 4080 localhost:5901
Reply all
Reply to author
Forward
0 new messages