Skip to content
MtrXTools

unable to get local issuer certificate

The client can't find the certificate's issuer

Seen in curl (error 60), OpenSSL, Python, Git, Node.js (UNABLE_TO_GET_ISSUER_CERT_LOCALLY)

The client couldn't build a chain to a CA in its trust store.

Common causes

  • The server omits its intermediate certificate (browsers sometimes cope; command-line tools do not).
  • The client's CA bundle is missing or out of date.
  • A corporate proxy re-signs traffic with a CA the tool doesn't trust.

How to fix it

  1. Serve the full chain from the server (most common fix).
  2. Update the CA bundle (ca-certificates package, certifi for Python).
  3. Point the tool at your corporate CA (e.g. NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE). Never disable verification.
Check whether the chain is complete

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

Related errors

All 34 Command line & code errors