IBM App Connect error javax.net.ssl.SSLHandshakeException

993 Views Asked by At

I created a message flow having rest request node to connect to an API. API security enabled received the following error:

BIP3165S: An error occurred whilst performing an SSL socket operation. Operation: connect. Error Text: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target.

How do I solve this issue in my message flow? I disabled SSL but still received the same error.

1

There are 1 best solutions below

0
Logan Haas On

What is the SSL client and server endpoints? Assuming this connection is:

WAS (server) <------SSL------> API (Client)

In one-way SSL, the solution is to add the root or intermediate certificate (from the WAS server's chain) to the client's trust store.

"PKIX path building failed" usually indicates that the SSL client was unable to authenticate the SSL server (remote host). To authenticate the server, the client needs to have the server's root or intermediate certificate in its trust store.

If this is happening with traditional WebSphere as the client, we can try to add the signer certificate with retrieve from port.

If mutual authentication is enabled, the issue can be with the server being unable to authenticate the client.

Either way, an SSL exception should not occur with SSL disabled. Maybe the server wasn't re-started after disabling SSL? Maybe SSL wasn't disabled correctly (on both endpoints)? Maybe the API was still trying to use HTTPS with SSL disabled?