A visitor types your domain, the certificate is in date, the chain is complete, and the browser still refuses with a name mismatch error. Nine times out of ten the problem is one short list inside the certificate: the subject alternative names, the exact set of names the certificate was issued for. If the name the visitor used is not on that list, nothing else about the certificate matters.

This guide explains how to read that list and its failure shapes. It uses the free SSL Certificate Decoder on Ovatly, which prints the SAN list exactly as issued: what you read is what the browser checks against.

Contents

  • Quick answer
  • What the SAN extension is
  • Why browsers check SANs and ignore the CN
  • The entry types you will see
  • How to read a certificate's SAN list, step by step
  • Worked example: three entries, two kinds of coverage
  • Failure shapes: when a name is not really covered
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion
  • References

Quick answer

Open the SSL Certificate Decoder, paste your certificate in PEM format, and read the subject alternative names section: the complete set of DNS names, IP addresses, emails and URIs the certificate covers. Modern browsers match the site's name against this list and nothing else; the old CN field in the subject is ignored. If a name your site answers to is missing, the certificate must be reissued with it added; the list cannot be edited after issuance.

What the SAN extension is

Early certificates carried one name, in the common name (CN) field of the subject. That design broke as soon as one server needed to answer for several names: the apex domain, the www version, a shop subdomain, or an IP address.

The subject alternative name extension is the fix. It is a list attached to the certificate; each entry is a name plus a type. When the decoder reads a certificate, it prints this list in full, entry by entry: it is the part that decides whether a given connection may proceed.

Why browsers check SANs and ignore the CN

The CN field was a single short text field doing a job it was never shaped for: one name only, and loosely defined matching rules.

SAN entries are structured instead: typed, unambiguous, and as long as they need to be. Today, when a browser connects to a site, it takes the hostname from the address bar and looks for it in the certificate's SAN list. A certificate can have a perfectly correct CN and still fail, if the SAN list does not include the name. The reverse also holds: a name on the list passes whatever the CN says.

The entry types you will see

Most lists are DNS names, but the extension allows several types, and the type is part of the match.

  • DNS names are the ordinary case: example.com, www.example.com, shop.example.com. A wildcard entry, written with a star as the first label, is a DNS entry with special matching rules, covered below.
  • IP addresses cover connections made to the bare address, but only as an IP type entry; the same digits written as a DNS entry do not count.
  • Email addresses and URIs appear too, in mail certificates and specialised internal ones respectively; both are rare on web servers.

Read the type alongside the value: half of all "but the name is right there" mysteries end here, with the name present in the wrong type.

How to read a certificate's SAN list, step by step

  1. Copy the certificate in PEM format, the block from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----, from your host's panel or the certificate file. If the file holds a chain, take the first block: the leaf, whose SANs matter.
  2. Open the SSL Certificate Decoder and paste the block. A bare base64 body without the header lines also works.
  3. Find the subject alternative names in the decoded details and read every entry with its type.
  4. Write down the names your site answers to: apex, www, any subdomains in use, any bare IP. Compare the two lists character by character.
  5. While you are on the page, check the validity dates and the status for today, and compare the SHA-256 fingerprint with the one your host shows, to confirm you decoded the certificate the server really presents.

Worked example: three entries, two kinds of coverage

Decode the self-signed test certificate from our examples: its SAN list reads DNS example.com, DNS www.example.com, IP 93.184.216.34. Three entries, each doing a distinct job.

The first entry covers the apex: a visitor typing example.com matches. The second covers the www host, a different name for matching; without this entry, www.example.com would fail even though the apex passes. The third entry is the IP address, correctly typed as an IP, so a connection made directly to 93.184.216.34 also matches. Its other fields (subject and issuer both naming Example Corp of San Francisco, a 2048-bit RSA key) say more about it, but for the name check the three SAN entries are the whole story.

Failure shapes: when a name is not really covered

The commonest shape is the half pair: the list holds www.example.com but not example.com, or the other way round. Both names serve the same site, so the gap hides until someone arrives through the uncovered one.

The wildcard shape is subtler. An entry for *.example.com covers one level only: shop.example.com and blog.example.com match, the apex example.com does not, and a deeper name such as eu.shop.example.com does not either. Teams discover this when a deeper subdomain launches behind a certificate that looked comprehensive.

The third shape is the type error: an IP address present as a DNS entry, or a name present only in the CN. In each case the certificate is genuine and in date, and the browser is right to refuse: read strictly, the list does not contain the name in a form that counts.

Limitations and honest tradeoffs

The decoder shows the SAN list exactly as issued, and that is all. It does not visit your site and does not check the certificate against a live connection. The comparison between the names you use and the names on the list is yours to make.

Decoding is display, not verification: the decoder does not check the signature, verify the chain of trust or consult revocation status, and its parser is deliberately minimal (standard X.509 v1 to v3 fields and the SAN extension; unusual extensions are not interpreted). The standing safety rule applies: certificates are public and safe to paste, private keys are not; never paste a key.

Common mistakes

  • Reading the CN and stopping there. The CN can name your site while the SAN list does not. Browsers check the list.
  • Assuming www and the apex are one name. They are two entries. A list needs both if both are served.
  • Trusting a wildcard further than it reaches. One level of subdomain, never the apex, never two levels deep.
  • Decoding an intermediate instead of the leaf. Only the leaf's SANs are checked against your site's name. In a pasted chain, the decoder shows the first certificate, so paste the leaf on its own to be sure.
  • Trying to patch the list. SANs are sealed by the issuer's signature at issuance. A missing name means a reissue, not an edit.

FAQs

What is a subject alternative name? It is one entry in a certificate's SAN extension: a DNS name, IP address, email address or URI that the certificate is valid for. The extension holds the list, and a certificate is only good for connections to names that appear on it.

Does the browser still check the CN field? No. Modern browsers ignore the common name for matching and check the SAN list only. A certificate whose CN names your site but whose SAN list does not will fail with a name mismatch error.

What does a wildcard SAN cover? An entry like *.example.com covers exactly one level of subdomain, such as shop.example.com or blog.example.com. It does not cover the apex example.com, and it does not cover deeper names like a.shop.example.com.

Can a certificate cover an IP address? Yes, if the address is listed as an IP type SAN entry. An address typed into the DNS list does not count. The decoder's example certificate carries IP 93.184.216.34 as an IP entry alongside its two DNS names.

My site's name is missing from the SAN list. Can I edit the certificate? No. A certificate's contents are fixed at issuance and sealed by the issuer's signature. The fix is reissue with the name included in the SAN list, then install the new certificate.

Conclusion

The SAN list is short, literal and decisive: the names on it are covered, every other name is not, and modern browsers read it exactly that way. Checking it takes a minute with the SSL Certificate Decoder, and it settles name mismatch errors faster than server tweaking. To see where this list sits in the bigger picture, read what is an SSL certificate chain and why does order matter. For more guides in this series, see our Website and Webmaster Tools guides, which pair each concept with the free tool that shows it.

References