Skip to content

Issue 140 - add SSL support #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2020
Merged

Issue 140 - add SSL support #235

merged 4 commits into from
Apr 25, 2020

Conversation

xianwill
Copy link
Contributor

This PR finishes out a branch proposed a while ago by @alanroche in #144 to add TLS support.

For our purposes we needed the additional constructor parameters for RedisEndpoint mentioned by @yananielsen in the notes of that PR to get everything working which I have added in this branch. I've also added a line of documentation in doc/configuration.md mentioning the ssl config option.

@@ -23,7 +24,8 @@ object ConnectionPool {
poolConfig.setMinEvictableIdleTimeMillis(60000)
poolConfig.setTimeBetweenEvictionRunsMillis(30000)
poolConfig.setNumTestsPerEvictionRun(-1)
new JedisPool(poolConfig, re.host, re.port, re.timeout, re.auth, re.dbNum)

new JedisPool(poolConfig, re.host, re.port, re.timeout, re.auth, re.dbNum, re.ssl)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xianwill using this JedisPool constructor might be too week.
The following properties should also be supported

final SSLSocketFactory sslSocketFactory, final SSLParameters sslParameters,
      final HostnameVerifier hostnameVerifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants