I need to call the following rest endpoint from one of AEM java model/servlet.
I am getting the following exception.
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
So I installed the .cer file in my local jdk.
Then I was able to call the above rest point from a static java program.
But I am still unable to call this url from my AEM servlet / model.
Can anyone tell me the steps that I need to follow for successful invocation of the rest url
[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]
[Comments is to ask about the operation of the Forum, not a specific program]
[Moved from the Comments forum to the specific Program forum... Mod]
If there was a missing certificate in my truststore that wasn't allowing full certificate chain validation. Root CAs are in JVM, so if author is configured with CA signed certificates you should not see handshake exceptions. If this is same instance, try to make links relative instead of absolute.