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