Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Clone Fails: Server Certificate Verification Failed

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
like image 528
Msquared Avatar asked May 25 '16 17:05

Msquared


People also ask

How do I fix verification of server certificate failed?

In order to resolve this problem, you can: Get a Valid Server Certificate installed on the web server. Accept the certificate programmatically. Install the public key of the server certificate issuing authority in the trusted CA store of the client machine.

How do I disable TLS certificate verification in git?

Prepend GIT_SSL_NO_VERIFY=true before every git command run to skip SSL verification. This is particularly useful if you haven't checked out the repository yet. Run git config http. sslVerify false to disable SSL verification if you're working with a checked out repository already.

Why do I need a CA certificate?

The main goal of a CA is to verify the authenticity and trustworthiness of a website, domain and organization so users know exactly who they're communicating with online and whether that entity can be trusted with their data.

How do I get a local issuer certificate?

When ssl certificate problem unable to get local issuer certificate error is caused by a self-signed certificate, the fix is to add the certificate to the trusted certificate store. Open the file ca-bundle. crt located in the directory above, then copy and paste the Git SSL certificate to the end of the file.


1 Answers

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

like image 122
Msquared Avatar answered Oct 04 '22 21:10

Msquared