SSL Certificate error: [SSL: CERTIFICATE_VERIFY_FAILED] when using aws client in windows 10

Viewed 5516

Recently I am gettin an error when, for instance, listing data from Amazon S3:

aws s3 ls

SSL validation failed for https://s3.eu-west-1.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

I have noticed that the company I work for has added a ZScaler Client Connector. It seems that this client is causing the error. I wonder if someone could give a hint about how to solve this issue.

2 Answers

Solved it this way:

  1. Locate certifi bundle (cacert.pem) location python -m certifi
  2. export AWS_CA_BUNDLE="[full path to cacert.pem]" from step 1
  3. verify
Related