Initial import (#907688)
This commit is contained in:
parent
83f941b9be
commit
e2c2602a24
7 changed files with 406 additions and 0 deletions
20
python-urllib3-default-ssl-cert-validate.patch
Normal file
20
python-urllib3-default-ssl-cert-validate.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Author: Jamie Strandboge <jamie@canonical.com>
|
||||
Description: require SSL certificate validation by default by using
|
||||
CERT_REQUIRED and using the system /etc/ssl/certs/ca-certificates.crt
|
||||
Bug-Ubuntu: https://launchpad.net/bugs/1047054
|
||||
Modified for Fedora by Ralph Bean <rbean@redhat.com>
|
||||
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=855320
|
||||
|
||||
Index: urllib3-1.5/urllib3/connectionpool.py
|
||||
===================================================================
|
||||
--- urllib3-1.5.orig/urllib3/connectionpool.py
|
||||
+++ urllib3-1.5/urllib3/connectionpool.py
|
||||
@@ -504,7 +504,7 @@ class HTTPSConnectionPool(HTTPConnection
|
||||
strict=False, timeout=None, maxsize=1,
|
||||
block=False, headers=None,
|
||||
key_file=None, cert_file=None,
|
||||
- cert_reqs='CERT_NONE', ca_certs=None):
|
||||
+ cert_reqs='CERT_REQUIRED', ca_certs='/etc/ssl/certs/ca-certificates.crt'):
|
||||
|
||||
super(HTTPSConnectionPool, self).__init__(host, port,
|
||||
strict, timeout, maxsize,
|
||||
Loading…
Add table
Add a link
Reference in a new issue