Line 0
Link Here
|
|
|
1 |
Fix verify_certs=False behavior for urllib >= 1.25. Backported from the 7.x branch: |
2 |
|
3 |
https://github.com/elastic/elasticsearch-py/commit/4c531c5cdbd5ba8b59be16c2fa15d5cf81d0a92f |
4 |
|
5 |
--- elasticsearch/connection/http_urllib3.py.orig 2019-05-28 17:59:13 UTC |
6 |
+++ elasticsearch/connection/http_urllib3.py |
7 |
@@ -170,6 +170,7 @@ class Urllib3HttpConnection(Connection): |
8 |
} |
9 |
) |
10 |
else: |
11 |
+ kw["cert_reqs"] = "CERT_NONE" |
12 |
warnings.warn( |
13 |
"Connecting to %s using SSL with verify_certs=False is insecure." |
14 |
% host |