linuxgitsshgit-cloneca

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:


Solution

  • Community note: This answer degrades the security of your system. Please read the comments and other answers to find the best solution for the issue you are encountering.

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