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:
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.
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.
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.
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.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With