debasishg / scala-redis

A scala library for connecting to a redis server, or a cluster of redis nodes using consistent hashing on the client side.
1.02k stars 219 forks source link

Add support for SSL #261

Closed mattusifer closed 4 years ago

mattusifer commented 4 years ago

Overview

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.

Resolves https://github.com/debasishg/scala-redis/issues/254 and Resolves https://github.com/debasishg/scala-redis/issues/230

debasishg commented 4 years ago

Thanks a lot ..

mattusifer commented 4 years ago

Thanks @debasishg ! Let me know if there's any way we can cut a new release with this feature soon.

debasishg commented 4 years ago

I will have a release soon .. Thanks for the PR ..

debasishg commented 4 years ago

Released 3.3.0 today ..