【发布时间】:2014-12-23 05:57:55
【问题描述】:
我有一个类使用 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
我搜索了很多,找到了很多答案,但没有一个对我有用。
我将证书添加到../jre/lib/security 目录下的cacerts 文件中,并且还安装了证书。但没有什么对我有用。
我还通过运行InstallCert.java 文件检查了证书,它说没有错误,证书已经受信任。
请帮忙。
提前致谢。
【问题讨论】:
标签: java ssl https ssl-certificate