解决unable to find valid certification path to requested target
2018-03-05 10:20
477 查看
这是由于没有数字证书解决方法
1.保存需要访问网站的证书
![](https://img-blog.csdn.net/20180305095938520?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3pjMTk5MTUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
![](https://img-blog.csdn.net/20180305100013108?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3pjMTk5MTUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
2.保存好证书之后,打开dos窗口并切换到安装jre的目录
![](https://img-blog.csdn.net/20180305100209229?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3pjMTk5MTUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
需要注意的是项目中使用的是哪个jre,
![](https://img-blog.csdn.net/20180305100300937?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3pjMTk5MTUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
执行如下命令
![](https://img-blog.csdn.net/20180305101708786?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvd3pjMTk5MTUyMA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)
库密钥口令输入:changeit
是否信任:Y
1.保存需要访问网站的证书
2.保存好证书之后,打开dos窗口并切换到安装jre的目录
需要注意的是项目中使用的是哪个jre,
执行如下命令
keytool -import -alias zs -keystore cacerts -file D://zs.cer
库密钥口令输入:changeit
是否信任:Y
查看证书,密钥仍然是changeit keytool -list -keystore cacerts -alias 删除证书
keytool -delete -alias zs -keystore cacerts
相关文章推荐
- 解决PKIX问题:unable to find valid certification path to requested target
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决javamail ssl 测试unable to find valid certification path to requested target
- 解决PKIX:unable to find valid certification path to requested target 的问题
- unable to find valid certification path to requested target'解决办法
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX path building failed的问题unable to find valid certification path to requested target
- 解决PKIX问题:unable to find valid certification path to requested target
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX问题:unable to find valid certification path to requested target【X509TrustManager】
- 解决PKIX问题:unable to find valid certification path to requested target
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX:unable to find valid certification path to requested target 的问题
- 解决PKIX问题:unable to find valid certification path to requested target【X509TrustManager】
- Java调用https服务报错unable to find valid certification path to requested target的解决方法