mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
also use openssl envvars to find certs on windows (closes #22449)
Patch by Christian Heimes and Alex Gaynor.
This commit is contained in:
parent
7280561b5b
commit
5915b0f924
3 changed files with 12 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue