Final_1
Final_1

Reputation: 103

SSLError with Python requests after certificate upgrade

I just updated certificates on my server.

After that I am getting this error:

SSLError: HTTPSConnectionPool(host='10.164.1.1', port=9999): Max retries exceeded with url: /rest/nice_endpoint (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))

Upvotes: 1

Views: 784

Answers (2)

hc_dev
hc_dev

Reputation: 9418

May be insecure, but you could ignore SSL certificate verification with requests by passing verify=False like:

requests.get('your_url_here', verify=False)

See: How do I disable the security certificate check in Python requests

Upvotes: 0

Frank
Frank

Reputation: 1249

Try this first:

sudo apt-get install ca-certificates
sudo update-ca-certificates

If it does help, try this

sudo pip uninstall -y certifi
sudo pip install certifi== xx.xx.xx # e.g., 2015.04.28

Upvotes: 1

Related Questions