Public bug reported:
Kubuntu 22.04, tigervnc-common 1.12.0+dfsg-4 amd64
What happens:
When I start tigervncserver with option -SecurityTypes X509Plain it reports the
following error:
vncserver -geometry 1920x1080 -localhost no -autokill -SecurityTypes
X509Plain
You will require a certificate to use X509None, X509Vnc, or X509Plain.
I will generate a self signed certificate for you in
/home/mb/.vnc/demk-wks-400-SrvCert.pem.
-----
Cannot write random bytes:
4057E14E287F0000:error:1200007A:random number generator:RAND_write_file:Not a
regular file:../crypto/rand/randfile.c:190:Filename=/dev/urandom
The openssl command /usr/bin/openssl req -newkey
ec:/etc/tigervnc/openssl-ecparams.pem -x509 -days 2190 -nodes -config - -out
/home/mb/.vnc/demk-wks-400-SrvCert.pem -keyout
/home/mb/.vnc/demk-wks-400-SrvKey.pem failed: 256
which seems plausible since it can't write to /dev/urandmon.
What should happen:
vncserver creates a self signed certifiate and starts.
Workaround (fix?) is to comment out the following line in
/etc/tigervnc/openssl.cnf:
#RANDFILE = /dev/urandom
** Affects: tigervnc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973292
Title:
tigervnc server can't generate SSL certificate
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tigervnc/+bug/1973292/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs