By using AWS re:Post, you agree to the Terms of Use

how to resolve [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate with Polly endpoint

0

Hello,

I am trying to resolve the dreaded SSL Certificate error:

....[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

when trying to validate a Polly endpoint, such as: https://polly.us-east-1.amazonaws.com/v1/speech

I am doing this in the CLI

The errors are: -- https://polly.us-east-1.amazonaws.com/v1/lexicons/awsLexicon [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

--https://polly.us-east-1.amazonaws.com/v1/lexicons/awsLexicon [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)

Among my steps tried so far was to update the certificate: @ CLI -> pip install certifi I verified in site-packages/certifi that 'cacert' is present

I'm sure I am missing some step(s). Can anyone see what I should do next?

1 Answers
0

If you are connecting through a corporate proxy, you may need to specify a CA certificate bundle.

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

AWS_CA_BUNDLE
Specifies the path to a certificate bundle to use for HTTPS certificate validation.
If defined, this environment variable overrides the value for the profile setting ca_bundle. You can override this environment variable by using the --ca-bundle command line parameter.

profile picture
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions