Closed Kyrio closed 4 years ago
Yes, it sounds good, it can indeed be useful.
With #127, TLS certificate verification can be disabled at creation:
std::make_shared<WebSocket>(WebSocket::Configuration{.disableTlsVerification = true});
Thanks for adding this so quickly!
Would you consider adding a flag or an argument that allows the user to disable TLS verification in the WebSocket API? Currently, it is disabled under OpenSSL on Windows and when the certificate directory cannot be found.
It is difficult to use ws:// anywhere else than locally, with Heroku and others forcing wss://. Being able to skip certificate verification would be useful for development purposes :)
https://github.com/paullouisageneau/libdatachannel/blob/3d7764c1e966a74287a44525d90efd67cb700cf9/src/tlstransport.cpp#L272