How to Handle the Problem That the Untrusted Certificate Error Is Reported When VNC Access Is Enabled using vncmanager in SUSE 12
Question
The untrusted certificate error is reported when VNC access is enabled using vncmanager in SUSE Linux 12.
Answer
Run the following commands as the administrator to generate a new certificate:
The command for restarting the VNCManager service will terminate logged in user sessions and processes. Ensure that important operations such as installation, upgrade, and restoration of the database are not performed when the command is executed.
rm /etc/vnc/tls.key /etc/vnc/tls.cert
openssl genrsa -out /etc/vnc/tls.key 2048
openssl req -new -x509 -extensions usr_cert -key /etc/vnc/tls.key -out /etc/vnc/tls.cert -days 7305 -subj "/CN=VNC service on `hostname`/"
chmod 644 /etc/vnc/tls.key
chmod 644 /etc/vnc/tls.cert
systemctl restart vncmanager.service
systemctl restart display-manager.service