Hot Rod Application SSLHandshakeException when tries to connect to Data Grid 8 in Openshift

Solution Verified - Updated -

Issue

Having SSL enabled in Data Grid, my application is not able to connect to Data Grid cluster via Hot Rod getting:

2024-05-02 16:16:39.704 ERROR 34366 --- [async-pool-1-12] org.infinispan.HOTROD                    : ISPN004007: Exception encountered. Retry 10 out of 10

org.infinispan.client.hotrod.exceptions.TransportException: javax.net.ssl.SSLHandshakeException: No trusted certificate found
    at org.infinispan.client.hotrod.impl.transport.netty.ActivationHandler.exceptionCaught(ActivationHandler.java:52) ~[infinispan-client-hotrod-14.0.2.Final-redhat-00001.jar!/:14.0.2.Final-redhat-00001]
...
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
    at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
Caused by: javax.net.ssl.SSLHandshakeException: No trusted certificate found
    at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) ~[na:na]
    at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:360) ~[na:na]
...
Caused by: sun.security.validator.ValidatorException: No trusted certificate found
    at java.base/sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:411) ~[na:na]
    at java.base/sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:135) ~[na:na]
    at java.base/sun.security.validator.Validator.validate(Validator.java:264) ~[na:an]

Environment

  • Red Hat Data Grid
    • 8.x
  • Openshift 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content