summaryrefslogtreecommitdiff
path: root/modules/extra/m_ssl_openssl.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-05 10:41:08 -0400
committerAdam <Adam@anope.org>2016-09-05 10:41:52 -0400
commit13c5eec00a2e6483168243e88bb6fe038795078f (patch)
treeb8fee72b718f7b081eeca7eeb974de33728bf4b2 /modules/extra/m_ssl_openssl.cpp
parent2a5e7827bde932cc632e2457964631982dd96fca (diff)
m_ssl_openssl: allow certificate chain files to be used
Diffstat (limited to 'modules/extra/m_ssl_openssl.cpp')
-rw-r--r--modules/extra/m_ssl_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_ssl_openssl.cpp b/modules/extra/m_ssl_openssl.cpp
index 00df168de..bdc3a5624 100644
--- a/modules/extra/m_ssl_openssl.cpp
+++ b/modules/extra/m_ssl_openssl.cpp
@@ -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;