2019-04-23 04:14:26 +00:00
|
|
|
Index: urllib3-1.25/src/urllib3/util/ssl_.py
|
|
|
|
===================================================================
|
|
|
|
--- urllib3-1.25.orig/src/urllib3/util/ssl_.py
|
|
|
|
+++ urllib3-1.25/src/urllib3/util/ssl_.py
|
2019-04-17 22:10:22 +00:00
|
|
|
@@ -333,6 +333,8 @@ def ssl_wrap_socket(sock, keyfile=None,
|
|
|
|
elif ssl_context is None and hasattr(context, 'load_default_certs'):
|
2017-04-06 15:11:12 +00:00
|
|
|
# try to load OS default certs; works well on Windows (require Python3.4+)
|
|
|
|
context.load_default_certs()
|
|
|
|
+ elif cert_reqs != ssl.CERT_NONE and hasattr(context, 'set_default_verify_paths'):
|
|
|
|
+ context.set_default_verify_paths()
|
2015-11-13 14:47:50 +00:00
|
|
|
|
2019-04-23 04:14:26 +00:00
|
|
|
# Attempt to detect if we get the goofy behavior of the
|
|
|
|
# keyfile being encrypted and OpenSSL asking for the
|