diff --git a/src/requests/adapters.py b/src/requests/adapters.py index 9a58b16025..4c38bc4e4b 100644 --- a/src/requests/adapters.py +++ b/src/requests/adapters.py @@ -76,11 +76,10 @@ def SOCKSProxyManager(*args, **kwargs): try: import ssl # noqa: F401 + from .utils import get_ssl_context _preloaded_ssl_context = create_urllib3_context() - _preloaded_ssl_context.load_verify_locations( - extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH) - ) + get_ssl_context(_preloaded_ssl_context) except ImportError: # Bypass default SSLContext creation when Python # interpreter isn't built with the ssl module.