This commit is contained in:
Y.Horie 2025-12-15 15:32:10 +04:00 committed by GitHub
commit 311e4777bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -625,6 +625,12 @@ retry:
"SSL_CTX_use_PrivateKey(\"%s\") failed", key->data);
return NGX_ERROR;
}
if (SSL_CTX_check_private_key(ssl->ctx) == 0) {
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
"SSL_CTX_check_private_key(\"%s\") failed", key->data);
EVP_PKEY_free(pkey);
return NGX_ERROR;
}
EVP_PKEY_free(pkey);