【问题标题】:Java Certificates, Eclipse and Maven: PKIX path building failedJava 证书、Eclipse 和 Maven:PKIX 路径构建失败
【发布时间】:2021-10-29 07:00:51
【问题描述】:

“干净安装”时的项目在本地.m2搜索“eiUtil jar”,如果不存在。

它尝试搜索远程工件并给出以下信息:

Failed to read artifact descriptor for Gullaintegrator:eiutil:jar:2.15-SNAPSHOT: 
   Could not transfer artifact Gullaintegrator:eiutil:pom:2.15-SNAPSHOT from/to Gullaintegrator-snapshots 
   (https://artifactory.Gullaintegrator.cosng.net/libs-snapshot): 
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
      unable to find valid certification path to requested target

建议的解决方案是转到https://artifactory.gullaintegrator.cosng.net/ 并在Chrome 上下载证书并将其安装在Java 证书中(lib\security\cacerts)。它以某种方式适用于一个系统。

这是唯一的解决方案吗? 实际上是什么问题? 为什么需要这样的练习?在 eclipse 中是否有临时和快速的解决方法?

【问题讨论】:

标签: java eclipse maven cacerts


【解决方案1】:

PKIX 错误消息意味着 Java VM 不信任服务器的证书。

您应该下载服务器的证书(或颁发它的证书颁发机构的证书)并将其添加到您用于运行 Maven 的 java VM 的 cacerts 密钥库中。

要添加证书,您可以使用命令行实用程序 keytool。

【讨论】:

    猜你喜欢
    • 2016-02-14
    • 1970-01-01
    • 2019-08-08
    • 2016-12-15
    • 2018-07-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-11
    相关资源
    最近更新 更多