211cd5
From a49b39fbfe01791880c6e7179f6efdad03e8ce58 Mon Sep 17 00:00:00 2001
070c3b
From: Ralph Bean <rbean@redhat.com>
211cd5
Date: Wed, 5 Nov 2014 10:15:17 -0500
070c3b
Subject: [PATCH] system cert bundle
070c3b
070c3b
---
211cd5
 requests/certs.py | 9 +++++----
211cd5
 1 file changed, 5 insertions(+), 4 deletions(-)
070c3b
070c3b
diff --git a/requests/certs.py b/requests/certs.py
211cd5
index 07e6475..2c7ca96 100644
070c3b
--- a/requests/certs.py
070c3b
+++ b/requests/certs.py
211cd5
@@ -10,16 +10,17 @@ This module returns the preferred default CA certificate bundle.
070c3b
 If you are packaging Requests, e.g., for a Linux distribution or a managed
070c3b
 environment, you can change the definition of where() to return a separately
070c3b
 packaged CA bundle.
211cd5
+
070c3b
+We return "/etc/pki/tls/certs/ca-bundle.crt" provided by the ca-certificates
070c3b
+package.
211cd5
 """
211cd5
-import os.path
070c3b
 
211cd5
 try:
211cd5
     from certifi import where
211cd5
 except ImportError:
211cd5
     def where():
211cd5
-        """Return the preferred certificate bundle."""
211cd5
-        # vendored bundle inside Requests
211cd5
-        return os.path.join(os.path.dirname(__file__), 'cacert.pem')
211cd5
+        """ Don't use the certs bundled with requests, use ca-certificates. """
211cd5
+        return "/etc/pki/tls/certs/ca-bundle.crt"
070c3b
 
070c3b
 if __name__ == '__main__':
070c3b
     print(where())
070c3b
-- 
211cd5
1.9.3
070c3b