]> git.kaiwu.me - nginx.git/commit
SSL: encrypted certificate keys are exempt from object cache.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 18 Dec 2024 16:09:58 +0000 (20:09 +0400)
committerpluknet <pluknet@nginx.com>
Fri, 17 Jan 2025 00:37:46 +0000 (04:37 +0400)
commit7677d5646aeb761b8b9da5af3eb10c008aae3f90
treef4262cb9b0402499727e2a3d7a9bf0b43121c15f
parent8311e14ae614529aabe9e72e87051d191b723fb4
SSL: encrypted certificate keys are exempt from object cache.

SSL object cache, as previously introduced in 1.27.2, did not take
into account encrypted certificate keys that might be unexpectedly
fetched from the cache regardless of the matching passphrase.  To
avoid this, caching of encrypted certificate keys is now disabled
based on the passphrase callback invocation.

A notable exception is encrypted certificate keys configured without
ssl_password_file.  They are loaded once resulting in the passphrase
prompt on startup and reused in other contexts as applicable.
src/event/ngx_event_openssl_cache.c