c++sslhttpswebsocket++

Is there a way to force browser to accept self-signed certificate using websocket++?


I am using echo_server_tls example with Chrome client. It works fine when I add the certificate to "Trusted Root Certificate Authorities" in certmgr. But if the certificate is not added there, the connection fails silently.

How can I ask user to accept my certificate in case of "Certificate Authority" error?

My OS is Windows 7


Solution

  • OK, solved the problem by setting an http handler using set_http_handler(). Thanks