mirror of
https://github.com/anope/anope.git
synced 2026-06-23 12:16:37 +02:00
m_ssl_openssl: allow certificate chain files to be used
This commit is contained in:
@@ -147,7 +147,7 @@ class SSLModule : public Module
|
||||
|
||||
if (Anope::IsFile(this->certfile.c_str()))
|
||||
{
|
||||
if (!SSL_CTX_use_certificate_file(client_ctx, this->certfile.c_str(), SSL_FILETYPE_PEM) || !SSL_CTX_use_certificate_file(server_ctx, this->certfile.c_str(), SSL_FILETYPE_PEM))
|
||||
if (!SSL_CTX_use_certificate_chain_file(client_ctx, this->certfile.c_str()) || !SSL_CTX_use_certificate_chain_file(server_ctx, this->certfile.c_str()))
|
||||
throw ConfigException("Error loading certificate");
|
||||
else
|
||||
Log(LOG_DEBUG) << "m_ssl_openssl: Successfully loaded certificate " << this->certfile;
|
||||
|
||||
Reference in New Issue
Block a user