Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

Commit

Permalink
modify the log level where the cert dose not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
vislee committed Jun 14, 2019
1 parent 5eff25c commit 18e25a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngx_http_multiple_ssl_module.c
Expand Up @@ -291,14 +291,14 @@ ngx_http_multiple_ssl_cert_handler(ngx_ssl_conn_t *ssl_conn, int *ad, void *arg)
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "multiple ssl key %V", &key);

if (0 != access((const char *)cert.data, F_OK|R_OK)) {
ngx_log_debug1(NGX_LOG_WARN, c->log, 0,
ngx_log_error(NGX_LOG_WARN, c->log, 0,
"multiple ssl cert [%V] not exists or not read", &cert);

return SSL_TLSEXT_ERR_NOACK;
}

if (0 != access((const char *)key.data, F_OK|R_OK)) {
ngx_log_debug1(NGX_LOG_WARN, c->log, 0,
ngx_log_error(NGX_LOG_WARN, c->log, 0,
"multiple ssl key [%V] not exists or not read", &key);

return SSL_TLSEXT_ERR_NOACK;
Expand Down

0 comments on commit 18e25a9

Please sign in to comment.