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

How to provide certificate #43

Open
mhechthz opened this issue Mar 18, 2021 · 1 comment
Open

How to provide certificate #43

mhechthz opened this issue Mar 18, 2021 · 1 comment

Comments

@mhechthz
Copy link

Hi,

I managed to use python-cas on a CAS server with encryption using verify_ssl_certificate=False. Setting this to True results in an SSL error
requests.exceptions.SSLError: HTTPSConnectionPool(host='cas.mycasservice.de', port=1234): Max retries exceeded with url: /cas/p3/serviceValidate?ticket=ST-177-7IxoBa-9TF4zpU0iwgZ4cA2kG-4-630f0a9f0295&service=http://localhost:5000/login?next=%2Fprofile (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)')))
because (I think) I haven't provided the certificate. Where can I configure this?

@mhechthz
Copy link
Author

mhechthz commented Mar 19, 2021

Found out myself what to do:

verify_ssl_certificate=False --> don't check certificate
verify_ssl_certificate='/path/to/certificate' --> check certificate

So, setting verify_ssl_certificate to True was the error.

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

1 participant