Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
python-requests.858
no-default-cacert.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File no-default-cacert.patch of Package python-requests.858
Index: requests-2.3.0/requests/adapters.py =================================================================== --- requests-2.3.0.orig/requests/adapters.py +++ requests-2.3.0/requests/adapters.py @@ -139,9 +139,6 @@ class HTTPAdapter(BaseAdapter): if not cert_loc: cert_loc = DEFAULT_CA_BUNDLE_PATH - if not cert_loc: - raise Exception("Could not find a suitable SSL CA certificate bundle.") - conn.cert_reqs = 'CERT_REQUIRED' conn.ca_certs = cert_loc else: Index: requests-2.3.0/requests/certs.py =================================================================== --- requests-2.3.0.orig/requests/certs.py +++ requests-2.3.0/requests/certs.py @@ -18,7 +18,9 @@ import os.path def where(): """Return the preferred certificate bundle.""" # vendored bundle inside Requests - return os.path.join(os.path.dirname(__file__), 'cacert.pem') + # in openSUSE we rely on openssl's default instead of + # hardcoding stuff elsewhere + return None if __name__ == '__main__': print(where()) Index: requests-2.3.0/MANIFEST.in =================================================================== --- requests-2.3.0.orig/MANIFEST.in +++ requests-2.3.0/MANIFEST.in @@ -1 +1 @@ -include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt requests/cacert.pem +include README.rst LICENSE NOTICE HISTORY.rst test_requests.py requirements.txt Index: requests-2.3.0/requests/packages/urllib3/util/ssl_.py =================================================================== --- requests-2.3.0.orig/requests/packages/urllib3/util/ssl_.py +++ requests-2.3.0/requests/packages/urllib3/util/ssl_.py @@ -117,6 +117,9 @@ if SSLContext is not None: # Python 3.2 # Py33 raises FileNotFoundError except Exception as e: # Reraise as SSLError raise SSLError(e) + elif cert_reqs != CERT_NONE: + context.set_default_verify_paths() + if certfile: # FIXME: This block needs a test. context.load_cert_chain(certfile, keyfile)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor