Skip to content

Commit

Permalink
tests(tls): disable TLSv1.3 for session-resumption-related tests
Browse files Browse the repository at this point in the history
The TLS 1.2 Session Resumption via Session Tickets and
Session Identifiers mentioned earlier is outdated in TLS 1.3.
  • Loading branch information
ADD-SP committed Feb 8, 2024
1 parent ed8b4b1 commit 6cfc257
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/001-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __DATA__
=== TEST 1: session reuse by session tickets without disable_session_reuse
--- http_config
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -91,7 +92,9 @@ SSL reused session
=== TEST 2: session reuse by session cache without disable_session_reuse
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -162,7 +165,9 @@ SSL reused session
=== TEST 3: disable_session_reuse can suppress usage of session tickets
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -235,7 +240,9 @@ SSL reused session
=== TEST 4: disable_session_reuse can suppress usage of session cache
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down

0 comments on commit 6cfc257

Please sign in to comment.