diff --git a/client_https.hpp b/client_https.hpp index 64c4d0a..ab1fc18 100644 --- a/client_https.hpp +++ b/client_https.hpp @@ -13,7 +13,7 @@ namespace SimpleWeb { Client(const std::string& server_port_path, bool verify_certificate=true, const std::string& cert_file=std::string(), const std::string& private_key_file=std::string(), const std::string& verify_file=std::string()) : - ClientBase::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::sslv23) { + ClientBase::ClientBase(server_port_path, 443), context(boost::asio::ssl::context::tlsv12) { if(verify_certificate) context.set_verify_mode(boost::asio::ssl::verify_peer); else