]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_crypto.c
* Allow the use of chained certificates for crypto
[citadel.git] / citadel / serv_crypto.c
index a730f553188738993abc40499c9190abec04453b..bac21b2b04ab67eec08f83c4512b84b6572967ae 100644 (file)
@@ -334,7 +334,7 @@ void init_ssl(void)
        /*
         * Now try to bind to the key and certificate.
         */
-        SSL_CTX_use_certificate_file(ssl_ctx, CTDL_CER_PATH, SSL_FILETYPE_PEM);
+        SSL_CTX_use_certificate_chain_file(ssl_ctx, CTDL_CER_PATH);
         SSL_CTX_use_PrivateKey_file(ssl_ctx, CTDL_KEY_PATH, SSL_FILETYPE_PEM);
         if ( !SSL_CTX_check_private_key(ssl_ctx) ) {
                lprintf(CTDL_CRIT, "Cannot install certificate: %s\n",