mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Followup fix for r1553824:
also pass the file name to ssl_load_encrypted_pkey, to make sure that we retry with the same filename we used for SSL_CTX_use_PrivateKey_file first git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1563417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -928,8 +928,10 @@ static apr_status_t ssl_init_server_certs(server_rec *s,
|
||||
EVP_PKEY *pkey;
|
||||
const unsigned char *ptr;
|
||||
|
||||
ERR_clear_error();
|
||||
|
||||
/* perhaps it's an encrypted private key, so try again */
|
||||
ssl_load_encrypted_pkey(s, ptemp, i, &pphrases);
|
||||
ssl_load_encrypted_pkey(s, ptemp, i, keyfile, &pphrases);
|
||||
|
||||
if (!(asn1 = ssl_asn1_table_get(mc->tPrivateKey, key_id)) ||
|
||||
!(ptr = asn1->cpData) ||
|
||||
|
Reference in New Issue
Block a user