Blame SOURCES/python-urllib3-default-ssl-cert-validate.patch
|
|
7b76a2 |
Author: Jamie Strandboge <jamie@canonical.com>
|
|
|
7b76a2 |
Description: require SSL certificate validation by default by using
|
|
|
7b76a2 |
CERT_REQUIRED and using the system /etc/ssl/certs/ca-certificates.crt
|
|
|
7b76a2 |
Bug-Ubuntu: https://launchpad.net/bugs/1047054
|
|
|
7b76a2 |
Modified for Fedora by Ralph Bean <rbean@redhat.com>
|
|
|
7b76a2 |
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=855320
|
|
|
7b76a2 |
|
|
|
7b76a2 |
Index: urllib3-1.5/urllib3/connectionpool.py
|
|
|
7b76a2 |
===================================================================
|
|
|
7b76a2 |
--- urllib3-1.5.orig/urllib3/connectionpool.py
|
|
|
7b76a2 |
+++ urllib3-1.5/urllib3/connectionpool.py
|
|
|
7b76a2 |
@@ -504,7 +504,7 @@ class HTTPSConnectionPool(HTTPConnection
|
|
|
7b76a2 |
strict=False, timeout=None, maxsize=1,
|
|
|
7b76a2 |
block=False, headers=None,
|
|
|
7b76a2 |
key_file=None, cert_file=None,
|
|
|
7b76a2 |
- cert_reqs='CERT_NONE', ca_certs=None):
|
|
|
7b76a2 |
+ cert_reqs='CERT_REQUIRED', ca_certs='/etc/ssl/certs/ca-certificates.crt'):
|
|
|
7b76a2 |
|
|
|
7b76a2 |
super(HTTPSConnectionPool, self).__init__(host, port,
|
|
|
7b76a2 |
strict, timeout, maxsize,
|