How to fix an incomplete certificate chain (SSL)
An incomplete certificate chain means your server sends your SSL certificate but not the intermediate certificate that links it to a trusted authority. The fix is to install the full chain file from your certificate provider and reload your web server.
Some browsers quietly work around this problem, while other browsers, phones, apps and tools such as payment gateways or booking widgets fail with a security error. That makes it easy to miss: the site often looks fine on the owner's own computer. The fix is almost always to install the full chain file instead of just the single certificate file.
What the problem is and what people see
A certificate is trusted because a certificate authority (CA) signed it. In practice there are usually three layers: your site certificate (also called the leaf or server certificate), one or more intermediate certificates, and a root certificate. The root is already stored in browsers and operating systems. The intermediates are not, so your server must send them along with your own certificate.
When it does not, the chain is incomplete. What people see depends on the device:
- Desktop Chrome and Edge may load the site normally, because they can often download a missing intermediate on their own. This is why owners say it works for me.
- Some other browsers, older phones and older devices show a warning that the certificate authority is unknown or the connection is not private.
- Tools such as curl, Python, Node, PHP scripts, webhooks and mobile apps usually fail with errors like
unable to verify the first certificateorunable to get local issuer certificate.
Why it matters
- Trust and sales: a visitor who sees a security warning usually leaves. Checkout pages, contact forms and booking widgets can break for the people affected.
- Security: people learn to click through warnings, and developers hit by chain errors are tempted to switch certificate checking off in their code, which is worse than the original problem.
- Reliability: crawlers, uptime monitors and integrations that cannot verify your certificate may fail, so the site is harder to crawl and monitor.
- Hard to spot: because some devices work and others do not, the problem can last for months before someone reports it.
How to check if your site has it
These free methods all work for non-developers, except the second and third, which need a terminal.
- Run the free SSL Labs Server Test (ssllabs.com/ssltest). Enter your domain and look in the certificate section for a message such as Chain issues: Incomplete, or a note that an extra download was needed.
- Run this command on your computer (replace example.com with your domain):
openssl s_client -connect example.com:443 -servername example.com
In the Certificate chain section, a healthy site lists at least two entries (numbered 0 and 1): your certificate and an intermediate. If only entry 0 appears and the output ends with Verify return code: 21 (unable to verify the first certificate) (or code 20, unable to get local issuer certificate), the chain is incomplete. A good result ends with Verify return code: 0 (ok).
- Try
curl -I https://example.com. An error mentioning the local issuer certificate points to the same problem.
SiteMonday's week 10 service covers domain, SSL and email deliverability, so a chain problem like this is one of the things that check looks for and lists in the ranked fix list.
How to fix it in general
- Log in to your certificate provider or hosting account, or find the files they emailed you. Look for a bundle called something like
fullchain.pem,ca-bundle.crtor a zip containing your certificate plus one or more intermediate files. - If you only have separate files, join them in the right order: your site certificate first, then the intermediate(s). You do not need to include the root. For example:
cat your_domain.crt intermediate.crt > fullchain.crt
- Point your server or control panel at the combined file. Keep the private key separate and never paste it into the chain file.
- Reload or restart the web server, then test again.
If you use Let's Encrypt with Certbot, use fullchain.pem rather than cert.pem. The second one contains only your own certificate.
Fixing it on common platforms
Menu names and settings differ between versions, themes and hosts, so use these as a guide to what to look for.
- Nginx: the
ssl_certificateline must point to the full chain file, andssl_certificate_keyto your private key. Runnginx -t, then reload. See the Nginx guide. - Apache: in Apache 2.4.8 and later, put the full chain in the file named by
SSLCertificateFile. Older versions use a separateSSLCertificateChainFileline. See the Apache guide. - IIS: import the intermediate certificate into the Intermediate Certification Authorities store of the Local Computer account (you can open it with
certlm.msc), then check the site binding still uses your certificate. - cPanel: usually under SSL/TLS, then Manage SSL sites. Look for the field called Certificate Authority Bundle (CABUNDLE) and paste the intermediate there. If AutoSSL issues your certificate, it normally handles this for you.
- Plesk: usually under Domains, then SSL/TLS Certificates. Look for the CA certificate field and add the intermediate.
- Cloudflare: when your site is proxied, visitors receive Cloudflare's certificate, so a chain problem is usually on your origin server. It matters most if your SSL mode checks the origin certificate (Full strict) or if anything connects to the origin directly.
- AWS: certificates issued by AWS Certificate Manager include the chain for you. If you imported a certificate, supply the intermediates in the certificate chain field. If you run your own web server on EC2, follow the Nginx or Apache steps.
- Managed hosting and website builders: you cannot edit the chain yourself. Contact the host and tell them the chain is incomplete, with your SSL Labs result.
How to confirm the fix worked
- Run the SSL Labs test again. If it shows an old result, use its option to clear the cached result and test afresh.
- Run the
openssl s_clientcommand again. You should see at least two certificates andVerify return code: 0 (ok). - Open the site on a phone using mobile data, and on a second browser, since those are where the problem usually shows.
- If an app, API or webhook was failing, trigger it again and check the error is gone.
How to stop it coming back
- At every renewal, install the whole bundle, not just the new site certificate. Intermediates change from time to time, so do not reuse an old intermediate file.
- If renewal is automatic, make sure the server config points at the full chain file and that the server reloads after each renewal.
- Test again after any server move, hosting change, new control panel or CDN change, since each can reset the certificate setup.
- Put the renewal date in a calendar and re-run the free checks a day after it.
- If visitors still see warnings after the chain is fixed, the cause may be something else, such as an insecure page warning.
Step by step for your platform
- Incomplete SSL certificate chain on Nginx
- Incomplete SSL certificate chain on Apache
- Incomplete SSL certificate chain on IIS
- Incomplete SSL certificate chain on cPanel
- Incomplete SSL certificate chain on AWS
- Incomplete SSL certificate chain on Plesk
- Incomplete SSL certificate chain on Cloudflare
Questions
What is an intermediate certificate?
It is a certificate that sits between your site certificate and the trusted root certificate. Your server has to send it so browsers and apps can confirm your certificate is genuine.
Why does my site work in Chrome but fail in other places?
Desktop Chrome and Edge can often fetch a missing intermediate on their own. Other browsers, phones, scripts and apps usually cannot, so they report an error.
Do I need to install the root certificate too?
No. Root certificates are already built into browsers and operating systems. Send your site certificate and the intermediate(s) only.
Does an incomplete chain mean my certificate is invalid?
No. The certificate itself is usually fine. The server is just not sending everything needed to verify it, so reinstalling with the full chain solves it.
Is it safe to disable certificate verification as a workaround?
No. It removes the protection HTTPS gives you and can expose data to interception. Fix the chain on the server instead.
Can I fix this myself or do I need a developer?
If you have access to your hosting panel, you can often paste the intermediate into the right field. On managed hosting, or if you run your own server, ask your host or developer to install the full chain.