Skip to content

redis.exceptions.ConnectionError: Error while reading from xxx:3003 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2570)') #3599

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ser opened this issue Apr 12, 2025 · 1 comment

Comments

@ser
Copy link

ser commented Apr 12, 2025

I'm trying to connect to an SSL protected server with a certificate issued by a private CA and its certs available in the system.

I am getting: redis.exceptions.ConnectionError: Error while reading from redis.hyperreal.dev:3003 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2570)')

In other python modules I am usually able to solve this specifying ssl_context like this:

ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)

and set ssl_context=ssl_context as a parameter to a client.

But redis does not allow setting ssl_context parameter, unfortunately. Setting ssl_ca_certs or ssl_certfile does not solve the issue. In result, I am not able to connect to my server using the python module at all.

In my opinion ssl_context parameter should get added allowing larger flexibility with SSL operations.

@ser ser changed the title redis.exceptions.ConnectionError: Error while reading from redis.hyperreal.dev:3003 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2570)') redis.exceptions.ConnectionError: Error while reading from xxx:3003 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2570)') Apr 12, 2025
@petyaslavova
Copy link
Collaborator

Hi @ser, thank you for pointing this out! We'll have a look on this.

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

No branches or pull requests

2 participants