Page 1 of 1

Git not working - local issuer certificate

Posted: 06 Sep 2020, 16:47
by Cafsenra
By executing the command git, for example: git clone https://github.com/curl/curl.git, I get the following error:

Cloning into 'curl'...
fatal: unable to access 'http://github.com/curl/curl.git/': SSL certificate problem: unable to get local issuer certificate

have anyone solve this? Thank you

Re: Git not working - local issuer certificate

Posted: 05 Oct 2020, 05:28
by kalypzo
Seems the CA certs aren't properly setup for the git installation.
I managed to find out all the CA certs are located at /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem and you just need to configure git to point to them with the following:

Code: Select all

git config --system http.sslCAInfo /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem