Getting the following error while accessing the VPS via NoVNC in SolusVm UI.
SVM_ERROR: Server disconnected (code:1006)
WebSocket Error: Network Error 12045, The certificate authority is invalid or incorrect
SSL settings required for NoVNC to work are not configured
Here is the check list of settings below:
Browse to Dashboard > Nodes > Edit node next to localhost settings page and verify that hostname of the node set to domain that was secured with Let's Encrypt.
Browse to Dashboard > Configuration > General > Other and set the noVNC Socket Location as Master Node
Connect to the SolusVM Master Node via SSH and rename the
/usr/local/solusvm/data/config.inifile on the SolusVM Master server and update the settings as below:
;; Set this to true if you want noVNC to access the websocket with the remote servers hostname. All the hostnames must resolve correctly. Default (false) is to use the ip address of the remote server
use_remote_hostname = true
;; Set this to true if you want the socket on the host to forward packets across the public network
socket_dest_public = false
Configure SSL certificate for the domain name of the SolusVM Master server. It is possible to generate Let's Encrypt certificate as per the article
Update the SSL file to the NoVNC SSL location using the below command.
# cd /usr/local/svmstack/nginx/ssl/
# cat ssl.key ssl.crt > /usr/local/solusvm/includes/nvnc/cert.pem \
Restart web server:
# service svmstack-nginx restart
Stop web socket:
# sh /scripts/websocket-stop
Try to connect over noVNC in SolusVM > Virtual Servers > VPS > VNC - it will automatically restart the socket.