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
9d47c23803
commit
ee89ba0db0
2 changed files with 4 additions and 0 deletions
|
@ -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 a new issue