Fixing default CA which ought to be read as a pemfile and not a directory

This commit is contained in:
Kyle Morton 2015-07-21 18:01:51 -07:00
parent 9fdc412fa0
commit 155bdeb123
1 changed files with 1 additions and 1 deletions

View File

@ -422,7 +422,7 @@ class _Connection(object):
context.set_verify(verify_options, verify_cert) context.set_verify(verify_options, verify_cert)
if ca_path is None and ca_pemfile is None: if ca_path is None and ca_pemfile is None:
ca_path = certifi.where() ca_pemfile = certifi.where()
context.load_verify_locations(ca_pemfile, ca_path) context.load_verify_locations(ca_pemfile, ca_path)
# Workaround for # Workaround for