]> git.kaiwu.me - nginx.git/commit
SSL: always renewing tickets with TLSv1.3 (ticket #1892).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Jan 2022 14:18:50 +0000 (17:18 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 24 Jan 2022 14:18:50 +0000 (17:18 +0300)
commit0a407d7df825689a47ecdea4ae4cd6b2a894cb53
tree10e4f33352cb32e0019a6eeccbfb1ec02e6486a7
parent7ba3063952f53b710d092f00881ccc2996c3b5fc
SSL: always renewing tickets with TLSv1.3 (ticket #1892).

Chrome only uses TLS session tickets once with TLS 1.3, likely following
RFC 8446 Appendix C.4 recommendation.  With OpenSSL, this works fine with
built-in session tickets, since these are explicitly renewed in case of
TLS 1.3 on each session reuse, but results in only two connections being
reused after an initial handshake when using ssl_session_ticket_key.

Fix is to always renew TLS session tickets in case of TLS 1.3 when using
ssl_session_ticket_key, similarly to how it is done by OpenSSL internally.
src/event/ngx_event_openssl.c