Skip to content
MtrXTools

fatal: unable to access '...': SSL certificate problem: unable to get local issuer certificate

Git can't verify the server's certificate

Seen in git over HTTPS (clone, fetch, pull, push), Git for Windows, CI runners

Git's HTTPS client could not build a trusted chain for the remote server's certificate, so it refused to connect.

Common causes

  • A corporate proxy or antivirus re-signs HTTPS traffic with a CA that git does not trust.
  • A self-hosted Git server (GitLab, Gitea, Bitbucket) is missing its intermediate certificate or uses a private CA.
  • The CA bundle git uses is old, or Git for Windows is using its own bundle instead of the Windows store.

How to fix it

  1. Point git at your CA: git config --global http.sslCAInfo /path/to/corp-ca.pem (or http.<url>.sslCAInfo for one server).
  2. On Windows, use the system certificate store: git config --global http.sslBackend schannel.
  3. For a self-hosted server, install the full chain (fullchain.pem) on it.
  4. Setting http.sslVerify false or GIT_SSL_NO_VERIFY only hides the problem; it is not a fix.
Check the Git server certificate chain

Got a different message? Paste it into the error explainer.

Related errors

All 31 Dev tools & SSH errors