Certificate Hostname & Chain
Certificates must match your domain name and include all intermediate certificates for validation.
Results in 1–3 minutes · Free · No signup required
Want the result for your own site? Free SSL Checker — paste your domain, get the report.
Why It Matters
Hostname mismatches cause security warnings. Missing intermediate certificates cause validation failures on some devices, breaking your site for those users.
How We Check
We verify the certificate hostname matches your domain and that the complete certificate chain is served.
Good vs Bad Values
| Value | Verdict | Why |
|---|---|---|
SAN: DNS:example.com, DNS:www.example.com; chain served: leaf + intermediate | Good | Both names are covered and the server sends everything the client needs to build a path to a trusted root. |
SAN: DNS:*.example.com, DNS:example.com | Good | A wildcard covers one label (www, api) but not the bare domain or deeper names, so the apex is listed separately. |
Certificate valid for example.com only; visitors use www.example.com | Bad | Hostname mismatch. The browser shows a full-page warning for the name that is not in the SAN list. |
Wildcard *.example.com used for a.b.example.com | Bad | A wildcard matches exactly one label. A two-level subdomain needs its own certificate or its own wildcard. |
Server sends only the leaf certificate, intermediate missing | Bad | Some browsers fetch the missing intermediate themselves and hide the problem, but curl, Node.js, Java and many mobile apps fail validation. |
Chain contains a self-signed certificate that is not a trusted root | Bad | A development or internal CA certificate left on a public site. Public clients will not trust it. |
Certificate has expired | Bad | Reported here as a validation failure too. See the Certificate Expiry check for the date itself. |
Default certificate for localhost or the server's IP address | Bad | The default certificate is being served because the requested name did not match any virtual host (SNI mismatch). |
How to Fix
Ensure your certificate covers your exact domain (and www if needed). Configure your server to send intermediate certificates. Use SSL Labs to verify.
Nginx — point at the full chain and the key; no separate intermediate file is needed:
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
Apache 2.4.8 or later also reads the intermediates from the same file:
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
Request the right names. List every hostname you serve, including the bare domain, in one request:
certbot certonly --nginx -d example.com -d www.example.com
Inspect what the server really sends — count the certificates and read their subjects and the verification result:
openssl s_client -connect example.com:443 -servername example.com -showcerts </dev/null 2>/dev/null | grep -E 's:|i:|Verify return code'
# expect two entries (leaf and intermediate) and: Verify return code: 0 (ok)
Use -servername so the test sends SNI like a browser does. A different certificate coming back without it points to a virtual-host mismatch.
Common Mistakes
- Using `cert.pem` instead of `fullchain.pem`. Certbot writes both; the first holds only your certificate, the second adds the intermediate. Nginx needs the full chain in `ssl_certificate`.
- Concatenating files in the wrong order. The leaf comes first, then each intermediate, ending just before the root. Including the root is harmless but unnecessary.
- Testing in one browser and calling it done. Desktop browsers can fetch a missing intermediate through the AIA extension and cache it, so the page looks fine while API clients fail.
- Expecting the common name to matter. Modern clients check Subject Alternative Names and ignore the CN, so a certificate without SANs is rejected.
- Renewing the certificate but not reloading the server. The process keeps serving the old files from memory until Nginx, Apache or HAProxy reloads.
- Serving several hostnames from one IP without matching virtual hosts, so the first certificate is returned for every name. With certificate lifetimes getting shorter every few years, build renewal and reload into automation instead of doing it by hand.
Frequently Asked Questions
What is Certificate Hostname & Chain?
Certificates must match your domain name and include all intermediate certificates for validation.
Why does Certificate Hostname & Chain matter for website security?
Hostname mismatches cause security warnings. Missing intermediate certificates cause validation failures on some devices, breaking your site for those users.
How do I fix Certificate Hostname & Chain issues?
Ensure your certificate covers your exact domain (and www if needed). Configure your server to send intermediate certificates. Use SSL Labs to verify.
Related Security Checks
Related Tool
SSL Checker
Run all 10 related checks with our free ssl checker
Check Your Website Now
Run a free security scan to check for Certificate Hostname & Chain issues and 61 other security checks.
Scan Your Website Free