aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2019-03-20 01:26:36 -0400
committerLee Clagett <code@leeclagett.com>2019-04-07 00:44:37 -0400
commit7c388fb3586a1600d1898a6fb6398c675d4bd562 (patch)
treed821f299d2b879c47aa1d8d25534a01ae8b3b2ca /contrib/epee/src
parentPerform RFC 2818 hostname verification in client SSL handshakes (diff)
downloadmonero-7c388fb3586a1600d1898a6fb6398c675d4bd562.tar.xz
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.
Diffstat (limited to 'contrib/epee/src')
-rw-r--r--contrib/epee/src/net_ssl.cpp2
1 files changed, 1 insertions, 1 deletions
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)