Message191099
I'm doing some testing with old versions of OpenSSL. Some versions like 0.9.8i from 15 Sep 2008 ignore seconds in notAfter field:
./python -m test test_ssl test_hashlib
[1/2] test_ssl
test test_ssl failed -- Traceback (most recent call last):
File "/home/heimes/dev/python/cpython/Lib/test/test_ssl.py", line 145, in test_parse_cert
self.assertEqual(p['notAfter'], 'Oct 5 23:01:56 2020 GMT')
AssertionError: 'Oct 5 23:01:00 2020 GMT' != 'Oct 5 23:01:56 2020 GMT'
- Oct 5 23:01:00 2020 GMT
? ^^
+ Oct 5 23:01:56 2020 GMT
It's actually an issue in OpenSSL. I'm getting the same result with the openssl binary:
$ ../openssl/0.9.8i/bin/openssl x509 -text -in Lib/test/https_svn_python_org_root.pem | grep GMT
Not Before: Mar 30 12:29:00 2003 GMT
Not After : Mar 29 12:29:00 2033 GMT
$ ../openssl/0.9.8y/bin/openssl x509 -text -in Lib/test/https_svn_python_org_root.pem | grep GMT
Not Before: Mar 30 12:29:49 2003 GMT
Not After : Mar 29 12:29:49 2033 GMT
I'd like to modify the test for a well-defined set of errnous OpenSSL versions. |
|
Date |
User |
Action |
Args |
2013-06-13 23:58:14 | christian.heimes | set | recipients:
+ christian.heimes, pitrou |
2013-06-13 23:58:14 | christian.heimes | set | messageid: <1371167894.29.0.607710152237.issue18207@psf.upfronthosting.co.za> |
2013-06-13 23:58:14 | christian.heimes | link | issue18207 messages |
2013-06-13 23:58:13 | christian.heimes | create | |
|