Add openSUSE certificate support
authorSascha Peilicke <saschpe@suse.de>
Wed, 23 May 2012 12:20:50 +0000 (14:20 +0200)
committerSascha Peilicke <saschpe@suse.de>
Fri, 15 Jun 2012 12:16:16 +0000 (14:16 +0200)
requests/utils.py

index 8c445e7..eecfece 100644 (file)
@@ -40,6 +40,10 @@ POSSIBLE_CA_BUNDLE_PATHS = [
         '/etc/ssl/certs/ca-certificates.crt',
         # FreeBSD (provided by the ca_root_nss package):
         '/usr/local/share/certs/ca-root-nss.crt',
+        # openSUSE (provided by the ca-certificates package), the 'certs' directory is the
+        # preferred way but may not be supported by the SSL module, thus it has 'ca-bundle.pem'
+        # as a fallback (which is generated from pem files in the 'certs' directory):
+        '/etc/ssl/ca-bundle.pem',
 ]
 
 def get_os_ca_bundle_path():