From a1a889d714f8b1cb897ba5d3572b4e90b213e1ac Mon Sep 17 00:00:00 2001 From: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> Date: Thu, 28 Nov 2024 19:00:41 +0600 Subject: [PATCH] Make test connectWithCustomHostNameVerifier() pass --- .../java/redis/clients/jedis/SSLOptionsJedisClusterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java b/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java index 5cde75dd56..2378958c9c 100644 --- a/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java +++ b/src/test/java/redis/clients/jedis/SSLOptionsJedisClusterTest.java @@ -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");