AWS Elasticache SSL connect


In order to connect to a SSL enabled Redis from cli you would need to first install stunnel:

yum install stunnel

then in the configuration file add:

cat /etc/stunnel/redis-cli.conf
fips = no
setuid = root
setgid = root
pid = /var/run/
debug = 7
options = NO_SSLv2
options = NO_SSLv3
client = yes
accept =
connect = MASTER_REDIS_IP:6379
client = yes
accept =
connect = SLAVE_REDIS_IP:6379

Start the tunnel with:

stunnel /etc/stunnel/redis-cli.conf

then connect:

redis-cli -h localhost -p 6379


To connect from ruby you would need to ->

Views: 87


What is the capital of Egypt? ( Cairo )