Git Clone失败:服务器证书验证失败 [英] Git Clone Fails: Server Certificate Verification Failed

查看:619
本文介绍了Git Clone失败:服务器证书验证失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为这个错误,我一直无法 git clone 几乎任何github回购

I've been unable to git clone just about any github repo because of this error


致命:无法访问'github_url':服务器证书验证失败。 CAfile:/home/ubuntu/.ssh/rel3_dodroot_2048.crt CRLFile:none

fatal: unable to access 'github_url': server certificate verification failed. CAfile: /home/ubuntu/.ssh/rel3_dodroot_2048.crt CRLFile: none

我注意到其他一些人有过类似的错误,但是使用 .ssl 文件夹中的证书。我从来没有见过任何人对.ssh中的证书有这个问题,但我不知道如何解决它。

I've noticed a few other people have had a similar error, but with the certificate in the .ssl folder. I've never seen anyone have this problem with the certificate in the .ssh though, and I have no idea how to fix it.

环境:

  • Nvidia Jetson TX1 running Ubuntu 14.04
  • Specific Github of Interest (although it happens with all of them)
  • https://github.com/rbgirshick/fast-rcnn.git

推荐答案

好的,我找到了解决方案...
我想我的电脑上运行的脚本(我没有看过)

Ok, I found the solution... I guess a script (I hadn't looked at) ran on my computer which ran the line

git config --global http.sslVerify true

所以解决方案只是改变运行

So the solution was simply to change run

git config --global http.sslVerify false

嘿...

这篇关于Git Clone失败:服务器证书验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆