Skip to content

Commit

Permalink
Make test connectWithCustomHostNameVerifier() pass
Browse files Browse the repository at this point in the history
  • Loading branch information
sazzad16 committed Nov 28, 2024
1 parent 294cf25 commit a1a889d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public void connectWithCustomHostNameVerifier() {
DefaultJedisClientConfig.builder().password("cluster")
.sslOptions(SslOptions.builder()
.truststore(new File("src/test/resources/truststore.jceks"))
.trustStoreType("jceks").build())
.trustStoreType("jceks")
.sslVerifyMode(SslVerifyMode.CA).build())
.hostnameVerifier(localhostVerifier).hostAndPortMapper(portMap).build(),
DEFAULT_REDIRECTIONS, DEFAULT_POOL_CONFIG)) {
jc3.get("foo");
Expand Down

0 comments on commit a1a889d

Please sign in to comment.