Hi you can export the correct certificate from this link, by using method 2 you mentioned:
https://graph.microsoft.com/.default
I had the exact same issue as you.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello!
I've been working on an integration with the Microsoft Graph API, on a Java application, running on a wildfly server and most of the times, when trying to retrieve the access token, I receive the following certificates error:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target,
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
The steps I follow for authorization are:
In some cases, the authorization flow works without any errors, and of course, I can also use other services provided by the API.
I've tried two ways for adding the certificates to the Java truststore:
My question is: what am I missing here? Is there another way I should handle the certificates?
Looking forward to hearing your answers! Thank you!
Hi you can export the correct certificate from this link, by using method 2 you mentioned:
https://graph.microsoft.com/.default
I had the exact same issue as you.
I have the exact same problem. I do several https calls to external systems requiring cert to be imported but its only when I want to fetch the oauth2 token I got the PKIX error. But the error only occurs when running in docker container. When running outside of container with same certificates installed it seems to be working.