所有 git 命令都会抛出无法找到到请求的目标的有效认证路径错误

所有 git 命令都会抛出无法找到到请求的目标的有效认证路径错误

git我有一台 Ubuntu VM,直到最近,安装一直都很顺利,但今天我执行任何git命令时都会看到这样的情况:

$ git pull
Fatal: java.lang.Error encountered.  Details:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
fatal: credential helper '!/home/linuxbrew/.linuxbrew/Cellar/openjdk/1.8.0-181/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/linuxbrew/.linuxbrew/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar' told us to quit

我发现这篇文章其中讨论了 Jenkins 中的这个问题并引用了路径$JAVA_HOME/jre/lib/security/cacerts,但我的 Ubuntu 机器没有该路径并且没有使用 Jenkins。

我猜我需要安装我公司的证书,但我不知道在哪里安装它。

相关内容