diff --git a/certs.py b/certs.py index f922b99..43b1b0a 100644 --- a/certs.py +++ b/certs.py @@ -14,12 +14,12 @@ packaged CA bundle. import os.path try: + raise ImportError # force fallback from certifi import where except ImportError: def where(): - """Return the preferred certificate bundle.""" - # vendored bundle inside Requests - return os.path.join(os.path.dirname(__file__), 'cacert.pem') + # system CA certs + return '/etc/pki/tls/certs/ca-bundle.crt' if __name__ == '__main__': print(where())