Git Clone Fails: Server Certificate Verification F

2020-08-26 04:10发布

问题:

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:

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



回答3:

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