Skip to content

Instantly share code, notes, and snippets.

@neilbartley
Created November 4, 2020 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilbartley/a866655086b0bae957cc9dfe8bcf899b to your computer and use it in GitHub Desktop.
Save neilbartley/a866655086b0bae957cc9dfe8bcf899b to your computer and use it in GitHub Desktop.
Access AWS SSL Redis instance
docker run -it --rm redis:5.0.6 bash
apt update; apt install stunnel procps
cat > /etc/stunnel/redis-cli.conf
setuid = root
setgid = root
pid = /var/run/stunnel.pid
debug = 7
options = NO_SSLv2
options = NO_SSLv3
[redis-cli]
client = yes
accept = 127.0.0.1:6379
connect = <hostname>:6379
<ctrl-d>
stunnel /etc/stunnel/redis-cli.conf
redis-cli -h localhost -p 6379 -a <password>
localhost:6379> ping
PONG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment