When a certificate was renewed by hand once a year, it was tempting to have as few as possible: one wildcard for the whole domain, installed everywhere. With lifetimes of 100, then 47 days, the math changes. Three options, and how to choose.
The three types
| Covers | Example | |
|---|---|---|
| Single | One name | www.example.com |
| Multi-domain (SAN) | A list of names set at issuance | example.com, www.example.com, api.example.com |
| Wildcard | Every subdomain at one level | *.example.com |
A useful reminder: a wildcard covers one level only. *.example.com protects api.example.com, but neither example.com itself nor v2.api.example.com.
www.example.com- example.com
- www.example.com
- api.example.com
- v2.api.example.com
example.com, www, api- example.com
- www.example.com
- api.example.com
- v2.api.example.com
*.example.com- example.com
- www.example.com
- api.example.com
- v2.api.example.com
Wildcard: convenient, but concentrated
Benefits. One certificate for an unlimited number of subdomains, including those created later. Subdomain names do not appear in Certificate Transparency logs.
Risks.
- The private key is copied everywhere. Every server presenting the wildcard holds the same key. Compromising a single machine, even a minor one, allows impersonating every subdomain.
- One expiry for everything. If renewal fails or a server is missed during rollout, all services go down at the same instant.
- Deployment is the real problem. Renewing the certificate is easy; distributing it to twenty servers, three load balancers and a CDN, eight times a year, is not.
- Validation goes through DNS. With ACME, a wildcard requires the DNS-01 challenge.
Multi-domain: a compromise
A SAN certificate groups several specific names. It fits a service answering under several names (example.com and www.example.com, or several brands on one platform).
Its limits show as the list grows:
- every name must be validated at each issuance: a single failing domain blocks the whole certificate;
- adding or removing a name means reissuing and redeploying;
- the certificate reveals the list of all the names it contains, and so the links between your services or customers.
Single certificate: the target with automation
One certificate per service, with its own key, issued and renewed automatically where it is used. This is the model favoured by ACME and modern platforms (Caddy, cert-manager, ingress controllers).
- Minimal blast radius: a compromised key or failed renewal affects one service only.
- No distribution: the certificate is obtained by the machine that uses it.
- Staggered expiries: renewals do not all fall on the same day.
Its cost is the count: dozens or hundreds of certificates to track. That is manageable provided inventory and monitoring are automatic. Also watch the authorities’ issuance rate limits when the number of subdomains is high.
How to choose
Prefer single certificates when the service can renew by itself with ACME. That is the general case for web applications and APIs.
Keep a wildcard when:
- subdomains are created dynamically (one per customer, environment or branch);
- the certificate is terminated at a single point, a load balancer or CDN, rather than copied to every server;
- you do not want to publish subdomain names.
Use a SAN for a small, stable group of names served by the same infrastructure.
Avoid the single wildcard installed by hand on heterogeneous machines: that is the setup that will cope worst with 47 days.
Before March 2027
Find the certificates in your inventory that are installed in more than one place. For each, the question is simple: are renewal and deployment automated end to end? If not, it is a priority candidate for splitting or automation, before the 100-day step.