Kitura / Kitura-redis

Swift Redis library
Apache License 2.0
94 stars 25 forks source link

TLS 1.2 Support? #74

Open icyield opened 4 years ago

icyield commented 4 years ago

IBM Cloud only gives Databases for Redis

TLS and self-signed certificate support All connections to Databases for Redis are TLS 1.2 enabled, so the driver you use to connect need to be able to support TLS encryption.

Any chance of TLS support?

geertberkers commented 4 years ago

Kitura-Redis makes use of BlueSockets.

You can enable SSL for Sockets using BlueSSLService. https://github.com/IBM-Swift/BlueSocket See add-ins.

I just implemented it for an SSL Azure Redis Connection: https://github.com/geertberkers/Kitura-redis/commit/cb155b773880d3b9400a091676383f31b6ccfa4f#diff-3dee9532a6dd98c74cf9174823992791R47

You can speficy your own SSLConfiguration, for me none certificates of private keys were needed.