【问题标题】:How do I fix git certificate errors?如何修复 git 证书错误?
【发布时间】:2014-11-14 15:46:32
【问题描述】:

在尝试连接到使用 COMODO 证书保护的私有 Github Enterprise 服务器时,我收到了 "fatal: unable to access 'https://github.domain/repository/project.git": error setting certificate verify locations:" 错误。

列出的错误是从 Android Studio 复制的,但 git 命令行也以同样的方式失败。显然与证书相关的某些内容已损坏,但我们站点上的其他人可以正常连接。只有我。卸载并重新安装 Git 并不能解决问题。

编辑

我在 users.gitconfig 文件中发现了一个虚假的 CACert 行。当我将其拉到与其他 .gitconfig 文件(没有该行)匹配时,我得到了一个不同的错误。我现在从 Git CLI 和 AndroidStudio Git 获得SSL certificate problem: unable to get local issuer certificate。请注意,Visual Studio Git 和 Netbeans Git 运行良好。

【问题讨论】:

    标签: git github-enterprise


    【解决方案1】:

    解决方案是将所有最新的 COMODO 根证书和中间证书预先附加到我们的内部证书,然后将其应用到 Github Enterprise 服务器。

    【讨论】:

      猜你喜欢
      • 2022-06-13
      • 2017-12-11
      • 2019-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-21
      • 2016-05-03
      • 2019-07-03
      相关资源
      最近更新 更多