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

Open
@ser

Description

@ser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions