Git Clone Fails: Server Certificate Verification F

2020-08-26 03:27发布

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:

3条回答
淡お忘
2楼-- · 2020-08-26 04:13

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...

查看更多
淡お忘
3楼-- · 2020-08-26 04:18

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

查看更多
何必那么认真
4楼-- · 2020-08-26 04:25

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

查看更多
登录 后发表回答