blob: e3a41d9dadbc55c073b447007e54618eb08bb0e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff -ur requests-2.4.0.orig/requests/certs.py requests-2.4.0/requests/certs.py
--- requests/certs.py 2014-08-20 00:52:58.000000000 +0800
+++ requests/certs.py 2014-09-09 14:17:33.237264068 +0800
@@ -18,6 +18,10 @@
except ImportError:
def where():
"""Return the preferred certificate bundle."""
+ cacerts = '/etc/ssl/certs/ca-certificates.crt'
+ if os.path.exists(cacerts):
+ return cacerts
+
# vendored bundle inside Requests
return os.path.join(os.path.dirname(__file__), 'cacert.pem')
|