Skip to content

[Messenger] Redis Transport - SSL Context Options #51723

Closed
@sgloe

Description

@sgloe

Description

I want to use the Messenger with the Redis Transport over a TLS encrypted connection. But it is not possible with self-signed certificates that we use for our local development environment. This is because the peer and the certificates can not be verified.

For the Redis Cache Adapter, it is possible to specify SSL Context Options from PHP in the DSN String. With this I can disable the verify_peer, verify_peer_name check and allow self-signed certificates.

It would be great, if the DSN strings from Redis Cache Adapter and Redis Messenger Transport would be consistent and compatible, so I can pass the ssl query parameter as well.

Example

This DSN for the Redis Cache Adapter works:
SESSION_DSN=rediss://127.0.0.1/0?ssl[allow_self_signed]=1&ssl[verify_peer]=0&ssl[verify_peer_name]=0
This DSN for the Redis Messenger Transport does not work:
MESSENGER_TRANSPORT_DSN=rediss://127.0.0.1?ssl[allow_self_signed]=1&ssl[verify_peer]=0&ssl[verify_peer_name]=0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions