Created
November 4, 2020 14:06
-
-
Save neilbartley/a866655086b0bae957cc9dfe8bcf899b to your computer and use it in GitHub Desktop.
Access AWS SSL Redis instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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