我有一个类使用xml访问安全的URL(以https开头),并在其末尾处理xml并发送回应回应。但是,当我这样做时,我得到了一些例外。 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
javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败
我GOOGLE了很多,发现很多答案,但没有一个为我工作。 我在../jre/lib/security
目录下将证书添加到我的cacerts
文件中,并且还安装了证书。但没有任何工作适合我。 我也通过运行InstallCert.java
文件检查证书,它说没有错误,证书已被信任。 请帮忙。 在此先感谢。
谢谢拉比。将java版本也导致xml响应? – user3035077
我认为它也可以发生在xml上。请检查Java版本是否不匹配? – Rabbi