Skip to content

Commit c3d4d01

Browse files
committed
Lib/test: produce test certificates that expire far in the future by default
This allows testing Y2038 with system time set to after that, so that actual Y2038 issues can be exposed, and not masked by expired certificate errors. Signed-off-by: Alexander Kanavin <[email protected]>
1 parent b249ea0 commit c3d4d01

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Lib/test/certdata/make_ssl_certs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from subprocess import *
1010

1111
startdate = "20180829142316Z"
12-
enddate_default = "20371028142316Z"
13-
days_default = "7000"
12+
enddate_default = "25251028142316Z"
13+
days_default = "140000"
1414

1515
req_template = """
1616
[ default ]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Test certificates have been updated to expire far in the future. This allows
2+
testing Y2038 with system time set to after that, so that actual Y2038
3+
issues can be exposed, and not masked by expired certificate errors.

0 commit comments

Comments
 (0)