-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] exception when using self-signed certificates #2066
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
Comments
A follow-up to my certificate-extraction "solution":
It looks like even that did not work - same exception as above. So I'm at a loss of ideas. |
Hi @ZenulAbidin thanks for the issue report! Can I point you to the following, and see if they're right for you?
The latter is also available in the repository as a jupyter notebook in the examples folder |
@chayim Hmm, I didn't see the I'll admit that I just read the README which didn't document those two. Maybe the example in the docs can be copied into the SSL section of the README as well. |
Thanks for the feedback! I think we should generally revamp the readme, and link to our examples, docs and everything else Ina cleaner way. |
That's basically what I was thinking too. I can recommend two additional suggestions regarding the README on top of that.
The rest of the content can be broken down into additional files and placed in a folder called something like
Probably if it's still recent then it would be inappropriate to move it out, but it should at least be close to the bottom of the README. It's currently at the beginning of the README which obscure smore basic documentation. Being a big user of Redis and redis-py myself, I can make PRs for restructuring the README if you want. Anyways, I managed to get this working by filling in the
Thanks for your help. |
I'm so sorry, this is long since resolved, and I didn't link back here. The direct result of your ask is our SSL Connection Examples page , where we explicitly highlight this one. Closing as a result. |
Version: redis-py: 4.2.0, Redis: 6.2.6
Platform: Python 3.8.3 on Ubuntu 20.04
Description:
I have deployed Redis to my Kubernetes cluster using Helm and Bitnami's repository, with an autogenerated certificate. Specifically:
helm install redis-test bitnami/redis --set image.debug=true --set tls.enabled=true --set tls.autoGenerated=true --set architecture=standalone
The redis server itself is in standalone mode and works fine and has a password and certificate, that's not the problem.
The problem is in the redis-py client which cannot connect to my Redis server using the self-signed certificate.
Here is a minimum reproducible example:
The
ssl_cert_reqs
is there to avoid [the SSL_CERTIFICE_VERIFY_FAILED] error in #1080.Instead, I get another stack trace after executing
r.info()
:Here are the server logs as this exception is thrown:
Barring extracting the certificate from the Kubernetes container (difficult but doable) to place inside the client, how can I bypass this exception?
The text was updated successfully, but these errors were encountered: