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.
This commit is contained in:
Lee Clagett 2019-03-20 01:26:36 -04:00
parent eca0fea45a
commit 7c388fb358
1 changed files with 1 additions and 1 deletions

View File

@ -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)