2013-11-07 16:06:38 +01:00
|
|
|
--- a/requests/adapters.py
|
|
|
|
+++ b/requests/adapters.py
|
|
|
|
@@ -132,9 +132,6 @@
|
2013-07-25 14:57:44 +02:00
|
|
|
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:
|
2013-11-07 16:06:38 +01:00
|
|
|
--- a/requests/certs.py
|
|
|
|
+++ b/requests/certs.py
|
|
|
|
@@ -18,7 +18,7 @@
|
2013-07-25 14:57:44 +02:00
|
|
|
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())
|
2013-11-07 16:06:38 +01:00
|
|
|
--- a/MANIFEST.in
|
|
|
|
+++ b/MANIFEST.in
|
2013-07-25 14:57:44 +02:00
|
|
|
@@ -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
|
2013-11-07 16:06:38 +01:00
|
|
|
--- a/requests.egg-info/SOURCES.txt
|
|
|
|
+++ b/requests.egg-info/SOURCES.txt
|
|
|
|
@@ -10,7 +10,6 @@
|
2013-07-25 14:57:44 +02:00
|
|
|
requests/adapters.py
|
|
|
|
requests/api.py
|
|
|
|
requests/auth.py
|
|
|
|
-requests/cacert.pem
|
|
|
|
requests/certs.py
|
|
|
|
requests/compat.py
|
|
|
|
requests/cookies.py
|
2013-11-07 16:06:38 +01:00
|
|
|
@@ -82,4 +81,4 @@
|
2013-07-25 14:57:44 +02:00
|
|
|
requests/packages/urllib3/packages/__init__.py
|
|
|
|
requests/packages/urllib3/packages/ordered_dict.py
|
|
|
|
requests/packages/urllib3/packages/six.py
|
|
|
|
-requests/packages/urllib3/packages/ssl_match_hostname/__init__.py
|
|
|
|
\ No newline at end of file
|
|
|
|
+requests/packages/urllib3/packages/ssl_match_hostname/__init__.py
|