Thank you for the suggestions. This is what I get from the client side (masked with HOST, IP, PORT):
(venv) eskil@zappa Desktop % open /Applications/TigerVNC\ Viewer\
1.11.0.app --args -Log \*:file:100
(venv) eskil@zappa Desktop % cat /tmp/vncviewer.log
Thu Aug 26 18:10:27 2021
DecodeManager: Detected 4 CPU core(s)
DecodeManager: Creating 4 decoder thread(s)
TcpSocket: Connecting to HOST [IP] port PORT
CConn: Connected to host HOST port PORT
Thu Aug 26 18:10:29 2021
CConnection: reading protocol version
CConnection: Server supports RFB protocol version 3.8
CConnection: Using RFB protocol version 3.8
CConnection: processing security types message
CConnection: Server offers security type VeNCrypt(19)
CConnection: Server offers security type [unknown secType](18)
CConnection: Choosing security type VeNCrypt(19)
CConnection: processing security message
CConnection: processing security message
CConnection: processing security message
CConnection: processing security message
CConnection: processing security message
CVeNCrypt: Server offers security type TLSVnc (258)
CConnection: processing security message
CVeNCrypt: Server offers security type X509Vnc (261)
CVeNCrypt: Choosing security type TLSVnc (258)
CConnection: processing security message
TLS: Anonymous session has been set
CConnection: processing security message
TLS: TLS Handshake failed: A TLS fatal alert has been received.
TLS:
CConn: Authentication failure: TLS Handshake failed
On the server side, there is a log file (I have not configured it so I don't know the level) which contains this for my attempt:
Looking at this myself, I wondered what would happen if I turned off the "Anonymous SSL" under "Security" in the client. Then I get a warning that the "hostname does not match server certificate" but if I accept this and proceed, I can actually log in. So, the problem seems to be that the server thinks TLSVnc should work, but it doesn't. If I then only accept X509Vnc on the client, then it works - with the warning. I guess I could fix a proper certificate at the server side, and use the X509Vnc. But I'm still curious why the TLSVnc doesn't work?