diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-10-29 18:20:53 +0400 |
---|---|---|
committer | pluknet <pluknet@nginx.com> | 2025-01-17 04:37:46 +0400 |
commit | 454ad0ef33a347eba1a62d18c8fc0498f4dcfd64 (patch) | |
tree | d9add547934807f7c2c35814d51ce1134722725f /src/http/ngx_http_upstream.c | |
parent | 4b96ad14f3607ab39b160715aeba721097ac4da4 (diff) | |
download | nginx-454ad0ef33a347eba1a62d18c8fc0498f4dcfd64.tar.gz nginx-454ad0ef33a347eba1a62d18c8fc0498f4dcfd64.zip |
Upstream: caching certificates and certificate keys with variables.
Caching is enabled with proxy_ssl_certificate_cache and friends.
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index e6382ef79..77dc032f2 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2018,7 +2018,8 @@ 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, NULL, + if (ngx_ssl_connection_certificate(c, r->pool, &cert, &key, + u->conf->ssl_certificate_cache, u->conf->ssl_passwords) != NGX_OK) { |