Question
Getting an error while generating access token
Hello Everyone,
I need to generate an access token using Service token which i got in JAVA step but getting an exception in "results_ACT = restTemplate.exchange(listUrl, org.springframework.http.HttpMethod.GET, request_ACT, String.class);".
Exception is: "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is 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"
Thanks & Regards,
Rohith M
Hi Rohith,
I see 'unable to find valid certification path to requested target;" in the exception trace provided earlier.
It is SSL issue and did you store all the target host certificates in the keystore ? Below article will help you to understand it better
https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-error-779355358.html