-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ERR_UNABLE_TO_GET_ISSUER_CERT error (and workaround detailed below) #7942
Comments
Hi @devops-corgi thanks for reaching out. Brew installation isn't officially supported per the AWS CLI documentation, we recommend using one of the installation methods documented there. You shouldn't need pyOpenSSL for the AWS CLI so uninstalling it is another option. We have received similar issues before (for example #7325) but those involve the cryptography library which the AWS CLI and pyOpenSSL use. |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Still an issue for me... I suspect pyOpenSSL is an indirect dependency? |
@alexreg does uninstalling pyOpenSSL resolve the issue? |
@tim-finnigan Sorry, didn't see your suggestion above to do that... yes, that works for me. Not an ideal solution, of course, but I suppose this bug should be reported to pyOpenSSL in any case, as it isn't anything in particular to do with the AWS CLI. |
Just encountered this as well and was able to fix the problem after fixing a minor typo from the solution above. The correct command shall be:
as the one should specify version constraint via |
Thanks @GalvinGao ! Updated my solution in the first post in case anyone else finds this useful. |
This workaround prevents installing
|
I'm also experiencing this issue. Both downgrading pyOpenSSL to 23.1.0 and straight up uninstalling it did not work for me. Any aws or even kubectl command being ran against my EKS cluster gives me:
|
Was able to fix this by uninstalling my homebrew version of awscli and reinstalling via the documented method here |
I'm having the same problem. I have no interest in migrating off of the homebrew method of installation for this package, though. Do you have plans to eventually support pyOpenSSL 23.2+? |
Alternative solution for homebrew, installing old version of pyopenssl just for aws-cli:
|
This worked great for me, thank you very much! |
This has fixed the issue for me.
|
Anyway, this issue is not solved. Keeping the old lib version prevents packages such as |
cool, thanks @jabr, this works for me |
For me uninstalling pyOpenSSL from the homebrew python3 install worked:
|
This might be a permanent fix? |
That's only an option if you have nothing else dependent on pyOpenSSL being installed as a site-package. |
Good catch! I updated my "solution" using brew's prefix option to handle the path difference between versions:
|
awscli: ignore system site packages in virtualenv Configure the virtualenv created by this formula to ignore system site packages as all dependencies are installed in the virtualenv and having certain packages in the system site packages breaks awscli as described here: aws/aws-cli#7942.
Describe the bug
Hey everyone! Recently installed AWS CLI on a new laptop. Then, after installing a pip package which cascade upgraded some other pip packages, immediately ran into this error when running any AWS CLI command:
Any AWS command (including even
aws --version
) raises the error. Full stacktrace below.Expected Behavior
aws ...
commands work as expected.Current Behavior
Raises this stacktrace
Reproduction Steps
Install AWS CLI v2 via homebrew (though other installation methods will probably replicate it)
Install or upgrade any pip package that uses
pyOpenSSL
or upgrade pyOpenSSL to >= 23.2.Possible Solution
Likely caused by a breaking change in version 23.2 of pyOpenSSL:
https://pypi.org/project/pyOpenSSL/
Downgrading to pyOpenSSL 23.1.0 fixes it:
Additional Information/Context
No response
CLI version used
aws-cli/2.11.24 Python/3.11.3 Darwin/22.5.0 source/x86_64 prompt/off
Environment details (OS name and version, etc.)
OS X Ventura 13.4 (latest patch)
The text was updated successfully, but these errors were encountered: