What Is a SAN SSL Certificate?
SAN means Subject Alternative Name. It is a field in an X.509 certificate that lists the hostnames, and sometimes IP addresses, that the certificate is valid for. A "SAN certificate" is any certificate with several names in that field.
SAN SSL certificate: why the field matters now
Older certificates identified the site by the Common Name (CN) in the subject. Modern browsers and TLS libraries ignore the CN and check only the SAN list. If your hostname is missing from the SAN field, the connection fails with a name mismatch error, even if the CN is correct.
Every certificate from a public CA today carries a SAN list, including single-name ones. Your name appears there once.
What goes in a SAN
| Entry type | Example | Notes |
|---|---|---|
| DNS name | DNS:example.com | The usual entry |
| Wildcard DNS name | DNS:*.example.com | One level only |
| IP address | IP:203.0.113.10 | Public CAs rarely issue these; check your CA |
| Email address | email:me@example.com | Used for S/MIME, not for web servers |
Read the SAN of a certificate
openssl x509 -in cert.pem -noout -ext subjectAltName
You can also read it from a live server:
echo | openssl s_client -connect example.com:443 -servername \
example.com | openssl x509 \
-noout -ext subjectAltName
The -ext option needs a recent OpenSSL version. On older versions, use -text and look for the SAN section.
Request a certificate with SAN names
When you create a CSR, include the names in a config file. Without it, many tools include only the Common Name.
[req]
distinguished_name = dn
req_extensions = san
prompt = no
[dn]
CN = example.com
[san]
subjectAltName = DNS:example.com, DNS:www.example.com
openssl req -new -newkey rsa:2048 -nodes \
-keyout example.key -out example.csr -config san.cnf
ACME clients such as Certbot build the SAN list from the -d flags, so you do not need a config file there.
SAN SSL certificate: common errors
- NET::ERR_CERT_COMMON_NAME_INVALID: the hostname is not in the SAN list. Reissue with the right names.
- Missing
www: add it as a second name. - Wildcard confusion:
*.example.comdoes not cover the apex or deeper levels. - Mismatched staging names: a staging host needs its own entry.
SAN versus wildcard versus multi-domain
All three use the SAN field. A wildcard is a SAN entry with an asterisk. A multi-domain certificate is simply one with several entries. For a plain-language comparison, read our guides on wildcard and multi-domain certificates, and check the free CA comparison for what each issuer supports.
Practical advice
- List only names you actually serve. Public certificates are logged in transparency logs, so names are visible.
- Add names at issuance time. Adding later means reissuing.
- Confirm that the key matches using the key pair matcher guide.
- After installing, run a full chain check, as explained in fixing SSL issues behind reverse proxies.
SAN in your own tooling
Clients that connect to your API need the same name match as browsers. If you call a service by IP address or by an internal alias, the certificate must list that exact name. A frequent surprise is calling https://10.0.0.5 when the certificate only lists the DNS name. Either use the name, or issue a certificate that includes the IP for private use.
Testing a name match
curl -v https://example.com/ 2>&1 | grep -i alt
The verbose output includes a line that tells you whether curl matched the host against the SAN entries.
Limits
Each CA sets a cap on how many names a certificate may hold and how often you can issue. Those values change, so read the CA's current documentation before you plan a very large certificate. Smaller certificates are also easier to renew and to troubleshoot.
Privacy note
Public certificates are recorded in certificate transparency logs. Anyone can search them. If a hostname is sensitive, think twice before putting it in a public SAN list. Use a private CA for internal names.
Summary
Think of SAN as the real list of names your certificate speaks for. When something fails with a name error, read that list first, compare it with the exact hostname in the URL, and fix the mismatch by reissuing. Most name problems are found in under a minute with the commands above.
Related reading: the multi-domain certificate, the wildcard certificate, the certificate chain and the certificate fingerprint.
Frequently Asked Questions
Is every certificate a SAN certificate now?
In practice yes. Browsers ignore the Common Name, so any certificate that works carries its names in the SAN field, even when it lists only one.
How many names can one certificate hold?
The CA sets the limit, often 100 names per certificate. Every name must pass validation, so a long list takes longer to issue.
Does the SAN list show in the browser?
Yes. Open the certificate details and read the Subject Alternative Name field. That list is exactly what the browser checks.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.