Troubleshooting

The following error message is observed while using two-way SSL Authentication:
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Resolution: Add the server certificate in java truststore (for example, cacerts).
For example, keytool -import -alias im-tomcat-server-cert -keystore cacerts -trustcacerts -file tomcat-server.crt