diff options
author | Christian Heimes <christian@python.org> | 2017-09-04 21:08:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 21:08:36 (GMT) |
commit | 57d963b0b559078ca419811d0d25fea27d42f30c (patch) | |
tree | 265a467b17a64abfc10e059bd502f60c18f369e5 /Lib/test/test_ssl.py | |
parent | 05308c73d769b4e3fdbeee0de399e7f63b86f1ab (diff) | |
download | cpython-57d963b0b559078ca419811d0d25fea27d42f30c.zip cpython-57d963b0b559078ca419811d0d25fea27d42f30c.tar.gz cpython-57d963b0b559078ca419811d0d25fea27d42f30c.tar.bz2 |
[2.7] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297) (#3301)
* bpo-25674: remove sha256.tbs-internet.com ssl test (#3297)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 002d64039b60c1a9289f981fe73a5cf91d082136)
* [2.7] bpo-25674: remove sha256.tbs-internet.com ssl test (GH-3297)
Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 002d64039b60c1a9289f981fe73a5cf91d082136)
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r-- | Lib/test/test_ssl.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 07526c2..d9ef232 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1588,34 +1588,6 @@ class NetworkedTests(unittest.TestCase): cert_reqs=ssl.CERT_NONE, ciphers="^$:,;?*'dorothyx") s.connect(remote) - def test_algorithms(self): - # Issue #8484: all algorithms should be available when verifying a - # certificate. - # SHA256 was added in OpenSSL 0.9.8 - if ssl.OPENSSL_VERSION_INFO < (0, 9, 8, 0, 15): - self.skipTest("SHA256 not available on %r" % ssl.OPENSSL_VERSION) - # sha256.tbs-internet.com needs SNI to use the correct certificate - if not ssl.HAS_SNI: - self.skipTest("SNI needed for this test") - # https://sha2.hboeck.de/ was used until 2011-01-08 (no route to host) - remote = ("sha256.tbs-internet.com", 443) - sha256_cert = os.path.join(os.path.dirname(__file__), "sha256.pem") - with support.transient_internet("sha256.tbs-internet.com"): - ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1) - ctx.verify_mode = ssl.CERT_REQUIRED - ctx.load_verify_locations(sha256_cert) - s = ctx.wrap_socket(socket.socket(socket.AF_INET), - server_hostname="sha256.tbs-internet.com") - try: - s.connect(remote) - if support.verbose: - sys.stdout.write("\nCipher with %r is %r\n" % - (remote, s.cipher())) - sys.stdout.write("Certificate is:\n%s\n" % - pprint.pformat(s.getpeercert())) - finally: - s.close() - def test_get_ca_certs_capath(self): # capath certs are loaded on request with support.transient_internet(REMOTE_HOST): |