Websocket SSL error

Hi all, recently I having a problem with websockets, and not sure what exactly has changed which is giving me problems, I saw in other posts lxd made some changes enforcing connecting to the control when using websocket but i am getting a different error, not sure which package or dependency has changed which causes this.

client connected
wss://192.168.1.250:8443/1.0/operations/bc9eed73-b786-4b15-a131-7ec0348a1474/websocket?secret=fd5128550f5f19ecf8be21db34507dcc62f99a7edf1aca8f0a673962f4a9f7d4
{ Error: write EPROTO 281473552515072:error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 70

Note for the last few years been proxying the request using Node js and it was fine, and its just stopped working. Have any other changes been made or any idea on why I cant do this anymore? Thanks.

LXD 5 uses TLS1.3 by default, you’ll need to be using >= Node 14 (14 is from memory might be 12)

1 Like

Thanks, you are a star! Will look into this, been pulling my hair out. Tried changing apache settings.

Yes I was actually abit annoyed by this change, it was abit short sighted by the LXD team to change it without abit of noise but here we are

The minimum default TLS versions was changed in the LXD 5.x release series (see release notes for details on other minimum version changes LXD 5.0 LTS has been released).

It is possible to run LXD in a mode that allows insecure TLS connections, see Tls remote connection problem - #2 by stgraber for more details.