vi / websocat

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

Check the certificat #85

Open donkahuna opened 3 years ago

donkahuna commented 3 years ago

Hey, need some help plz

How can i check the certificat? something like `wscat --cert client.pem --key client.priv wss://foo' in wscat. Thanks

vi commented 3 years ago

Do you mean verification of client TLS certificates?

Currently there is no such feature in Websocat.

You can configure Nginx as a frontend that would handle TLS side (including certificate verification) and reverse-proxy websocket connections to Websocat.


If you mean checking server TLS certificates then it should be the default behaviour. Websocat should refuse to connect to untrusted wss:// endpoints unless you specify the -k option.