I tried with my Microsoft Issuer and audience. i am getting SSL certificate error

NimbusJwtDecoder jwtDecoder = (NimbusJwtDecoder) JwtDecoders.fromIssuerLocation(issuer);

I have tried with Microsoft issuer and audience, the above line causing SSL exception
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target