]> git.kaiwu.me - nginx.git/commit
SSL: automatic rotation of session ticket keys.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 12 Oct 2022 17:14:53 +0000 (20:14 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 12 Oct 2022 17:14:53 +0000 (20:14 +0300)
commit1d572e359a210dcb27e5e073c016c1768c435263
treee69e064ac9538ebd8f4abcd50e5d1b62458eb3f0
parent3b127da11169c63c04d2ea41a79023b030010a1e
SSL: automatic rotation of session ticket keys.

As long as ssl_session_cache in shared memory is configured, session ticket
keys are now automatically generated in shared memory, and rotated
periodically.  This can be beneficial from forward secrecy point of view,
and also avoids increased CPU usage after configuration reloads.

This also helps BoringSSL to properly resume sessions in configurations
with multiple worker processes and no ssl_session_ticket_key directives,
as BoringSSL tries to automatically rotate session ticket keys and does
this independently in different worker processes, thus breaking session
resumption between worker processes.
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl.h