Multi Domain Wildcard SSL Certificate: Issue, Install, Verify
A multi domain wildcard SSL certificate is one X.509 certificate whose SAN list contains wildcard entries plus the apex or other base domains (for example DNS:example.com, DNS:*.example.com, DNS:*.example.net) — you must list the apex separately because *.example.com never matches example.com per RFC 6125 §6.4.3. Let's Encrypt issues multi domain wildcard certificates only through the DNS-01 challenge: certbot certonly --dns-cloudflare --cert-name example-com -d example.com -d '*.example.com' -d example.net -d '*.example.net' --key-type ecdsa, capped at 100 names per certificate and 50 certificates per registered domain per 7 days. Commercial DV wildcard multi-domain certificates run roughly $40–$180/year for 3–5 names, OV $150–$500/year with 1–3 business day validation, and EV wildcards do not exist because the CA/B Forum EV Guidelines prohibit wildcard characters in EV certificates. Verify coverage with openssl x509 -in fullchain.pem -noout -ext subjectAltName and openssl verify -verify_hostname shop.example.com -CAfile chain.pem cert.pem (OpenSSL 1.1.1+) before you reload nginx or Apache. The two most common failures are a missing apex SAN (ERR_CERT_COMMON_NAME_INVALID on example.com) and multi-level hostnames such as eu.shop.example.com, which a *.example.com wildcard does not match.
What Is a Multi Domain Wildcard SSL Certificate and Why Does One Cert Rarely Cover Everything?
A multi domain wildcard SSL certificate is a single certificate whose Subject Alternative Name (SAN) extension lists both wildcard and literal names — a typical SAN set looks like DNS:example.com, DNS:*.example.com, DNS:example.net, DNS:*.example.net, DNS:*.shop.example.org. You get one key pair, one expiry date, and one TLS server block to maintain (one ssl_certificate line in nginx, one SSLCertificateFile in Apache) instead of N single-domain certificates. That consolidation is the entire selling point — and the source of nearly every support ticket about it.
Why does it trip people up? Because a wildcard matches exactly one label to the left of the dot. Per RFC 6125 §6.4.3 (obsoleted in 2024 by RFC 9525, which keeps the same single-label rule), *.example.com matches shop.example.com and nothing deeper. Browsers do literal SAN matching — no regex, no suffix logic:
| SAN entry | example.com | shop.example.com | eu.shop.example.com |
|---|---|---|---|
example.com |
match | no | no |
*.example.com |
no | match | no |
*.shop.example.com |
no | no | match |
So a multi domain wildcard SSL certificate must always carry the apex as its own SAN entry, and every extra label level needs its own wildcard such as *.shop.example.com. The SAN extension is also the only field that counts: Chrome 58 (April 2017) stopped reading the legacy Common Name, Firefox and Safari followed, and the CA/Browser Forum Baseline Requirements mandate a SAN for publicly trusted certificates — a CSR built with only CN=example.com fails validation however correct the CN looks. CAs also may not issue wildcards for registry-controlled labels or public suffixes (*.com is rejected), and Let’s Encrypt only issues wildcards via the DNS-01 challenge, so your ACME client needs DNS API access.
Capacity is the other planning constraint: Let’s Encrypt caps a certificate at 100 names (and 50 certificates per registered domain per week), while commercial multi-domain wildcard SKUs from DigiCert, Sectigo and GlobalSign typically allow 100–250 SAN slots, with extra SANs billed around $10–$40/year each. The real trade-off is blast radius — one private key now protects every name, so a key copied into a container image or one missed expiry breaks all domains at once. Mitigate with 30-day expiry alerting and reissue on a fresh key:
# Reissue all names on a new key pair. Certbot treats the -d list as the full
# name set when you target an existing --cert-name, so repeat every SAN.
sudo certbot certonly --cert-name example-com
--force-renewal --new-key
-d example.com -d '*.example.com'
-d example.net -d '*.example.net'
-d '*.shop.example.org'
# --new-key: available since Certbot 0.30; without it Certbot reuses the old private key
Then verify what is actually served rather than what you think you uploaded (OpenSSL 1.1.1+ for -ext):
openssl s_client -connect shop.example.com:443 -servername shop.example.com /dev/null
| openssl x509 -noout -ext subjectAltName
# Let OpenSSL perform the same match a browser will
openssl s_client -connect shop.example.com:443 -servername shop.example.com /dev/null
| openssl x509 -noout -checkhost eu.shop.example.com
# "Hostname eu.shop.example.com does NOT match certificate" is the answer you don't want
How Do You Get a Multi Domain Wildcard SSL Certificate? Step-by-Step with certbot and DNS-01
Short answer: you can’t get a wildcard from Let’s Encrypt over HTTP-01 — per the Let’s Encrypt challenge-types docs, wildcard issuance is DNS-01 only, because a TXT record at _acme-challenge.example.com is the only proof that covers every possible subdomain. So the real question is: how do you inventory, issue, and automate it cleanly?
- Inventory apex + wildcard pairs first. Write down each pair you need —
example.com+*.example.com,example.net+*.example.net— and confirm your DNS host has an API (Cloudflare, Route 53, Azure DNS, or RFC 2136 dynamic updates). A*.example.comwildcard does not coverexample.comitself (RFC 6125 §6.4.3), so both SANs are mandatory. Note the limit: Let’s Encrypt caps you at 100 names per certificate and 50 certificates per registered domain per week. - Install certbot plus the matching DNS plugin. Ubuntu 22.04 ships certbot 1.21.0 in the archive; 24.04 ships 2.9.0; upstream is 3.x (3.2.0 at time of writing). Check before requesting a multi domain wildcard SSL certificate:
# Ubuntu 22.04 / 24.04 — archive package + Cloudflare plugin
sudo apt update && sudo apt install -y certbot python3-certbot-dns-cloudflare
# Or pin upstream in a venv (needed for 3.x features like --preferred-profile)
python3 -m venv /opt/certbot && /opt/certbot/bin/pip install
certbot==3.2.0 certbot-dns-cloudflare==3.2.0
certbot --version # expect 1.21.0, 2.9.0, or 3.2.0
- Store API credentials with 0600 perms. The Cloudflare token needs Zone → DNS → Edit plus Zone → Zone → Read, scoped to only the zones you’re issuing for:
sudo mkdir -p /root/.secrets && sudo chmod 700 /root/.secrets
sudo tee /root/.secrets/cloudflare.ini >/dev/null <<'EOF'
dns_cloudflare_api_token = REPLACE_WITH_SCOPED_TOKEN
EOF
sudo chmod 600 /root/.secrets/cloudflare.ini
- Issue with explicit SANs and a stable cert name.
--cert-namekeeps renewals idempotent when the SAN list changes later:
sudo certbot certonly --dns-cloudflare
--dns-cloudflare-credentials /root/.secrets/cloudflare.ini
--dns-cloudflare-propagation-seconds 30
--cert-name example-com
--key-type ecdsa --elliptic-curve secp256r1
-d example.com -d '*.example.com'
-d example.net -d '*.example.net'
--deploy-hook 'systemctl reload nginx'
Defaults worth knowing: --dns-cloudflare-propagation-seconds is 10; raise it to 30–120 on slow or anycast zones or you’ll see intermittent NXDOMAIN looking up TXT for _acme-challenge.example.com and Detail: Incorrect TXT record found. Since certbot 2.0 the default key type is ECDSA/secp256r1 (older 1.x defaults to RSA 2048, --rsa-key-size 2048). Always smoke-test first with sudo certbot certonly ... --dry-run, which hits the staging CA and doesn’t burn production rate limits.
- Automate renewal and reload.
certbot.timer(systemd) fires twice daily with a randomized delay, matching Let’s Encrypt’s “renew when 30 days remain, check twice a day” guidance. Renewal reuses the plugin flags saved in/etc/letsencrypt/renewal/example-com.conf; verify withsudo certbot renew --dry-runandsystemctl list-timers certbot.timer. - Commercial route for OV. If you need organization validation, build a CSR with every SAN and submit it to the CA; DNS CNAME or HTTP file validation follows. DV multi-domain wildcard issuance typically completes in 5–15 minutes post-validation; OV takes 1–3 business days because the CA verifies the legal entity per the CA/Browser Forum Baseline Requirements.
| DNS plugin | Package | Key flags | Typical propagation default |
|---|---|---|---|
| Cloudflare | certbot-dns-cloudflare |
--dns-cloudflare-credentials, --dns-cloudflare-propagation-seconds |
10 s |
| Route 53 | certbot-dns-route53 |
uses IAM role/env creds, no ini file | polls AWS until INSYNC |
| Azure DNS | certbot-dns-azure |
--dns-azure-config |
10 s |
| RFC 2136 | certbot-dns-rfc2136 |
--dns-rfc2136-credentials, --dns-rfc2136-propagation-seconds |
60 s |
Sanity check the chain after issuance:
openssl x509 -in /etc/letsencrypt/live/example-com/cert.pem -noout -text | grep -A1 "Subject Alternative Name"should list all four names, andopenssl s_client -connect example.com:443 -servername example.comshould returnVerify return code: 0 (ok).
Multi Domain Wildcard SSL Certificate Commands and Server Config Examples (OpenSSL, Nginx, Apache)
How do I build a CSR that carries both apex and wildcard names? Put every name in the SAN extension—modern clients ignore CN. Save this as wildcard.cnf:
[req]
distinguished_name = dn
req_extensions = req_ext
prompt = no
[dn]
CN = example.com
[req_ext]
subjectAltName = @alt_names
[alt_names]
DNS.1 = example.com
DNS.2 = *.example.com
DNS.3 = example.net
DNS.4 = *.example.net
Generate the key and request, then confirm the SANs (OpenSSL 1.1.1/3.x; -nodes is the legacy spelling of -noenc in 3.0):
openssl req -new -newkey rsa:2048 -nodes
-keyout example.key -out example.csr -config wildcard.cnf
# RSA 2048 is OpenSSL's default; use -newkey ec -pkeyopt ec_paramgen_curve:P-256 for ECDSA
openssl req -in example.csr -noout -text | grep -A3 'Subject Alternative Name'
# X509v3 Subject Alternative Name:
# DNS:example.com, DNS:*.example.com, DNS:example.net, DNS:*.example.net
Can one command issue and renew the same multi domain wildcard SSL certificate? Yes—acme.sh handles CSR, DNS-01 validation and cron. Since acme.sh v3.0.0 the default CA is ZeroSSL, so pin Let’s Encrypt, and quote wildcards to stop shell globbing:
acme.sh --issue --dns dns_cf
-d example.com -d '*.example.com'
-d example.net -d '*.example.net'
--keylength ec-256 --server letsencrypt
# DNS-01 is mandatory for wildcards per Let's Encrypt docs; CF_Token lives in ~/.acme.sh/account.conf
acme.sh --install-cert -d example.com --ecc
--key-file /etc/nginx/ssl/example.key
--fullchain-file /etc/nginx/ssl/fullchain.pem
--reloadcmd 'systemctl reload nginx'
Nginx config—always fullchain.pem, never cert.pem, or clients throw unable to get local issuer certificate:
server {
listen 443 ssl;
server_name example.com *.example.com example.net *.example.net;
ssl_certificate /etc/letsencrypt/live/example-com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example-com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
# Mozilla SSL Configuration Generator, intermediate profile v5.7
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
ssl_prefer_server_ciphers off;
}
Why list the apex separately? Per nginx server_names docs, *.example.com matches only the left-most label: it matches www.example.com, not example.com and not a.b.example.com. The shorthand .example.com matches both apex and one label, but explicit names are clearer—and a multi domain wildcard SSL certificate never removes the need to enumerate server_name correctly.
Apache 2.4 equivalent (TLS 1.3 needs 2.4.36+ built against OpenSSL 1.1.1):
<VirtualHost *:443>
ServerName example.com
ServerAlias *.example.com example.net *.example.net
SSLCertificateFile /etc/letsencrypt/live/example-com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example-com/privkey.pem
SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLHonorCipherOrder off
</VirtualHost>
# apachectl configtest && apachectl graceful
| Task | Nginx | Apache 2.4 |
|---|---|---|
| Chain file | ssl_certificate .../fullchain.pem |
SSLCertificateFile .../fullchain.pem |
| Private key | ssl_certificate_key .../privkey.pem |
SSLCertificateKeyFile .../privkey.pem |
| Extra names | server_name |
ServerAlias |
| Syntax check | nginx -t |
apachectl configtest |
Did certbot store every name? certbot certificates --cert-name example-com prints the SAN list and expiry; /etc/letsencrypt/renewal/example-com.conf holds the exact -d arguments replayed at renewal. Add a domain later with certbot certonly --dns-cloudflare --cert-name example-com --expand -d example.com -d '*.example.com' -d example.net -d '*.example.net', otherwise renewal silently drops the new name.
Multi Domain Wildcard SSL Certificate Comparison: Let's Encrypt vs DV vs OV vs EV
Which multi domain wildcard SSL certificate fits your budget in 2025? Prices below are typical street prices for 3–5 SAN entries; CA list prices run higher. Validity caps come from the CA/Browser Forum Baseline Requirements, not marketing.
| Option | Price/year | Max validity | Wildcard allowed | Typical SAN cap | Issuance time |
|---|---|---|---|---|---|
| Let’s Encrypt DV | $0 | 90 days | Yes, DNS-01 only | 100 names | ~1 min after DNS propagates |
| Commercial DV wildcard multi-domain | $40–$180 | 398 days | Yes | 100–250 | 5–15 minutes |
| Commercial OV wildcard multi-domain | $150–$500 | 398 days | Yes | 100–250 | 1–3 business days |
| Commercial EV multi-domain | $300–$900 | 398 days | No | 100+ | 3–10 business days |
How does Let’s Encrypt issue a multi domain wildcard SSL certificate? Wildcards require DNS-01 validation under RFC 8555 ACME, because HTTP-01 cannot prove control of every possible subdomain. One certificate holds up to 100 names; *.example.com covers one label only, so *.shop.example.com is a separate SAN. Test against staging before spending production quota:
# certbot 2.x/3.x: --dry-run selects the staging endpoint by default
certbot certonly --manual --preferred-challenges dns
-d example.com -d '*.example.com' -d '*.shop.example.com'
--cert-name example-multi-wildcard
--dry-run
# quote wildcards so the shell does not glob them
# staging certificates are untrusted: never deploy them
Per Let’s Encrypt’s rate-limits documentation, production allows 50 certificates per registered domain per 7 days, 300 new orders per 3 hours per account, and 5 duplicate certificates per week. Hitting the duplicate cap returns too many certificates (5) already issued for this exact set of domains in the last 168h0m0s—a large SAN set retried carelessly can burn a week of renewals.
What do commercial DV, OV, and EV actually add? Paid DV wildcard multi-domain certificates buy 398-day validity (the current CA/B Forum maximum), CA support, and relying-party warranties typically $10,000–$2,000,000 by tier—but validation is still DNS or file based, with no verified identity. OV adds a verified organization in the subject O= field, which some procurement and enterprise TLS policies demand; budget 1–3 business days and $20–$60 per extra SAN. EV is the exception: the CA/B Forum EV Guidelines prohibit wildcard characters, so an “EV multi domain wildcard SSL certificate” is not a product any publicly trusted CA can sell—choose EV multi-domain with explicit hostnames, or OV/DV wildcard.
Why is automated renewal now mandatory? CA/B Forum ballot SC-081 cuts maximum public TLS lifetime to 200 days in March 2026, 100 days in March 2027, and 47 days in March 2029. Verify what you deployed, not what you ordered:
# inspect the leaf certificate on disk
openssl x509 -in fullchain.pem -noout -subject -dates -ext subjectAltName
# inspect what the server actually serves (SNI-aware)
openssl s_client -connect example.com:443 -servername example.com
</dev/null 2>/dev/null | openssl x509 -noout -dates -ext subjectAltName
Common Errors When Deploying a Multi Domain Wildcard SSL Certificate (and How to Fix Them)
Most multi domain wildcard SSL certificate failures surface as one of six errors, and each has a deterministic fix. Triage by the exact string in the browser or logs before changing anything.
| Error / symptom | Root cause | Fix |
|---|---|---|
ERR_CERT_COMMON_NAME_INVALID on example.com |
SAN contains only *.example.com |
Reissue with both -d example.com and -d '*.example.com' |
Name mismatch on eu.shop.example.com |
Wildcard covers exactly one label | Add *.shop.example.com or flatten to shop-eu.example.com |
DNS problem: NXDOMAIN looking up TXT… |
Record missing, stale, or CNAME’d elsewhere | Verify TXT, raise propagation wait |
urn:ietf:params:acme:error:rateLimited |
Too many certs/orders in window | Staging dry-run, reuse lineage |
| Renewal silently drops names | renewal/*.conf holds the old -d list |
Pass full -d set with --expand |
SSL_CTX_use_PrivateKey: key values mismatch |
Cert and key from different pairs | Compare moduli/public keys, re-copy as a pair |
Why does the apex fail when the wildcard works? A wildcard matches one label only — *.example.com covers www.example.com but never example.com itself (RFC 6125 §6.4.3). Request both names in one lineage:
certbot certonly --webroot -w /var/www/html
-d example.com -d '*.example.com'
--cert-name example.com --expand # --expand reuses the existing lineage
openssl x509 -in /etc/letsencrypt/live/example.com/fullchain.pem
-noout -ext subjectAltName # must list DNS:example.com
Why does eu.shop.example.com still mismatch? One wildcard = one label, so *.example.com cannot span eu.shop. Add -d '*.shop.example.com' to the multi domain wildcard SSL certificate, or restructure to shop-eu.example.com.
Why does DNS-01 return NXDOMAIN? Check the record from a public resolver and look for a stray CNAME at _acme-challenge pointing into a zone you don’t control:
dig +short TXT _acme-challenge.example.com @1.1.1.1
dig +short CNAME _acme-challenge.example.com
# Cloudflare plugin default is 10s; slow providers need more:
certbot certonly --dns-cloudflare --dns-cloudflare-credentials ~/.secrets/cf.ini
--dns-cloudflare-propagation-seconds 90 -d example.com -d '*.example.com'
Hitting rate limits? Let’s Encrypt allows 50 certificates per registered domain per 7 days and 300 new orders per 3 hours; failed validations count too. Test with --dry-run (staging), keep one --cert-name, and never loop --force-renewal while debugging.
Renewal drops hostnames? Certbot reads /etc/letsencrypt/renewal/<name>.conf, not nginx. Compare requested vs issued SANs with certbot certificates, then re-run with the complete -d set and --expand.
Key mismatch after manual copying? For RSA, openssl x509 -noout -modulus -in fullchain.pem | openssl md5 must equal openssl rsa -noout -modulus -in privkey.pem | openssl md5; for ECDSA compare openssl pkey -pubout output. Then nginx -t before reload.
How Do You Verify a Multi Domain Wildcard SSL Certificate Covers Every Hostname?
Four checks, not one. A green padlock proves none of them: browsers silently repair a missing intermediate via AIA fetching, and since the CA/Browser Forum deprecated the CN for hostname matching in 2017 (RFC 6125 §6.4.4), only the SAN extension counts. Verify in this order.
1. Dump the SANs the server actually sends. This is the ground truth for what your multi domain wildcard SSL certificate covers on the wire:
openssl s_client -connect shop.example.com:443
-servername shop.example.com -showcerts </dev/null 2>/dev/null
| openssl x509 -noout -subject -dates -ext subjectAltName
# -servername is mandatory: without SNI you may inspect a different vhost's cert
# expect every apex and wildcard you bought, e.g.
# DNS:example.com, DNS:*.example.com, DNS:*.eu.example.com, DNS:shop.example.com
# compare 'notAfter' against the expiry you recorded at issuance
2. Match hostnames offline, before any DNS cutover. OpenSSL 1.1.1+ and 3.x implement RFC 6125 matching exactly as browsers do:
openssl verify -CAfile chain.pem -verify_hostname eu.shop.example.com cert.pem
# OK
# error 62 at 0 depth lookup: hostname mismatch <-- wildcard doesn't cover this label depth
A wildcard matches exactly one leftmost label. *.example.com covers shop.example.com but never eu.shop.example.com or a.b.example.com — which is why a multi domain wildcard SSL certificate usually needs *.eu.example.com as a separate SAN entry, and why this check catches the mistake before users do.
3. Exercise the live endpoint without touching DNS. curl with --resolve pins the connection to the new IP while keeping SNI and Host intact:
curl -vI https://shop.example.com --resolve shop.example.com:443:203.0.113.10
# confirm: "ALPN, server accepted to use h2", "SSL certificate verify ok."
# and two certificates listed (leaf + intermediate); one cert = incomplete chain
4. Scan from outside the network. testssl.sh 3.2 and Qualys SSL Labs both check chain order, TLS 1.2/1.3 support, HSTS and known CVEs — and both flag a missing intermediate that browsers quietly paper over:
./testssl.sh --severity HIGH --protocols --server-defaults shop.example.com
# look for "Chain of trust NOT ok (broken)" and any TLS 1.0/1.1 offers
| Check | Catches | Runs offline? | Failure signal |
|---|---|---|---|
openssl s_client |
Wrong SANs, wrong vhost via SNI, expiry | No | Missing DNS: entry in output |
openssl verify -verify_hostname |
Wildcard label-depth gaps | Yes | error 62 ... hostname mismatch |
curl --resolve |
ALPN/HTTP-2, chain completeness, SNI routing | No | Only 1 cert; no h2 |
| testssl.sh / SSL Labs | Chain order, protocol downgrade, HSTS, CVEs | No | Chain of trust NOT ok |
5. Automate expiry and renewal. -checkend gives you a scriptable exit code rather than a date you have to parse:
openssl x509 -checkend 2592000 -noout -in fullchain.pem || echo "expires within 30 days"
# exit 0 = valid beyond 2592000s (30 days); exit 1 = renew now
certbot renew --dry-run # exercises DNS-01 hooks without consuming the duplicate-cert rate limit
Schedule both weekly for every certificate you operate; Let’s Encrypt’s 90-day lifetime and 30-day renewal window make a silent expiry a scheduling bug, not bad luck.
6. Confirm public transparency. Search crt.sh for the base domain to list every SAN ever logged. An issuance you didn’t request means a compromised ACME account — rotate the key, don’t just reissue.
What Does a Multi Domain Wildcard SSL Certificate Cost and How Long Does Issuance Take?
Wondering what a multi domain wildcard SSL certificate costs and how long issuance takes? The range is $0 to about $900/year, and the clock is set by validation type: Let’s Encrypt DV wildcards issue in under 60 seconds once the TXT record is visible, while OV and EV add business-day organization checks. Per Let’s Encrypt docs, wildcard certificates require DNS-01; EV is the exception—the CA/B Forum EV Guidelines forbid wildcard characters in the subjectAltName. Commercial public TLS validity is capped at 200 days from March 15, 2026 under CA/B Forum SC-081 (previously 398 days); Let’s Encrypt stays at 90 days.
| Option | Typical price | Validity | Names / wildcard | Issuance time | Renewal |
|---|---|---|---|---|---|
| Let’s Encrypt DV | $0 | 90 days | Wildcard + SANs; DNS-01 required | <60 s after TXT is visible | Unattended via certbot.timer (twice daily; renews <30 days left) or acme.sh cron |
| Commercial DV (Sectigo/DigiCert/Comodo-class) | $40–$180/yr for 3–5 names | Up to 200 days | Wildcard + SANs; extra SAN $10–$40/yr, discounts >10 | 5–15 min after DNS/file validation | Reissue; API or HTTP-01 |
| OV | $150–$500/yr | Up to 200 days | Wildcard + SANs | 1–3 business days | Faster; org data reused |
| EV multi-domain | $300–$900/yr | Up to 200 days | No wildcard; SANs only | 3–10 business days | Org revalidation may apply |
For the $0 route, ACME (RFC 8555) with a DNS plugin is the reproducible path. This certbot 2.x+ example issues one multi domain wildcard SSL certificate for the apex, one wildcard, and an explicit SAN; note that *.example.com covers api.example.com but not a.b.example.com.
# certbot 2.x+; install python3-certbot-dns-cloudflare on Debian/Ubuntu
# credentials file contains: dns_cloudflare_api_token = <token>
certbot certonly --dns-cloudflare
--dns-cloudflare-credentials /root/.secrets/cloudflare.ini
-d example.com -d '*.example.com' -d api.example.com
--cert-name example-com --preferred-challenges dns
--non-interactive --agree-tos -m admin@example.com
# verify SANs, dates, issuer (OpenSSL 3.x)
openssl x509 -in /etc/letsencrypt/live/example-com/cert.pem
-noout -subject -issuer -dates -ext subjectAltName
# acme.sh 3.x equivalent; export CF_Token and CF_Account_ID first; install adds renewal cron
acme.sh --issue --dns dns_cf -d example.com -d '*.example.com' -d api.example.com --keylength ec-256
If the TXT record is missing or split-brain DNS hides it, ACME returns DNS problem: NXDOMAIN looking for _acme-challenge.example.com; that is DNS visibility, not CA queue time. OV issuance takes 1–3 business days because the CA verifies legal existence and phone per the Baseline Requirements; renewals reuse that organization data and are usually same-day. EV multi-domain runs 3–10 business days and has no wildcard variant.
What about hidden costs? They dominate the multi domain wildcard SSL certificate budget: a DNS API token scoped to TXT edits on _acme-challenge (or a delegated _acme-challenge zone) is required for unattended renewal; monitoring runs from $0 with an openssl s_client cron script to about $10/host/month with SaaS; and a key-rotation runbook must cover every hostname on the certificate. Budget engineering hours, not just license fees.
No. A wildcard SAN of *.example.com matches one label only, so example.com must be added as its own SAN entry. Per RFC 6125 §6.4.3 the wildcard is not a suffix match — issue with certbot -d example.com -d '*.example.com' and verify with openssl x509 -noout -ext subjectAltName.
Yes — that is exactly what a multi-domain (SAN/UCC) wildcard certificate does: DNS:example.com, DNS:*.example.com, DNS:example.net, DNS:*.example.net on one certificate. With Let's Encrypt you need DNS-01 validation for each zone and must stay within 100 names per certificate.
Usually yes for commercial CAs: one DV wildcard multi-domain certificate at $40–$180/year for 3–5 names is less than 5 single-domain certificates plus separate renewals. Against Let's Encrypt the licence cost is $0 either way, so the decision comes down to fewer expiries and one deployment versus a larger key-compromise blast radius.
Because *.example.com matches exactly one label, not two. You will see 'hostname mismatch' from openssl verify -verify_hostname or ERR_CERT_COMMON_NAME_INVALID in the browser. Add DNS:*.b.example.com to the SAN list or use a single-label hostname such as b-example.example.com.
No. Let's Encrypt documentation states wildcard issuance requires the DNS-01 challenge, because HTTP-01 proves control of one specific hostname only. You need a TXT record at _acme-challenge.example.com, which typically means DNS provider API credentials or a CNAME delegation to a zone you control.
No. The CA/B Forum EV Guidelines prohibit wildcard characters in EV certificates, so CAs sell either EV multi-domain with explicit hostnames or OV/DV wildcard multi-domain. If a reseller lists an EV wildcard, request the certificate profile before purchasing.
Let's Encrypt certificates last 90 days and should renew at roughly 30 days remaining; commercial certificates can reach 398 days today, dropping to 200 days in March 2026 under CA/B Forum ballot SC-081. Automate with certbot.timer or acme.sh cron and alert at 30 days remaining via openssl x509 -checkend 2592000.
本文由 sslgood.com 安全团队基于生产环境实战经验撰写,关键结论均经过技术复核。