彻底解决unable to find valid certification path to requested target
来源:互联网 发布:保险网络与电话营销 编辑:程序博客网 时间:2024/05/21 09:22
unable to find valid certification path to requested target
这个问题困扰我好久了,之前找到过一个解决方案,可是没用几天那个方案就不怎么奏效了,每次生成的jssecacerts第二天还是会报错。
关于上一个解决方案,参考
Could not connect to SMTP host,PKIX path building failed
今天尝试了另外一个方案,安装证书。
下载证书
第一步是要下载证书
去你程序要访问的网站,点击那个锁按钮,并点击查看详情(chrome浏览器)
点击View certificate
点击详细信息
复制到文件
下一步
选择格式
生成的名称,最后保存
这里我保存在的D盘根目录下叫abc.cer
导入证书
切换到jre的/lib/security/下
执行如下命令
keytool -import -alias abc -keystore cacerts -file D://abc.cer
库密钥口令输入:changeit
将会看到如下的信息
是否信任:Y
证书导入成功
查看证书,密钥仍然是changeit
keytool -list -keystore cacerts -alias vbooking
至此证书导入成功。
重新运行程序,看还会不会报错。
参考文献
http://www.mamicode.com/info-detail-99920.html
1 0
- 彻底解决unable to find valid certification path to requested target
- unable to find valid certification path to requested target'解决办法
- unable to find valid certification path to requested target
- unable to find valid certification path to requested target
- SunCertPathBuilderException: Unable To Find Valid Certification Path To Requested Target
- Unable to find valid certification path to requested target
- SunCertPathBuilderException: unable to find valid certification path to requested target
- unable to find valid certification path to requested target
- 20170704unable to find valid certification path to requested target
- PKIX path building failed: unable to find valid certification path to requested target
- 解决PKIX path building failed的问题unable to find valid certification path to requested target
- 解决方案:PKIX path building failed:unable to find valid certification path to requested target
- No more 'unable to find valid certification path to requested target'
- unable to find valid certification path to requested target 我的解决办法
- 现https协议的服务异常:'unable to find valid certification path to requested target'
- 解决PKIX:unable to find valid certification path to requested target 的问题
- (已解决)SunCertPathBuilderException: unable to find valid certification path to requested target
- HTTPS中SunCertPathBuilderException: unable to find valid certification path to requested target
- 【Android通话记录】仿小米通话
- Apache shiro集群实现 (四)shiro授权(Authentication)--访问控制
- Ajax-客户客服聊天系统
- C 的五种储存类
- nodejs文档整理
- 彻底解决unable to find valid certification path to requested target
- 究竟哪些应用适合改造成SaaS服务?
- javascript中创建变量时作用域和内存详解!
- 智能家居进入人工智能时代
- Spring整理系列(08)——spring与quartz整合执行定时任务
- 修改配置文件不用重启tomcat
- JavaScript面试题
- iOS图解多线程
- Json转换利器Gson之实例一-简单对象转化和带泛型的List转化