mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
add OpenSSL_add_all_algorithms(), this fixes the error
"ASN1_item_verify:unknown message digest algorithm" occurred if client certificate is signed using sha256WithRSAEncryption
This commit is contained in:
parent
1ee4b09091
commit
e71f39932f
@ -106,6 +106,8 @@ ngx_ssl_init(ngx_log_t *log)
|
||||
|
||||
ENGINE_load_builtin_engines();
|
||||
|
||||
OpenSSL_add_all_algorithms();
|
||||
|
||||
ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);
|
||||
|
||||
if (ngx_ssl_connection_index == -1) {
|
||||
@ -2315,5 +2317,6 @@ ngx_openssl_engine(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
static void
|
||||
ngx_openssl_exit(ngx_cycle_t *cycle)
|
||||
{
|
||||
EVP_cleanup();
|
||||
ENGINE_cleanup();
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/conf.h>
|
||||
#include <openssl/engine.h>
|
||||
#include <openssl/evp.h>
|
||||
|
||||
#define NGX_SSL_NAME "OpenSSL"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user