9

I have a problem when pushing git. this error message shows up:

SSL certificate problem: unable to get local issuer certificate
carles xuriguera
  • 930
  • 1
  • 14
  • 30
  • 2
    Hi Carles - the other question linked above has several possible solutions to your question. If none of those solve your problem then a new question that explains the unique properties of your circumstances would be helpful. :) – Edward Thomson Nov 08 '18 at 15:44
  • 4
    I was facing the same error message and the thread at https://github.com/desktop/desktop/issues/9293 got me to try the command `git config --global http.sslbackend schannel` which resolved the issue. – Stephane Jun 02 '22 at 07:23
  • I solved the issues in VS 2019 going to Git Global Settings and changing Cryptographic Network Provider from "Unset" to "Secure Channel" – Massimo Coletti Sep 04 '22 at 10:16

1 Answers1

3

There are several ways this issue has been resolved previously:

A. Ensure the root cert is added to git.exe's certificate store as discussed here.

B. Tell Git where to find the CA bundle by running:

git config --system http.sslCAPath /absolute/path/to/git/certificates

or copying the CA bundle to the /bin directory and adding the following to the gitconfig file:

sslCAinfo = /bin/curl-ca-bundle.crt

C. Reinstalling Git.

D. Ensuring that the complete CA is present, including the root cert.

BuZZ-dEE
  • 6,075
  • 12
  • 66
  • 96