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

requests.exceptions.SSLError: SSL: CERTIFICATE_VERIFY_FAILED #596

Open
tmiroslav opened this issue May 27, 2020 · 2 comments
Open

requests.exceptions.SSLError: SSL: CERTIFICATE_VERIFY_FAILED #596

tmiroslav opened this issue May 27, 2020 · 2 comments

Comments

@tmiroslav
Copy link

I am using ansible hashivault modules to manage secrets in vault. After enabling TLS in VAULT I am running into issue where it fails to verify SSL. I have been trying to set REQUESTS_CA_BUNDLE ev variable as mentioned (https://hvac.readthedocs.io/en/v0.6.4/advanced_usage.html#making-use-of-private-ca), but have not managed to make it work. Also, I did not want to set VAULT_SKIP_VERIFY env variable. Do you have any advice what should be done?

@tmiroslav tmiroslav changed the title requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579) requests.exceptions.SSLError: SSL: CERTIFICATE_VERIFY_FAILED May 27, 2020
@msetegn
Copy link

msetegn commented Jun 19, 2020

You likely aren't pointing to the correct CA Bundle OR the permissions on your ca.crt are slightly incorrect.

If it's the former, check out this stack overflow issue.

If it's the latter, run chmod 0600 {put_ca_file} in your cmd line prompt.

@Tylerlhess
Copy link
Contributor

You have to set the verify kwarg to the CA bundle. This error message should be made clearer by #691 but that should also allow you to set certs at the time of authentication also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants