Azure Graph API:无法在 REST 调用中找到指向所请求目标的有效证书路径

Azure Graph API: Unable to find valid certification path to requested target on REST call

我正在研究 Oracle Identity Manager 与 Office 365 的集成,以进行许可供应(主要目的)。当我到达连接器尝试为令牌请求调用 de REST 服务的地步时,它失败并出现以下错误:

SEVERE: org.identityconnectors.restcommon.ClientHandler : executeRequest : Error occurred while executing a POST REST call on the target. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

我已经从浏览器下载了为此调用指定的 url 上的证书路径,并将其导入到我的 java 密钥库中,但仍然出现此错误。

有人知道 Microsoft 方面是否需要为此做一些特定的事情吗?

感谢您的帮助。

原来答案比我想的要简单。我遗漏了将证书导入 Trust 密钥库的部分(我只是将它们导入到 cacerts jdk 文件中)。我做到了并且工作得很好。

谢谢大家