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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
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-ser...
Thanks
Narendra
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-ser...
Thanks
Narendra
@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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies