PKIX问题:sun.security.validator.ValidatorException: PKIX path building failed
对新项目clean install 的时候,报错了,提示没有合法的证书,报错信息如下
[ERROR] Failed to execute goal on project springbootactivity: Could not resolve dependencies for project com.example:springbootactivity:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.springframework.boot:spring-boot-starter-test:jar:2.4.1: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-test:jar:2.4.1: Could not transfer artifact org.springframework.boot:spring-boot-starter-test:pom:2.4.1 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
打开Idea,File->Settings->Maven->Runner,在VM Options中填入如下配置即可
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
再次clean install,就可以BUILD SUCCESS
PS
这里唯一的缺点就是每新建一个项目都要这样设置一次,暂时这样先用着吧,后面再彻底解决。
PKIX问题:sun.security.validator.ValidatorException: PKIX path building failed相关推荐
- BUG处理:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path buil
分享目的: 如果别人已经讲述了,这里只会给出相关链接 只补充解决思路. 每个人在寻找解决答案过程中,遇到的痛点难点都是不同的. 这里仅阐述我实际项目遇到问题的解决方案. BUG描述: tomcat配置 ...
- 报错:sun.security.validator.ValidatorException: PKIX path building failed
背景 本人使用itext导出pdf时,会报这个错误:sun.security.validator.ValidatorException: PKIX path building failed. 报错代码 ...
- 对接服务,对方服务器更新SSL证书,服务https的get和post报错。 sun.security.validator.ValidatorException: PKIX path building
错误信息 javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path build ...
- 解决调用第三方API报sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provid
1.最近在调用第三方API遇到证书验证问题 postman调用和用RestTemplate分别报错如下: 2.经过查询资料 是https,需要安装证书,但是自定义的证书貌似得不到信任,所以报PK ...
- Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provid
1,导出浏览器的证书(以百度为例) 保存在本地,然后上传到服务器 2,查看服务器安装的证书 # 查看服务器安装的证书 keytool -list -keystore /usr/local/jdk1.8 ...
- 最全解决 PKIX问题方案:sun.security.validator.ValidatorException: PKIX path building failed:
这个问题的根本原因是你安装JDK时,Java\jar 1.8.0_141\lib\ext\里面缺少了一个安全凭证jssecacerts证书文件,通过运行下面类可以生成证书,将生成的证书放在Java\j ...
- 在linux下tomcat报javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX
在本地windows环境Java服务器 访问https服务器没有问题,换到测试环境linux服务器访问时出现上面这个问题, 是证书出问题了,服务器不信任我们自己创建的证书,所以在代码中必须要忽略证书信 ...
- Android studio解决 sun.security.validator.ValidatorException
使用adroid studio出现错误: Caused by: sun.security.validator.ValidatorException: PKIX path building failed ...
- 关于解决驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“sun.security.validator.ValidatorException:
首先 如果你是在访问一个网站,可以通过可以通过导入证书的方式解决该问题.或者跳过ssl证书验证.这些操作步骤,其他博主已经写的非常详细了.在这里不做赘述. 如果你只是单纯链接一个本地数据库,却莫名其妙 ...
最新文章
- jQuery 3.0的domManip浅析
- origin做相关性分析图_高分文章的相关性热图,十分钟教你学会无代码复现
- Java实现素数的判断
- JAVA ++ 运算符题目
- 从cpp向qml文件传中文字符串的方法
- 类的定义与抽取 java 1615134563
- Protobuffer和json深度对比
- T4 Templates and the Entity Framework
- SQL高手篇:精典SQL FAQ收藏
- 获得数据库连接池中数据连接资源的两种方式
- java sequence 生成器_分布式高效唯一ID生成器(sequence)
- cnn程序流程图_深度学习(一)——CNN算法流程
- IDEA设置字体大小之后没有效果的解决方案
- 深度学习方法(十五):知识蒸馏(Distilling the Knowledge in a Neural Network),在线蒸馏
- jQuery插件,UI
- k8s dns 添加自定义域名解析
- fastjson将date转换成了long
- C语言习题答案【7】(仅参考)
- WLAN@Wi-Fi
- office最完整的CAB文件下载