diff options
author | Christian Heimes <christian@python.org> | 2018-08-30 05:25:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 05:25:49 (GMT) |
commit | e6dac0077996b1e1f886f036d6f2606237fa4c85 (patch) | |
tree | 46a22b8c07d1bbff18de4543ff0c5dbfcf7485c3 /Lib/test/test_ssl.py | |
parent | 0382406fccbb31aa993de118b60e7fd4ec264968 (diff) | |
download | cpython-e6dac0077996b1e1f886f036d6f2606237fa4c85.zip cpython-e6dac0077996b1e1f886f036d6f2606237fa4c85.tar.gz cpython-e6dac0077996b1e1f886f036d6f2606237fa4c85.tar.bz2 |
bpo-34542: Update test certs and keys (GH-8997)
Update all test certs and keys to use future proof crypto settings:
* 3072 bit RSA keys
* SHA-256 signature
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 2ea284a..2cb4ad4 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -61,9 +61,9 @@ CERTFILE_INFO = { (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), (('commonName', 'localhost'),)), - 'notAfter': 'Jan 17 19:09:06 2028 GMT', - 'notBefore': 'Jan 19 19:09:06 2018 GMT', - 'serialNumber': 'F9BA076D5B6ABD9B', + 'notAfter': 'Aug 26 14:23:15 2028 GMT', + 'notBefore': 'Aug 29 14:23:15 2018 GMT', + 'serialNumber': '98A7CF88C74A32ED', 'subject': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), @@ -86,9 +86,9 @@ SIGNED_CERTFILE_INFO = { 'issuer': ((('countryName', 'XY'),), (('organizationName', 'Python Software Foundation CA'),), (('commonName', 'our-ca-server'),)), - 'notAfter': 'Nov 28 19:09:06 2027 GMT', - 'notBefore': 'Jan 19 19:09:06 2018 GMT', - 'serialNumber': '82EDBF41C880919C', + 'notAfter': 'Jul 7 14:23:16 2028 GMT', + 'notBefore': 'Aug 29 14:23:16 2018 GMT', + 'serialNumber': 'CB2D80995A69525C', 'subject': ((('countryName', 'XY'),), (('localityName', 'Castle Anthrax'),), (('organizationName', 'Python Software Foundation'),), @@ -318,6 +318,8 @@ class BasicSocketTests(unittest.TestCase): self.assertNotEqual(child_random, parent_random) + maxDiff = None + def test_parse_cert(self): # note that this uses an 'unofficial' function in _ssl.c, # provided solely for this test, to exercise the certificate |