diff --git a/src/zen/tlsmanager.cpp b/src/zen/tlsmanager.cpp index 0c589242c1..520e92a322 100644 --- a/src/zen/tlsmanager.cpp +++ b/src/zen/tlsmanager.cpp @@ -180,7 +180,7 @@ SSL_CTX* TLSManager::initCtx( SSL_CTX_set_verify(tlsCtx, SSL_VERIFY_PEER, tlsCertVerificationCallback); - if (SSL_CTX_use_certificate_file(tlsCtx, certificateFile.string().c_str(), SSL_FILETYPE_PEM) > 0) { + if (SSL_CTX_use_certificate_chain_file(tlsCtx, certificateFile.string().c_str()) > 0) { if (SSL_CTX_use_PrivateKey_file(tlsCtx, privateKeyFile.string().c_str(), SSL_FILETYPE_PEM) > 0) { if (SSL_CTX_check_private_key(tlsCtx)) bInitialized = true; @@ -481,4 +481,4 @@ bool TLSManager::initialize() return bInitializationStatus; } -} \ No newline at end of file +}