also use openssl envvars to find certs on windows (closes #22449)

Patch by Christian Heimes and Alex Gaynor.
This commit is contained in:
Benjamin Peterson 2014-10-03 17:27:05 -04:00
parent 7280561b5b
commit 5915b0f924
3 changed files with 12 additions and 2 deletions

View file

@ -390,8 +390,7 @@ class SSLContext(_SSLContext):
if sys.platform == "win32":
for storename in self._windows_cert_stores:
self._load_windows_store_certs(storename, purpose)
else:
self.set_default_verify_paths()
self.set_default_verify_paths()
def create_default_context(purpose=Purpose.SERVER_AUTH, *, cafile=None,