A certificate can be valid, unexpired and correctly installed, and visitors still get a name mismatch warning, because the address they typed is not one of the names the certificate covers. Coverage is not a feeling, and it is not the domain written in the subject line. It is a specific list inside the certificate, and you can read it in about a minute.
This guide shows how to check exactly which domains and IP addresses a certificate covers, using the free SSL Certificate Decoder on Ovatly. It explains where the list lives, why the older field everyone looks at first no longer decides anything, and the apex and www trap that catches sites whose certificate looks complete.
Contents
- Quick answer
- Where coverage actually lives: the SAN list
- Why the CN field misleads
- The apex and www trap
- How to check coverage, step by step
- Worked example: three names, checked one by one
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Decode the certificate and read its subject alternative names, the SAN list. Every DNS name and IP address in that list is covered; every name missing from it is not, no matter what the subject or CN field says. Modern browsers check the address bar against the SAN list only. Open the SSL Certificate Decoder, paste the certificate in PEM format, and compare your hostnames against the SAN entries one by one. In the worked example below, one certificate covers example.com and www.example.com plus one IP address, while a third hostname the business also uses is simply absent, which is all a name mismatch warning means.
Where coverage actually lives: the SAN list
A certificate carries a subject alternative names extension: a list of identifiers the certificate is valid for. Entries are typed, most often DNS names such as example.com, sometimes IP addresses. When a browser connects, it takes the hostname from the address bar and looks for a match in that list. Found, the connection proceeds. Missing, the browser shows a name mismatch error even though the certificate is genuine, current and properly installed.
This is why one certificate can cover several unrelated domains: each one just needs its own entry in the list. It is also why a certificate can fail a domain that looks obviously related to the ones it does cover. The list is literal. Nothing is implied, inherited or assumed, and a name that is nearly right is treated exactly like a name that is entirely wrong.
Why the CN field misleads
Older certificates put the site name in the common name, the CN, inside the subject, and for years that was the field everyone checked. It is still printed there, and it still looks authoritative. But modern browsers ignore the CN for coverage decisions and consult the SAN list only. A certificate whose CN names your domain but whose SAN list omits it will fail in a current browser. The reverse also holds: a name present in the SANs is covered even if it never appears in the subject at all. When the two disagree, believe the SANs.
This is also why a certificate with no SANs at all is a dead end on today's web. There is nothing for the browser to match against, so every name fails, including the one in the CN. If your readout shows a subject and no SAN section worth the name, the certificate needs replacing, not reconfiguring.
The apex and www trap
example.com and www.example.com are two different hostnames. They usually show the same website, they feel like one address, and a certificate must list each of them separately to cover both. Certificates are often ordered for the apex name alone, and the www version, the one many visitors type or follow from old links, is left off the list. The site then works at one address and warns at the other, which looks intermittent and confusing until somebody reads the SAN list.
The same literal logic applies to every subdomain. Mail, shop, blog and api are each their own hostname: each is its own entry in the list, or it is not covered. Sites tend to discover this at the worst moment, right after moving a shop or a helpdesk onto a subdomain of its own.
How to check coverage, step by step
- Get the certificate in PEM format from your host's panel or the .pem or .crt file, and paste it into the SSL Certificate Decoder. A bare base64 body also works. Paste the certificate only, never a private key.
- Find the subject alternative names in the readout and write the DNS entries down as a checklist.
- List every hostname your site actually answers to: the apex, the www version, and each subdomain in use.
- Compare the two lists name by name. Anything in your list but not in the SANs is uncovered.
- Compare the SHA-256 fingerprint with the one your browser shows for the live site, confirming you decoded the certificate that is really installed, not a stale file left over from a renewal.
Worked example: three names, checked one by one
A small business decodes its certificate and the SAN list reads: DNS example.com, DNS www.example.com and IP 93.184.216.34. The signature algorithm is sha256WithRSAEncryption and the key is RSA at 2048 bits, all healthy. Now check the names the business actually serves, one by one. example.com is in the list: covered. www.example.com is in the list: covered. The shop, which the owner moved to shop.example.com last spring, is not in the list: not covered, and that absence alone explains the warning its customers have been reporting.
The IP entry means the server is also covered when reached directly as 93.184.216.34, which matters for the owner's own testing and for very little else. Nothing on the server is misconfigured, and no setting will stretch the certificate over the missing name. The certificate has to be reissued with shop.example.com added to the SAN list, and the reissued file installed in place of the old one.
Limitations and honest tradeoffs
The decoder displays the first certificate in whatever you paste, which for a chain file is the leaf certificate, the one that carries your site's names, so the SAN check works as described. Decoding is display only: it does not verify the chain of trust, check the signature or consult revocation, so a certificate can cover every name you serve and still fail for a trust or expiry reason this guide does not diagnose. The parser is deliberately minimal and reads the standard fields and the SAN extension; unusual entry types are not interpreted. If an entry is not plainly one of your hostnames, treat the name as not covered until you have confirmed otherwise.
Common mistakes
- Checking the CN and stopping. The CN is a label from an older era. Modern browsers match against the SAN list only.
- Assuming the apex covers www. They are separate hostnames and need separate entries in the list.
- Forgetting subdomains after a move. A shop or blog moved onto its own subdomain needs that name added when the certificate is next issued.
- Decoding the wrong file. A renewal folder can hold last year's certificate. Match the SHA-256 fingerprint against the live site before trusting the readout.
- Reading coverage as trust. A complete SAN list says nothing about expiry, revocation or chain problems, which fail certificates for other reasons.
FAQs
Where do I find the domains a certificate covers? In the subject alternative names (SANs) list. Decode the certificate and read the SAN entries: every DNS name and IP address listed there is covered, and any name missing from the list is not.
My certificate has a CN but no SANs. Is the domain covered? On modern browsers, effectively no. Browsers check the site name against the SAN list only and ignore the old CN field, so a certificate without SANs fails on today's web even if the CN looks right.
Does a certificate for example.com also cover www.example.com? Only if www.example.com appears in the SAN list as its own entry. The apex name and the www name are separate hostnames, and each one must be listed.
Can one certificate cover several different domains? Yes, if each domain is listed in the SANs. A single certificate can carry many DNS names, which is why reading the full list matters more than reading the subject line.
Is it safe to paste my certificate into the decoder? Yes. Certificates are public documents that your server sends to every visitor, and the decoder runs entirely in your browser. Never paste a private key: the tool needs only the certificate and will not read a key block.
Conclusion
Coverage is a list, not an impression: decode the certificate, read the SAN entries, and check every hostname you serve against them one by one, apex and www included. The SSL Certificate Decoder puts that list on screen in seconds, in your browser, and if the same readout leaves you wondering who signed the certificate at all, our guide to self-signed vs CA-signed certificates explains the two fields that answer it. For more guides in this series, see our Website and Webmaster Tools guides.
References
- MDN Web Docs, on transport layer security and how browsers validate certificates: https://developer.mozilla.org/en-US/docs/Web/Security/Transport_Layer_Security
- web.dev (Google), on why HTTPS matters and what browsers expect from a certificate: https://web.dev/articles/why-https-matters