Commit 226fa562 authored by Benjamin Peterson's avatar Benjamin Peterson

debugging: print ca certs loaded into default ctx

parent dfdae021
......@@ -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', '/')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment