How do I fix git certificate errors?

When trying to connect to our private Github Enterprise server, which is protected by a COMODO certificate, I get an error "fatal: unable to access 'https://github.domain/repository/project.git": error setting certificate verify locations:"

.

The listed error is copied from Android Studio, but the git command also doesn't work the same. It seems to have something to do with the certificate, but other people on our site can connect fine. It's just me. Removing and reinstalling git does not solve the problem.

change

I found a fake CACert line in my users.gitconfig file. When I pulled this to match other .gitconfig files (which have no line) I got another error. Now I am getting SSL certificate problem: unable to get local issuer certificate

from git CLI and AndroidStudio Git. Please note that Visual Studio git and Netbeans git work just fine.

+3


source to share


1 answer


The solution was to pre-install all the latest COMODO root and intermediate certificates into our internal certificate and then apply them to the Enterprise Github server.



0


source







All Articles