You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One would expect that when the caller explicitly asks to make unverified requests, then the REQUESTS_CA_BUNDLE environment variable doesn't affect it. The reality is different, however.
importosimportrequestsos.environ['REQUESTS_CA_BUNDLE'] ='asd.pem'# Must be an existing filer=requests.get('https://self-signed.badssl.com/', verify=False)
print(r)
# Prints: <Response [200]>session=requests.Session()
session.verify=Falser=session.get('https://self-signed.badssl.com/')
print(r)
# Fails: requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
ssbarnea, ewjoachim, ErikSwan, jojoob, vikask19 and 20 more