Skip to content

Instantly share code, notes, and snippets.

@drscream
Created October 18, 2014 19:23
Show Gist options
  • Save drscream/c5dfb4cc6ccfbb15c56c to your computer and use it in GitHub Desktop.
Save drscream/c5dfb4cc6ccfbb15c56c to your computer and use it in GitHub Desktop.
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