Git Clone Fails: Server Certificate Verification Failed

拥有回忆 提交于 2019-12-07 02:01:21

问题


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

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

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.

Environment:

  • 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

回答1:


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

Heh...




回答2:


Delete all reference to the SSH certificate from your Github account and validate manually with an e-mail address and password.




回答3:


To do your clone without dealing with cert problem this post (disable certification verification) can help you.



来源:https://stackoverflow.com/questions/37444154/git-clone-fails-server-certificate-verification-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!