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