Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certificate verify failed: unable to get local issuer certificate #9190

Open
1 task
gitissuepost opened this issue Jan 7, 2025 · 0 comments
Open
1 task
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@gitissuepost
Copy link

Describe the bug

While executing aws ec2 describe-instances, it results to
SSL validation failed for https://ec2.eu-west-1.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

aws sso login is successful and aws s3 ls works fine. However, aws ec2 and aws sts results to similar error. i haven't tried other commands yet as these basic commands are failing.

If I bypass ssl verification, it works fine but without no-verify-ssl flag, it fails.

Note: I had added the certificates to same bundle that was used for sso

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

command should return ec2 details even with out no-verify-ssl flag

Current Behavior

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

Reproduction Steps

set up env vars for HTTP_PROXY, HTTPS_PROXY, AWS_CA_BUNDLE
aws configure sso or aws sso login - Success
aws s3 ls - Success
aws ec2 describe-instances - Fails
aws sts get-caller-identity - Fails

Possible Solution

No response

Additional Information/Context

https://gist.github.com/gitissuepost/56ea901617a6168b6619d12f676a049e

CLI version used

2.22.25

Environment details (OS name and version, etc.)

Windows 10 22H2 Build#19045

@gitissuepost gitissuepost added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant