]> git.kaiwu.me - nginx.git/commit
SSL: workaround for session timeout handling with TLSv1.3.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 12 Oct 2022 17:14:57 +0000 (20:14 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 12 Oct 2022 17:14:57 +0000 (20:14 +0300)
commit4d61d59ae9ecc8f1a5f0f505bf0310035b0d9ce9
treeb42effb9a903786bd6d79974811ecb1e37204207
parent02314f0c3c70bad88ae3554eb66439a261898f24
SSL: workaround for session timeout handling with TLSv1.3.

OpenSSL with TLSv1.3 updates the session creation time on session
resumption and keeps the session timeout unmodified, making it possible
to maintain the session forever, bypassing client certificate expiration
and revocation.  To make sure session timeouts are actually used, we
now update the session creation time and reduce the session timeout
accordingly.

BoringSSL with TLSv1.3 ignores configured session timeouts and uses a
hardcoded timeout instead, 7 days.  So we update session timeout to
the configured value as soon as a session is created.
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl.h