]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fixed regression in r1887085 where a SSL function was used that is not available...
authorStefan Eissing <icing@apache.org>
Wed, 3 Mar 2021 08:55:23 +0000 (08:55 +0000)
committerStefan Eissing <icing@apache.org>
Wed, 3 Mar 2021 08:55:23 +0000 (08:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887134 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_kernel.c

index 623d12d9e45e5bd2532c9d8bf544938b9d9298a8..30dd5ee338fcbc2e004313b786a269460b48832a 100644 (file)
@@ -2323,7 +2323,7 @@ static apr_status_t set_challenge_creds(conn_rec *c, const char *servername,
     
     sslcon->service_unavailable = 1;
     if (cert_file) {
-        if (SSL_use_certificate_chain_file(ssl, cert_file) < 1) {
+        if (SSL_use_certificate_file(ssl, cert_file, SSL_FILETYPE_PEM) < 1) {
             ap_log_cerror(APLOG_MARK, APLOG_WARNING, 0, c, APLOGNO(10264)
                           "Failed to configure challenge certificate %s",
                           servername);