【问题标题】:getting sun.security.validator.ValidatorException: PKIX path building failed:获取 sun.security.validator.ValidatorException:PKIX 路径构建失败:
【发布时间】:2018-06-18 12:06:30
【问题描述】:

尝试从 Eclipse marketPlace 安装 Eclipse DTP(数据工具平台)。我正在使用 Eclipse Java Neon。我收到以下异常/错误。

Unable to read repository at 
http://download.eclipse.org/datatools/updates/content.jar.
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target

感谢任何帮助。

【问题讨论】:

    标签: java eclipse eclipse-plugin pkix eclipse-dtp


    【解决方案1】:

    下载 content.jar 文件时,您将被重定向到另一个镜像站点。

    在我的情况下,我被重定向到“https://mirrors.shu.edu.cn/eclipse/datatools/updates/content.jar

    此网站向您公开 ssl 证书,但您没有任何证书颁发机构能够验证此证书。

    你能做什么?

    1. 下载密钥库浏览器
    2. 在 Internet Explorer 中打开开发者工具并在网络视图中开始网络录制
    3. 在地址栏中复制/粘贴“http://download.eclipse.org/datatools/updates/content.jar
    4. 从网络视图获取 https 重定向 url
    5. 启动密钥库资源管理器并打开您的 cacerts 文件 (JRE_OR_JDK_HOME/jre/lib/security/cacerts)。访问密码是“changeit”
    6. 我不知道确切的翻译,但在密钥库资源管理器菜单栏中,您会找到一个菜单项,类似于“从 TLS/SSL 获取证书”,单击它并提供安全域名(对我来说:镜像.shu.edu.cn)
    7. 在cacerts中导入证书并保存cacerts
    8. 重启 eclipse 并再次测试

    一些要点:

    。 cacerts 是 java 使用的证书颁发机构的默认存储库

    。最好导入证书链(密钥库浏览器显示的所有证书,网站的证书除外)

    。仔细查看您在 cacerts 中导入的证书,因为 java 会信任它们

    【讨论】:

      猜你喜欢
      • 2013-04-27
      • 2014-09-05
      • 1970-01-01
      • 1970-01-01
      • 2014-11-18
      • 1970-01-01
      • 2018-07-18
      • 1970-01-01
      • 2016-10-09
      相关资源
      最近更新 更多