From 803e6d670c019335096ca456b1778205edb30a79 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 13 Oct 2010 10:36:15 +0000 Subject: Issue #9003: http.client.HTTPSConnection, urllib.request.HTTPSHandler and urllib.request.urlopen now take optional arguments to allow for server certificate checking, as recommended in public uses of HTTPS. --- Lib/test/make_ssl_certs.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/test/make_ssl_certs.py') diff --git a/Lib/test/make_ssl_certs.py b/Lib/test/make_ssl_certs.py index 3e25fc2188..48d2e57f4b 100644 --- a/Lib/test/make_ssl_certs.py +++ b/Lib/test/make_ssl_certs.py @@ -57,3 +57,8 @@ if __name__ == '__main__': with open('keycert.pem', 'w') as f: f.write(key) f.write(cert) + # For certificate matching tests + cert, key = make_cert_key('fakehostname') + with open('keycert2.pem', 'w') as f: + f.write(key) + f.write(cert) -- cgit v1.2.1