From 7c388fb3586a1600d1898a6fb6398c675d4bd562 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Wed, 20 Mar 2019 01:26:36 -0400 Subject: [PATCH] Call `use_certificate_chain_file` instead of `use_certificate_file` The former has the same behavior with single self signed certificates while allowing the server to have separate short-term authentication keys with long-term authorization keys. --- contrib/epee/src/net_ssl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/epee/src/net_ssl.cpp b/contrib/epee/src/net_ssl.cpp index fbc809043..0ac452343 100644 --- a/contrib/epee/src/net_ssl.cpp +++ b/contrib/epee/src/net_ssl.cpp @@ -252,7 +252,7 @@ boost::asio::ssl::context ssl_options_t::create_context() const void ssl_authentication_t::use_ssl_certificate(boost::asio::ssl::context &ssl_context) const { ssl_context.use_private_key_file(private_key_path, boost::asio::ssl::context::pem); - ssl_context.use_certificate_file(certificate_path, boost::asio::ssl::context::pem); + ssl_context.use_certificate_chain_file(certificate_path); } bool is_ssl(const unsigned char *data, size_t len)