1

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)'),))

hc_dev
  • 8,389
  • 1
  • 26
  • 38
Final_1
  • 93
  • 1
  • 5

2 Answers2

1

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
Frank
  • 1,151
  • 10
  • 22
0

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

hc_dev
  • 8,389
  • 1
  • 26
  • 38