From: Sascha Peilicke Date: Wed, 23 May 2012 12:20:50 +0000 (+0200) Subject: Add openSUSE certificate support X-Git-Tag: v0.13.2~2^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66ef8886c6523e59d75bed40fedd3145fe0afe25;p=services%2Fpython-requests.git Add openSUSE certificate support --- diff --git a/requests/utils.py b/requests/utils.py index 8c445e7..eecfece 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -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():