Created
October 18, 2014 19:23
-
-
Save drscream/c5dfb4cc6ccfbb15c56c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ircd/ssl.c b/ircd/ssl.c | |
index debe89f..435269b 100644 | |
--- a/ircd/ssl.c | |
+++ b/ircd/ssl.c | |
@@ -377,6 +377,8 @@ void ssl_init(void) | |
sslfail("SSL_CTX_use_certificate_file"); | |
if (!SSL_CTX_use_RSAPrivateKey_file(ctx, pemfile, SSL_FILETYPE_PEM)) | |
sslfail("SSL_CTX_use_RSAPrivateKey_file"); | |
+ if (!SSL_CTX_use_certificate_chain_file(ctx, pemfile)) | |
+ sslfail("SSL_CTX_use_certificate_chain_file"); | |
Debug((DEBUG_DEBUG, "SSL: init ok")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment