My system is M1 Mac with macOS 12.3.1 and aws cli install via homebrew
when tried to run aws s3 ls it keep error with
SSL validation failed for https://s3.{awsregion}.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)
I've check python3 SSL path with command python3 -c 'import ssl; print(ssl.get_default_verify_paths())'
result is DefaultVerifyPaths(cafile='/opt/homebrew/etc/[email protected]/cert.pem', capath=None, openssl_cafile_env='SSL_CERT_FILE', openssl_cafile='/opt/homebrew/etc/[email protected]/cert.pem', openssl_capath_env='SSL_CERT_DIR', openssl_capath='/opt/homebrew/etc/[email protected]/certs')
which means it uses brew install version of [email protected]
and python3 also uses brew install version [email protected] location is
/opt/homebrew/bin/python3
I've tried reinstalling awscli, [email protected], and also [email protected] then also tried to
also gave me the same error.
Here little information about my system
Does anyone have any idea about this issue? Thank you in advance.
Set the AWS_CA_BUNDLE environmental variable to the cert.pem file from Mozilla (available in formulae "ca-certificates") like so:
export AWS_CA_BUNDLE=$HOMEBREW_PREFIX/etc/ca-certificates/cert.pem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With