Support Article
Exception while connecting to external service
SA-96419
Summary
Exception occurs while connecting to an external service using Connect-REST. This occurs despite not using any certificate.
Error Messages
Caught unhandled exception: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Steps to Reproduce
- Configure a Connect-REST with an Authentication profile and URL-Encoded input parameters.
- Test the Connectivity.
Root Cause
A third-party product: Certificate issue.
The certificate details were not read or encrypted correctly.
Resolution
Perform the following local-change:
Set the below JVM argument in all the nodes:
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.security.enableAIAcaIssuers=true"
Published March 24, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.