SSL certificates

Wildcard vs SAN (multi-domain) SSL certificates explained

How wildcard and SAN multi-domain SSL certificates work, what each one covers, their limits and security trade-offs, and how to choose between them for subdomains and many sites.

IntermediateEveryone3 min read

One certificate can protect more than one hostname. A wildcard SSL certificate covers every subdomain at one level, while a SAN (multi-domain) certificate lists specific names, even on different domains. Choosing wildcard vs SAN depends on how many names you have and how they are spread across servers.

Before you start

  • List every hostname that needs HTTPS, including www, mail and panel subdomains.
  • Note which server each hostname lives on.
  • Read DV vs OV vs EV if you are unsure about validation levels.

How a wildcard SSL certificate works

A wildcard certificate is issued for *.example.com. The asterisk matches exactly one label, so it covers shop.example.com and blog.example.com, but not dev.shop.example.com. Most CAs add the bare domain example.com as an extra name.

  • Wildcards can be DV or OV, never EV.
  • Free wildcards (Let's Encrypt) require DNS validation with a TXT record at _acme-challenge.
  • New subdomains are covered immediately with no reissue.

How a SAN multi-domain certificate works

Every certificate has a Subject Alternative Name (SAN) extension listing the hostnames it is valid for. A multi-domain certificate simply lists many of them, for example example.com, www.example.com, example.net and client-site.org. Commercial CAs typically sell a set number of included names with paid extras, and Let's Encrypt allows up to 100 names per certificate.

cPanel AutoSSL already uses SAN certificates: one certificate per website covering the domain, www and service subdomains such as mail and webmail.

Wildcard vs SAN compared

WildcardSAN / multi-domain
CoversUnlimited subdomains at one levelA fixed list of names on any domains
Different domainsNoYes
Add a nameAutomaticReissue the certificate
EV availableNoYes
Name listSubdomains not listedAll names visible in the certificate

Security trade-offs

The main risk with wildcards is key sharing. If the same wildcard private key is installed on ten servers, a compromise of any one lets an attacker impersonate every subdomain. SAN certificates carry the same risk when one certificate serves unrelated sites, and they publish the full list of names, revealing relationships between sites. All public certificates also appear in Certificate Transparency logs.

Warning: Resellers should never put different clients' domains on one shared SAN certificate. Give each account its own certificate, which AutoSSL does automatically.

How to choose

  1. One site with www: a standard certificate already covers both. On MdmHost hosting AutoSSL handles this for free.
  2. Many dynamic subdomains (SaaS tenants, customer portals): use a wildcard.
  3. Several brands or domains on one server: use a SAN certificate, or separate free certificates per domain.
  4. Sub-subdomains: add each deeper wildcard (*.shop.example.com) as an extra SAN on the same certificate.

Troubleshooting

  • NET::ERR_CERT_COMMON_NAME_INVALID: the visited hostname is not in the SAN list or is two levels deep under a wildcard.
  • Wildcard renewal fails: DNS validation cannot complete because the DNS is hosted elsewhere. Automate the TXT record through your DNS provider's API.

Frequently asked questions

Does a wildcard cover the root domain?

Only if the root is listed as an additional SAN. Most CAs and ACME clients add it on request.

Can a certificate be both wildcard and multi-domain?

Yes. A certificate can list *.example.com and *.example.net as SANs together.

Is a wildcard needed for email subdomains?

No. AutoSSL in cPanel includes mail. and similar service names in each domain's certificate.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.