From 9701a4504b21f7ab424aed9eb63db66e93cabefc Mon Sep 17 00:00:00 2001 From: "Michael Behrns-Miller [bitpost-gentoo]" Date: Sun, 21 Aug 2016 07:42:58 -0400 Subject: [PATCH] only use tlsv12, nothing older --- server_https.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_https.hpp b/server_https.hpp index 3a5cc2d..294068f 100644 --- a/server_https.hpp +++ b/server_https.hpp @@ -14,7 +14,7 @@ namespace SimpleWeb { long timeout_request=5, long timeout_content=300, const std::string& verify_file=std::string()) : ServerBase::ServerBase(port, num_threads, timeout_request, timeout_content), - context(boost::asio::ssl::context::sslv23) { + context(boost::asio::ssl::context::tlsv12) { // 2016/08/13 only use tls12, see https://www.ssllabs.com/ssltest context.use_certificate_chain_file(cert_file); context.use_private_key_file(private_key_file, boost::asio::ssl::context::pem);