diff --git a/client_https.hpp b/client_https.hpp index ab1fc18..06cff14 100644 --- a/client_https.hpp +++ b/client_https.hpp @@ -14,8 +14,10 @@ namespace SimpleWeb { 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::tlsv12) { - if(verify_certificate) + if(verify_certificate) { context.set_verify_mode(boost::asio::ssl::verify_peer); + context.set_default_verify_paths(); + } else context.set_verify_mode(boost::asio::ssl::verify_none);