Skip to content

Commit 4f11b5f

Browse files
committed
tests: turning off ssl session tickets for places where it makes sense.
1 parent 4c41271 commit 4f11b5f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

t/ssl-session-fetch.t

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ __DATA__
4040
server {
4141
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
4242
server_name test.com;
43-
ssl_protocols SSLv3;
43+
ssl_session_tickets off;
4444
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
4545
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
4646
@@ -127,7 +127,7 @@ qr/ssl_session_fetch_by_lua_block:4: session id: [a-fA-f\d]+/s,
127127
server {
128128
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
129129
server_name test.com;
130-
ssl_protocols SSLv3;
130+
ssl_session_tickets off;
131131
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
132132
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
133133
@@ -230,7 +230,7 @@ In practice, never store session in plaintext on persistent storage.
230230
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
231231
server_name test.com;
232232
233-
ssl_protocols SSLv3;
233+
ssl_session_tickets off;
234234
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
235235
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
236236
@@ -326,7 +326,7 @@ able to carry on and negotiate a new session.
326326
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
327327
server_name test.com;
328328
329-
ssl_protocols SSLv3;
329+
ssl_session_tickets off;
330330
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
331331
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
332332

t/ssl-session-store.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ __DATA__
4040
server {
4141
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
4242
server_name test.com;
43-
ssl_protocols SSLv3;
43+
ssl_session_tickets off;
4444
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
4545
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
4646
@@ -112,7 +112,7 @@ qr/ssl_session_store_by_lua_block:4: session size: \d+/s
112112
server {
113113
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
114114
server_name test.com;
115-
ssl_protocols SSLv3;
115+
ssl_session_tickets off;
116116
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
117117
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
118118
@@ -220,7 +220,7 @@ qr/ssl_session_store_by_lua_block:4: session id: [a-fA-f\d]+/s
220220
server {
221221
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
222222
server_name test.com;
223-
ssl_protocols SSLv3;
223+
ssl_session_tickets off;
224224
ssl_certificate $TEST_NGINX_CERT_DIR/cert/test.crt;
225225
ssl_certificate_key $TEST_NGINX_CERT_DIR/cert/test.key;
226226

0 commit comments

Comments
 (0)