redis / hiredis-rb

Ruby wrapper for hiredis
BSD 3-Clause "New" or "Revised" License
319 stars 90 forks source link

Add possibility to connect to elasticache using ssl #71

Closed mtuleika-appcast closed 3 years ago

mtuleika-appcast commented 3 years ago

This PR adds possibility to connect to ElastiCache with enabled SSL.

What was done:

To establish SSL connection with SSL_VERIFY_NONE:

require 'hiredis'

conn = Hiredis::Connection.new
conn.connect_ssl('<host>', 6379)

conn.write %w[AUTH <password>]
puts conn.read
conn.write %w[SET speed awesome]
puts conn.read
conn.write %w[GET speed]
puts conn.read
mjobin-mdsol commented 3 years ago

why closing it ? seemed useful !!

mtuleika-appcast commented 3 years ago

Sorry, I will update it soon with the newer version

mtuleika-appcast commented 3 years ago

Please see the updated version of this request here: https://github.com/redis/hiredis-rb/pull/72.