From 226fa562bff54dec9cd131fdf5950b8aa9a2b3a9 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 24 Nov 2014 23:25:29 -0600 Subject: [PATCH] debugging: print ca certs loaded into default ctx --- Lib/test/test_httplib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py index e68555a169..4c1f16567f 100644 --- a/Lib/test/test_httplib.py +++ b/Lib/test/test_httplib.py @@ -554,6 +554,9 @@ class HTTPSTest(TestCase): def test_networked_trusted_by_default_cert(self): # Default settings: requires a valid cert from a trusted CA test_support.requires('network') + if test_support.verbose: + import ssl + print(ssl._create_default_https_context().get_ca_certs()) with test_support.transient_internet('www.python.org'): h = httplib.HTTPSConnection('www.python.org', 443) h.request('GET', '/') -- 2.50.1