Secured rest call failing in AEM cloud | Community
Skip to main content
New Participant
March 12, 2024
Solved

Secured rest call failing in AEM cloud

  • March 12, 2024
  • 2 replies
  • 825 views

I have created a osgi class to call microsoft graph rest apis to get token. I have added jks and pem certs in core module src/main/resources. Program works fine in my local aem sdk, when I deploy it on cloud I get unable to find valid certification path to requested target

Is there any additional configuration or setup required in cloud to work.

 

Error details:

org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught Throwable
java.util.concurrent.CompletionException: com.microsoft.aad.msal4j.MsalClientException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: com.microsoft.aad.msal4j.MsalClientException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by narendragandhi

Hi @ddadfdsf 

 

For Secured rest service calls, you can refer this thread which has detailed steps - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/call-third-part-y-rest-service-from-aem-as-cloud-using/m-p/576461/highlight/true#M144133

 

Thanks

Narendra

2 replies

kautuk_sahni
Employee
March 20, 2024

@ddadfdsf Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
narendragandhi
narendragandhiAccepted solution
New Participant
March 14, 2024