Azure:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到RequestedTarget的有效证书路径 [英] Azure: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:unable to find valid certification path toRequestedTarget

查看:142
本文介绍了Azure:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到RequestedTarget的有效证书路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个托管在Intranet上的应用程序,我们正在尝试为此配置Azure SSO.登录页面将重定向到Microsoft登录门户,并且我们收到授权码.但是,当我们尝试将请求回发给Microsoft以获取令牌时,就会遇到此特定错误.

We have an application hosted on intranet and we are trying to configure Azure SSO for the same. The login page is getting redirected to Microsoft login portal and we are receiving the authorization Code. But when we try to post a request back to Microsoft to gain the token, we get this particular error.

**sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 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
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
   at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283)
    at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)**

我们通过从浏览器下载证书并将它们导入到jdk/jre/lib/security/cacerts中来放置证书.已启用Web代理访问Internet.我们没有足够的想法来寻求解决方案.任何帮助将不胜感激.

We have placed the certificates by downloading them from the browser and importing them into jdk/jre/lib/security/cacerts as well. Web proxy has been enabled to access internet. We are running out of ideas to get a resolution. Any help would be appreciated.

推荐答案

似乎许多用户对 PKIX路径构建失败有类似的疑问:SunCertPathBuilderException:无法找到到请求目标的有效认证路径,这是得分很高的答案: https://stackoverflow.com/a/36427118/1595293

It seems like many users have similar questions about PKIX path building failed: SunCertPathBuilderException: unable to find valid certification path to requested target, here is really high scored answer: https://stackoverflow.com/a/36427118/1595293

基于: https://magicmonster.com/kb/prg/java/ssl/pkix_path_building_failed/

这篇关于Azure:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到RequestedTarget的有效证书路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆