Override CA certificate via env var as described in this stackoverflow post: import os os.environ["REQUESTS_CA_BUNDLE"] = '/path/to/root_ca.crt' os.environ["SSL_CERT_FILE"] = '/path/to/root_ca.crt'