Free auditStart free
GuideClient error · curl and OpenSSL

SSL certificate problem: unable to get local issuer certificate

curl and other OpenSSL-based tools say this when no trusted issuer is found. Check the missing intermediate, the CA store or a proxy, and avoid -k in production.

4 min
read
5
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
In one line

"Unable to get local issuer certificate" means the client could not find the issuer of a server certificate in its trusted store. The server may not send its intermediate certificates, the client's CA bundle may be missing or old, or a proxy may substitute its own certificate. Fix the chain or point curl at the right CA file. Don't use -k in production.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Explained

What it means

OpenSSL's documentation defines the verify error behind the message, X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY: "The issuer certificate could not be found: this occurs if the issuer certificate of an untrusted certificate cannot be found." libcurl reports a failed check as error 60, CURLE_PEER_FAILED_VERIFICATION: "The remote server's SSL certificate or SSH fingerprint was deemed not OK."

curl explains the model. Every trusted server certificate is signed by a certificate authority, and your local CA store holds the authorities the client trusts. curl does verification by default, and it fails if the server uses a self-signed certificate, if you have no CA store installed, if the certificate comes from an authority not in the store, or if "the remote host is an impostor impersonating your favorite site." That last item is why you shouldn't just turn checks off.

OpenSSL defines this text, so any tool that reports OpenSSL verify errors can print it, and the diagnosis below applies beyond curl. Browsers show the same underlying failures as warnings, covered on Your connection is not private.

03How it works

The fix that you should not ship

  1. 1

    Reproduce with curl -v

    Confirm the failing hostname and whether the error is verification (60) rather than a network error.

  2. 2

    Test from a second machine

    If a clean machine succeeds, the problem is your CA store or proxy. If it fails too, the server's chain is incomplete or untrusted.

  3. 3

    Fix at the right layer

    Server chain problems get fixed on the server. Client store problems get fixed by installing or pointing to a bundle. Don't add the same trust change in both places.

  4. 4

    Retest without -k

    The final test must pass with verification on.

04Explained

What it does to SEO

If the cause is an incomplete chain on your site, some clients, and possibly crawlers, will fail to verify it while your own browser looks fine. Fix the chain and recheck from a clean client. See Expired SSL certificate for how invalid certificates affect HTTPS canonical choice.

Sources · 5

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • openssl.org
  • curl.se
  • nginx.org
  • cloudflare.com
  1. 01OpenSSL: X509_STORE_CTX_get_errordocs.openssl.org · checked 2026-10-25
  2. 02libcurl: error codescurl.se · checked 2026-10-25
  3. 03curl: TLS certificate verificationcurl.se · checked 2026-10-25
  4. 04nginx: Configuring HTTPS serversnginx.org · checked 2026-10-25
  5. 05Cloudflare docs: Error 526developers.cloudflare.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What does 'unable to get local issuer certificate' mean?

OpenSSL could not find the issuer of the certificate among the certificates it trusts. Either the server did not send the intermediate certificates, or the client's CA store does not contain the right authority.

02How do I fix it in curl?

Find the cause first. Provide the correct CA file with --cacert, or use --ca-native for the system store, or fix the server's chain. Avoid -k outside throwaway experiments.

03Is curl error 60 the same thing?

Yes, usually. libcurl error 60 is CURLE_PEER_FAILED_VERIFICATION, returned when the server certificate was deemed not OK. This message is one of the reasons behind it.

04Why does it work in my browser but not curl?

Browsers and curl can use different trust stores. nginx's docs note that browsers usually store intermediate certificates they receive, so actively used browsers may not complain about a server that sends no chain bundle.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane