# 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.

Canonical: https://scaplet.com/errors/browser/ssl-certificate-problem-unable-to-get-local-issuer-certificate

Guide Client error · curl and OpenSSL

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fbrowser%2Fssl-certificate-problem-unable-to-get-local-issuer-certificate%20(%22SSL%20certificate%20problem%3A%20unable%20to%20get%20local%20issuer%20certificate%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fbrowser%2Fssl-certificate-problem-unable-to-get-local-issuer-certificate%20(%22SSL%20certificate%20problem%3A%20unable%20to%20get%20local%20issuer%20certificate%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fbrowser%2Fssl-certificate-problem-unable-to-get-local-issuer-certificate%20(%22SSL%20certificate%20problem%3A%20unable%20to%20get%20local%20issuer%20certificate%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fbrowser%2Fssl-certificate-problem-unable-to-get-local-issuer-certificate%20(%22SSL%20certificate%20problem%3A%20unable%20to%20get%20local%20issuer%20certificate%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 4 minutes.

1. [What it means 01](#what-it-means)
2. [Find which cause you have 02](#find-which-cause-you-have)
3. [The fix that you should not ship 03](#the-fix-that-you-should-not-ship)
4. [What it does to SEO 04](#what-it-does-to-seo)

_01_Explained

## 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](/glossary/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](/errors/browser/your-connection-is-not-private).

_02_Cause, test and fix

## Find which cause you have

Cause

### Server does not send its intermediate certificates

How to tell

Another client or a browser may accept the site while curl fails; `s_client` shows only one certificate in the chain

Fix

On the server, serve the leaf plus intermediates. In nginx, concatenate the bundle after the server certificate and use that file for `ssl_certificate`.

Cause

### Client has no CA store, or an incomplete one

How to tell

Fails on every [HTTPS](/glossary/https) site

Fix

Point curl at a CA bundle: `--cacert file`, or the `CURL_CA_BUNDLE`, `SSL_CERT_FILE` or `SSL_CERT_DIR` environment variables.

Cause

### Private or corporate CA

How to tell

Works on the internal network's browsers that have the CA installed

Fix

Add that CA to the store, or pass it with `--cacert` for that transfer.

Cause

### TLS-inspecting proxy

How to tell

Fails on many sites, certificate issuer is your company or security tool

Fix

Trust the proxy's CA in your tooling. Ask your administrator for the file.

Cause

### Self-signed certificate

How to tell

Issuer and subject are the same

Fix

Replace with a certificate from a public authority, or trust the self-signed one on purpose for that host.

Cause

### Cloudflare in front, Full (strict)

How to tell

Browsers see [Error 526](/errors/http/526) instead

Fix

The origin must serve a valid certificate and a complete chain.

Show what the server sends and why verification fails

```
curl -v https://example.com 2>&1 | head -40 openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null
```

curl documents several ways to supply trust. Use `--cacert` to give it a CA certificate for one transfer. Use `--ca-native` to use the system's native store; curl's docs say that with Schannel it already uses the Windows native CA store. You can extract a CA from a server with `curl -w %{certs} https://example.com > cacert.pem`, and curl notes you can download the Mozilla (Firefox) CA store converted to PEM.

_03_How 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.

**Skipping verification removes the protection**curl's docs say of -k / --insecure: "We strongly recommend this is avoided and that even if you end up doing this for experimentation or development, never skip verification in production." Turning verification off in any other tool has the same effect. It turns a certificate problem into an open door for anyone on the network path.

_04_Explained

## 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](/seo-issues/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. 01 [OpenSSL: X509_STORE_CTX_get_error](https://docs.openssl.org/master/man3/X509_STORE_CTX_get_error/) docs.openssl.org · checked 2026-10-25
2. 02 [libcurl: error codes](https://curl.se/libcurl/c/libcurl-errors.html) curl.se · checked 2026-10-25
3. 03 [curl: TLS certificate verification](https://curl.se/docs/sslcerts.html) curl.se · checked 2026-10-25
4. 04 [nginx: Configuring HTTPS servers](https://nginx.org/en/docs/http/configuring_https_servers.html) nginx.org · checked 2026-10-25
5. 05 [Cloudflare docs: Error 526](https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-526/) developers.cloudflare.com · checked 2026-10-25

Questions

## Asked a lot.

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

_01_ What 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.

_02_ How 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.

_03_ Is 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.

_04_ Why 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.

## Keep learning

[All errors](/errors)

[Learn Firefox: Warning: Potential Security Risk Ahead Browser errors](/errors/browser/firefox-warning-potential-security-risk-ahead) [Related Expired SSL certificate Security and mobile](/seo-issues/expired-ssl-certificate) [Read next Firefox: "Secure Connection Failed" Browser errors](/errors/browser/firefox-secure-connection-failed) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Browser errors
[Access-Control-Allow-Origin](/errors/browser/access-control-allow-origin) [Aw, Snap!](/errors/browser/aw-snap) [blocked:mixed-content](/errors/browser/blocked-mixed-content) [Chrome out of memory](/errors/browser/chrome-out-of-memory) [Firefox Server Not Found](/errors/browser/firefox-server-not-found) [Firefox: "Secure Connection Failed"](/errors/browser/firefox-secure-connection-failed) [Firefox: File not found](/errors/browser/firefox-file-not-found) [Firefox: the connection has timed out](/errors/browser/firefox-the-connection-has-timed-out) [Firefox: Warning: Potential Security Risk Ahead](/errors/browser/firefox-warning-potential-security-risk-ahead) [Refused to apply style ... because its MIME type](/errors/browser/refused-to-apply-style-from-because-its-mime-type) [Safari can't find the server](/errors/browser/safari-can-t-find-the-server) [Safari can't open the page](/errors/browser/safari-can-t-open-the-page) [Safari: "This Connection Is Not Secure" and related warnings](/errors/browser/safari-this-connection-is-not-private) [SSL certificate problem: unable to get local issuer certificate](/errors/browser/ssl-certificate-problem-unable-to-get-local-issuer-certificate) [Text content does not match server-rendered HTML](/errors/browser/text-content-does-not-match-server-rendered-html) [This page isn't working](/errors/browser/this-page-isn-t-working) [This site can't provide a secure connection](/errors/browser/this-site-can-t-provide-a-secure-connection) [Uncaught ReferenceError: x is not defined](/errors/browser/uncaught-referenceerror-is-not-defined) [Uncaught TypeError: Cannot read properties of undefined](/errors/browser/uncaught-typeerror-cannot-read-properties-of-undefined) [Your connection is not private](/errors/browser/your-connection-is-not-private) [Your connection is not private in Chrome (on every site)](/errors/browser/your-connection-is-not-private-chrome)

Terms on this page
[SSL certificate](/glossary/ssl-certificate) [HTTPS](/glossary/https)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
