This PR adds an optional sslContext argument to the RedisClient and RedisClientPool classes. If an sslContext is provided, the underlying socket will be wrapped with an SSLSocket layer.
Testing
This PR uses the madflojo/redis-tls:latest image (source) to run a redis test container that will only accept connections over SSL. I've included a self-signed certificate/key pair that is used by this container to encrypt the connection to redis.
Overview
This PR adds an optional
sslContext
argument to theRedisClient
andRedisClientPool
classes. If ansslContext
is provided, the underlying socket will be wrapped with anSSLSocket
layer.Testing
This PR uses the
madflojo/redis-tls:latest
image (source) to run a redis test container that will only accept connections over SSL. I've included a self-signed certificate/key pair that is used by this container to encrypt the connection to redis.Resolves https://github.com/debasishg/scala-redis/issues/254 and Resolves https://github.com/debasishg/scala-redis/issues/230