Git SSL certificate problem Git Origin: Build & delivery OSI layer 6 · Presentation Last updated 11 Oct 2026

fatal: unable to access 'https://…': SSL certificate problem: unable to get local issuer certificate

Git doesn’t trust the HTTPS server’s certificate — corporate proxy, self-hosted Git with an internal CA, or outdated CA bundle.

Exact message you may see SSL certificate problemunable to accessserver certificate verification failed
Seen on: Git

Meaning

Corporate SSL inspection re-signs HTTPS with a company root CA. Point Git at that CA instead of disabling verification.

Common causes

  • Corporate proxy with its own CA
  • Self-hosted GitLab/Gitea with a private CA
  • Outdated Git for Windows CA bundle

⚡ Quick fix

  1. git config --global http.sslCAInfo /path/to/company-root.pem
  2. Windows: git config --global http.sslBackend schannel (uses the Windows store)
  3. Update Git

Detailed fix by platform

Git

  1. git config --global http.sslBackend schannel # Windows

How to diagnose

  1. Network — Proxy/inspection?
  2. Server — Private CA?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

1013 — Cloudflare Error 1013: HTTP hostname and TLS SNI hostname mismatch (Cloudflare)1013421 — HTTP 421 Misdirected Request (HTTP)421ATS — App Transport Security has blocked a cleartext HTTP resource load (iOS)ATSAuthentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication failedCERTIFICATE_VERIFY_FAILED — SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate (API)CERTIFICATE_VERIFY_FA…CLEARTEXT — CLEARTEXT communication to host not permitted by network security policy (Android)CLEARTEXTCloudflare Origin CA not trusted — NET::ERR_CERT_AUTHORITY_INVALID with a Cloudflare Origin Certificate (record not proxied) (Cloudflare)Cloudflare Origin CA …cURL error 35 — cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to host:443 (PHP)cURL error 35Git SSL c…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.