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

SSL CACERT missing #11

Open
eclisia opened this issue Jul 20, 2022 · 1 comment
Open

SSL CACERT missing #11

eclisia opened this issue Jul 20, 2022 · 1 comment

Comments

@eclisia
Copy link

eclisia commented Jul 20, 2022

Dear,

I've got an SSL error message when I try to use your excellent code from a gitlab pipeline.
It seems that I need to pass cacert as parameter.
Does this feature exist ?

Test done :

Without your library and directly with CURL I can reach my confluence. So I think that my issue root cause is the absence of SSL/CACERT in your example.
For instance :

curl  --cacert curl-ca-bundle.crt  --url "https://myconfluence.com/rest/api/content/251548690" -H "Authorization: Bearer fjhs_my_tokenskjd" 

This curl request send my well informations. Whereas, if I suppress the --cacert option, I've got the same SSL error message.

Error message from my gitlab pipeline :

requests.exceptions.SSLError: HTTPSConnectionPool(host='myconfluence.com', port=443): Max retries exceeded with url: /rest/api/content?title=Home&spaceKey=TDF&expand=history (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))

A lot of thanks for your support.

@Acsigen
Copy link

Acsigen commented Dec 21, 2022

I had a similar issue with a custom CA.
I fixed it by appending my CA certificate to /usr/local/lib/python3.11/site-packages/certifi/cacert.pem

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

2 participants