Skip to content

TLS support? #2

@tomasaschan

Description

@tomasaschan

I'm trying to use this image to connect to a managed Redis instance on Azure, but I keep getting Error: Server closed the connection whatever I try to do. Could the problem be that there is a TLS mismatch?

> docker run --rm --name redis-cli -it goodsmileduck/redis-cli redis-cli -h <redacted>.redis.cache.windows.net -p 6380 -a <redacted> ping
Error: Server closed the connection

If I don't run a command at the docker incantation it seems to connect, but I get the same errors when trying to execute any commands:

> docker run --rm --name redis-cli -it goodsmileduck/redis-cli redis-cli -h <redacted>.redis.cache.windows.net -p 6380 -a <redacted>
<redacted>.redis.cache.windows.net:6380> ping
Error: Server closed the connection
(0.88s)
<redacted>.redis.cache.windows.net:6380> ping foo
Error: Server closed the connection
(5.77s)
<redacted>.redis.cache.windows.net:6380> KEYS
Error: Server closed the connection
(23.13s)
<redacted>.redis.cache.windows.net:6380> SCAN 0 COUNT 1000
Error: Server closed the connection
(3.24s)

I understand that the CLI iself does not support TLS, but the recommendation is to use something like stunnel (more info here). Would it be feasible to install something like that in this docker image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions