35bb6d4770
1 OBS-URL: https://build.opensuse.org/request/show/248630 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=20
30 lines
946 B
Diff
30 lines
946 B
Diff
--- a/requests/adapters.py
|
|
+++ b/requests/adapters.py
|
|
@@ -132,9 +132,6 @@
|
|
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:
|
|
--- a/requests/certs.py
|
|
+++ b/requests/certs.py
|
|
@@ -19,7 +19,7 @@
|
|
def where():
|
|
"""Return the preferred certificate bundle."""
|
|
# vendored bundle inside Requests
|
|
- return os.path.join(os.path.dirname(__file__), 'cacert.pem')
|
|
+ return '/etc/ssl/certs/'
|
|
|
|
if __name__ == '__main__':
|
|
print(where())
|
|
--- a/MANIFEST.in
|
|
+++ b/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
|
|
|