vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
6.72k stars 257 forks source link

Can't make SSL work... #163

Open Zibri opened 1 year ago

Zibri commented 1 year ago
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)
vi commented 1 year ago

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.

Zibri commented 1 year ago

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

vi commented 1 year ago

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.