zaphoyd / websocketpp

C++ websocket client/server library
http://www.zaphoyd.com/websocketpp
Other
6.9k stars 1.95k forks source link

Logging error #701

Open benharbit opened 6 years ago

benharbit commented 6 years ago

I am trying to understand why I get this particular error.

2018-01-17 16:10:14] [connect] Successful connection [2018-01-17 16:10:14] [error] handle_transport_init received error: TLS handshake failed

I set,

m_endpoint.set_access_channels(websocketpp::log::alevel::debug_handshake); m_endpoint.set_error_channels(websocketpp::log::elevel::all);

Yet, there appears to be very little debugging information. I assume the log information is written to the screen.

benharbit commented 6 years ago

Ok, my problem was that I was using a client with boost::asio::ssl::context::tlsv1.
I instead needed to use boost::asio::ssl::context::sslv23.