Topic starter 13/07/2021 11:42 am
Here is my Python code:
import requests requests.get('https://google.com')
This is the error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='google.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))
13/07/2021 3:42 pm
requests.get('https://google.com', verify='/path/to/certfile')
or you can skip verifications by doing this:
requests.get('https://google.com', verify=False)
Neha liked