aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2024-10-29 16:25:11 +0400
committerpluknet <pluknet@nginx.com>2025-01-17 04:37:46 +0400
commit0e756d67aa1e42e3b1b360936eb4d6c06bced2c1 (patch)
tree6dc91cb2bc0c35eb71870280fd615f2ec6f133c4 /src/http/ngx_http_upstream.c
parent7677d5646aeb761b8b9da5af3eb10c008aae3f90 (diff)
downloadnginx-0e756d67aa1e42e3b1b360936eb4d6c06bced2c1.tar.gz
nginx-0e756d67aa1e42e3b1b360936eb4d6c06bced2c1.zip
SSL: caching certificates and certificate keys with variables.
A new directive "ssl_certificate_cache max=N [valid=time] [inactive=time]" enables caching of SSL certificate chain and secret key objects specified by "ssl_certificate" and "ssl_certificate_key" directives with variables. Co-authored-by: Aleksei Bavshin <a.bavshin@nginx.com>
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index d95662c56..e6382ef79 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2018,7 +2018,7 @@ ngx_http_upstream_ssl_certificate(ngx_http_request_t *r,
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http upstream ssl key: \"%s\"", key.data);
- if (ngx_ssl_connection_certificate(c, r->pool, &cert, &key,
+ if (ngx_ssl_connection_certificate(c, r->pool, &cert, &key, NULL,
u->conf->ssl_passwords)
!= NGX_OK)
{