Why do HTTPS requests produce SSL CERTIFICATE_VERIFY_FAILED error?
requests.get('https://google.com', verify='/path/to/certfile')
or you can skip verifications by doing this:
requests.get('https://google.com', verify=False)
You should specify your CA.
This fixed it: Python referencing old SSL version
The openssl versions used to differ for python and the one offered by homebrew
if brew install python --with-brewd-openssl
doesn't worktrybrew install opensslbrew install python
after uninstalling python
You might add header and verify argument to by-pass ssl certificate security.
r = requests.get(URL, headers = {'User-agent': 'your bot 0.1'}, verify=False)
You should specify path your certificate if you have.