Git not working - local issuer certificate

Discussion of applications not mentioned above.
Locked
User avatar
Cafsenra
Posts: 18
Joined: 20 Jul 2020, 00:57

Git not working - local issuer certificate

Post 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
DevOps Engineer. Software Developer on free time ;)
User avatar
kalypzo
Posts: 1
Joined: 05 Oct 2020, 05:21

Re: Git not working - local issuer certificate

Post 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
Locked