mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix test_ssl by replacing expired X509 certificate
This commit is contained in:
parent
6a8e2b4982
commit
60982914b4
2 changed files with 34 additions and 36 deletions
|
@ -107,13 +107,12 @@ class BasicSocketTests(unittest.TestCase):
|
|||
if test_support.verbose:
|
||||
sys.stdout.write("\n" + pprint.pformat(p) + "\n")
|
||||
self.assertEqual(p['subject'],
|
||||
((('countryName', u'US'),),
|
||||
(('stateOrProvinceName', u'Delaware'),),
|
||||
(('localityName', u'Wilmington'),),
|
||||
(('organizationName', u'Python Software Foundation'),),
|
||||
(('organizationalUnitName', u'SSL'),),
|
||||
(('commonName', u'somemachine.python.org'),)),
|
||||
((('countryName', 'XY'),),
|
||||
(('localityName', 'Castle Anthrax'),),
|
||||
(('organizationName', 'Python Software Foundation'),),
|
||||
(('commonName', 'localhost'),))
|
||||
)
|
||||
self.assertEqual(p['subjectAltName'], (('DNS', 'localhost'),))
|
||||
# Issue #13034: the subjectAltName in some certificates
|
||||
# (notably projects.developer.nokia.com:443) wasn't parsed
|
||||
p = ssl._ssl._test_decode_cert(NOKIACERT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue