A common architecture question on day one of a new environment: “Do we want a wildcard cert or a multi-name SAN cert?” The marketing pages on most CAs muddle the two. The right answer depends on how the subject names will change over time, who controls DNS, and what the blast radius of a compromised private key looks like.
What’s happening
A SAN (Subject Alternative Name) certificate explicitly lists every hostname it covers: www.example.com, api.example.com, app.example.com. Adding a fourth name requires reissuing the cert. A wildcard cert covers every direct subdomain of a base — *.example.com covers api.example.com but not example.com itself, and not v2.api.example.com. Wildcards trade convenience for a wider compromise blast radius: one private key that, if exfiltrated, signs traffic for every subdomain.
Let’s Encrypt issues both, but wildcards require the DNS-01 challenge. SAN certs can use HTTP-01 per name, which is operationally simpler when each name lives on a separate origin.
How to verify
Inspect what an existing cert actually covers:
openssl s_client -connect example.com:443 -servername example.com </dev/null 2>/dev/null \
| openssl x509 -noout -text | grep -A1 'Subject Alternative Name'
A wildcard cert shows DNS:*.example.com, DNS:example.com. A SAN cert lists every name explicitly. Count them — Let’s Encrypt caps at 100 SANs per cert; most commercial CAs cap lower.
If you’re choosing between the two for a new deployment, check what DNS automation you actually have:
dig +short NS example.com
If the nameservers are managed (Cloudflare, Route53, a registrar API), DNS-01 is easy and wildcard becomes practical. If DNS is at a registrar with no API, every wildcard renewal becomes a ticket, and SAN with HTTP-01 is usually less painful.
The fix
Use a SAN cert when:
- The subdomain list is short and stable (under ~10 names).
- Different subdomains live on different origins or different teams.
- You want per-name revocation without affecting the others.
Use a wildcard cert when:
- New subdomains are created frequently (multi-tenant, branch previews, customer subdomains).
- DNS-01 automation is in place and the private key lives on a single, well-controlled origin.
- You explicitly accept that a key compromise affects every subdomain.
For multi-tenant SaaS with customer-controlled subdomains under your apex, a wildcard plus per-customer SAN certs (issued via ACME on demand) is the durable pattern.
Stack Harbor designs the certificate strategy as part of Deployment Management. If your cert inventory has drifted, talk to us.