mirror of
https://github.com/nginx/nginx.git
synced 2026-04-27 09:07:33 -04:00
Merge 66d19c1a47 into 5eaf45f11e
This commit is contained in:
commit
390fc850e0
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue