websocat icon indicating copy to clipboard operation
websocat copied to clipboard

Can't make SSL work...

Open Zibri opened this issue 3 years ago • 3 comments

websocat --pkcs12-der q.pkcs12 --binary wss-l:0.0.0.0:55555 tcp:127.0.0.1:5555                                                            <
websocat: Unfortunately, serving multiple clients without --exit-on-eof (-E) or with -U option is prone to socket leak in this websocat version

On connection:

websocat: error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:ssl/record/rec_layer_s3.c:1544:SSL alert number 46
websocat: Connection refused (os error 111)

Zibri avatar Sep 06 '22 08:09 Zibri

Are you trying to connect from browser or from another Websocat instance? Is the certificate properly issued or self-signed?

websocat: Connection refused (os error 111)

Are you sure tcp:127.0.0.1:5555 is available? Check with nc 127.0.0.1 5555.

vi avatar Sep 06 '22 10:09 vi

Self signed but I imported it in the browser. And anyway the connection is refused.

Zibri avatar Sep 10 '22 11:09 Zibri

And anyway the connection is refused.

websocat: Connection refused (os error 111) is likely coming from tcp:127.0.0.1:5555 part, not from the wss-l:0.0.0.0:55555 part.

vi avatar Sep 10 '22 14:09 vi