You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: