You are not logged in.

#1 2019-01-08 15:50:25

leniviy
Member
Registered: 2009-05-23
Posts: 177

vncviewer <-> x11vnc TLSVnc fail "no shared ci"

Hi.
Is it possible to enable TLS in x11vnc the same way TigerVNC (Xvnc) server does out of the box?
When I connect to Xvnc, the client prints:

 CConnection: Choosing security type VeNCrypt(19)
 CVeNCrypt:   Choosing security type TLSVnc (258)

And then all is fine.

Then I launch x11vnc with the following arguments:

/usr/bin/x11vnc -ssl -vencrypt only -rfbauth /root/.vnc/passwd -forever -loop -display :0 -auth '/run/lightdm/root/:0'

When I try to connect to x11vnc, the client prints:

 CConnection: Choosing security type VeNCrypt(19)
 CVeNCrypt:   Choosing security type TLSVnc (258)
 TLS:         TLS Handshake failed: A TLS fatal alert has been received.

Segmentation fault (core dumped)

x11vnc prints:

SSL: accept_openssl(OPENSSL_VNC6)
SSL: spawning helper process to handle: ::1:45924
SSL: helper for peerport 45924 is pid 927:
connect_tcp: trying:   127.0.0.1 20000
check_vnc_tls_mode: waited: 1.434843 / 1.40 input: (future) RFB Handshake
check_vnc_tls_mode: version: 3.8
check_vnc_tls_mode: reply: 19 (VeNCrypt)
vencrypt: received 0.2 client version.
vencrypt: client selected sub-type: 258 (rfbVencryptTlsVnc)
Using Anonymous Diffie-Hellman mode.
WARNING: Anonymous Diffie-Hellman uses encryption but is
WARNING: susceptible to a Man-In-The-Middle attack.
loaded Diffie Hellman 1024 bits, 0.000s
SSL: ssl_init[927]: 10/10 initialization timeout: 20 secs.
SSL: ssl_helper[927]: SSL_accept() *FATAL: -1 SSL FAILED
SSL: error:1417A0C1:SSL routines:tls_post_process_client_hello:no shared ci>
SSL: ssl_helper[927]: Proto: unknown
SSL: accept_openssl: cookie from ssl_helper[927] FAILED. 0

Arch 64, xfce4

Offline

#2 2020-05-08 14:00:33

vishnumotghare
Member
Registered: 2020-05-08
Posts: 1

Re: vncviewer <-> x11vnc TLSVnc fail "no shared ci"

Hi leniviy,

I'.m also facing same problem. Did you get the solution for this?

Regards,
Vishnu M

Offline

Board footer

Powered by FluxBB