【bug记录】PKIX:unable to find valid certification path to requested target 的问题
来源:互联网 发布:淘宝卖家交易额 抽成 编辑:程序博客网 时间:2024/06/15 22:01
今天在接国政通实名认证时,报错误unable to find valid certification path to requested target
错误大意为:找不到数字证书
解决方案如下:
第一,先在国政通下载数字证书 https://gboss.id5.cn/services/QueryValidatorServices?wsdl
第二,把数字证书导入jre中
keytool -
import
-file d:\idcheck.crt -keystore
"%JAVA_HOME%\jre\lib\security\cacerts"
-alias server
验证是否导入成功,可用以下命令查看结果
keytool -list -keystore
"%JAVA_HOME%\jre\lib\security\cacerts"
| findstr /i server
一般来说,以上两步就好了。但还是不解决问题,则执行第三步
第三,检查eclipse/myeclipse的JDK或JRE,是否为你导入证书的JRE。
注意:myeclipse是自带JDK的,JDK中自带JRE,而我们通过命令导入的jre是系统环境变量下path的jre。
两者很可能不是同一个,要改myeclipse的配置。(具体操作很简单,略)
最后建议:如果发现自己电脑上有多个JDK和JRE,以path路径下的为准,把其他的都删了。
2 0
- 【bug记录】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 的问题
- 解决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: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: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 的问题
- uva 10791 Minimum Sum LCM ( 唯一分解定理 )
- IE7局部滚动区域下绝对定位或相对定位元素不随滚动条滚动的bug
- WIN8的80端口被占用的问题
- 简单分析一下socket中的bind
- ssh自动登录的4种实现方法
- 【bug记录】PKIX:unable to find valid certification path to requested target 的问题
- 母牛的故事(2018)
- HDOJ 题目1233 还是畅通工程(最小生成树,模板)
- Java中的泛型方法
- 处理fragement的生命周期
- 程序员既要写好代码,又要写好文档
- Merge into的使用的例子
- android studio快捷键中英文对照,一些使用技巧,一些设置
- HDU 1058 Humble Numbers(DP,数)