socket.io-client-cpp
socket.io-client-cpp copied to clipboard
Server's certificate is not verified on TLS mode
The Socket.IO cpp client doesn't verify server's certificate while TLS is enabled. So the server's certificate may be issued by an untrusted authority or server's domain may not match certificate's CN/SAN.
Hi, I'll seek a patch for that. Maybe a callback to ask whether trust the certificate.
Seems that you're busy these days :)
I found ssl::context::set_verify_mode is what we need. I'll submit a patch to fix it.
#41 has been submitted for this issue.
Hi, is this issue still there?
I think the issue is still there. The comment above suggested to have a callback for certificate verification.
Could someone provide a callback example for certificate verification? Thanks