Skip to content

When to Use a SAN Certificate Instead of a Wildcard

Wildcards are popular, but a SAN certificate is often the better fit when names are few, known or spread across several domains. Here is how to decide.

10 min readUpdated Nov 20, 2026By XPASS Editorial Team

When to Use a SAN Certificate Instead of a Wildcard

Wildcard certificates have a way of becoming the default answer. They are easy to explain, easy to remember and they promise that you will never have to think about certificate names again. But a wildcard is a particular tool with particular trade-offs, and for a lot of sites a certificate that lists its names exactly is simpler, safer or both. That is the idea behind the Subject Alternative Name, or SAN, certificate.

This article explains what a SAN certificate is, where it clearly beats a wildcard, where it does not, and how to decide with a short list of questions. If you want to be sure you are not confusing certificate names with DNS patterns first, read Wildcard Certificate vs Wildcard DNS. If you manage many domains for an organisation, managing SSL across many company domains covers the operational side that follows from this choice.

What a SAN certificate is

Every modern certificate carries a list of the names it is valid for. That list lives in the Subject Alternative Name extension, defined in the X.509 profile in RFC 5280. A SAN certificate, in everyday language, is simply one that uses this list for several names at once.

For example, one certificate might list:

  • example.com
  • www.example.com
  • app.example.com
  • shop.example.net

The last entry shows an important feature: the names do not have to share a domain. One certificate can protect a company's main site, its application, and a related brand on a different domain.

Strictly speaking, a wildcard certificate also uses the SAN field, because the pattern is stored there. The practical difference is in how you use it: a SAN certificate normally lists exact names, while a wildcard lists a pattern. Many certificates are both at once, with exact names plus one or two wildcard entries. Product names vary between providers, with terms such as multi-domain or unified communications certificate, but the underlying mechanism is the same list.

What a wildcard still does best

To choose well it helps to be fair to the wildcard. A pattern like *.example.com is the right tool when:

  • You create subdomains often and automatically, for example one per customer or per test environment.
  • The set of names is large or unpredictable and you cannot list them in advance.
  • You want a new name to work the moment it exists, without any certificate request.
  • You are fine with the key and certificate being shared across all services under that domain.

We discuss this scenario in more detail in guides about wildcard certificates for multi-tenant services, and a SAN certificate does not do any of these things as well. If your reality matches this list, a wildcard probably deserves its place.

When SAN is the better choice

You have a small, known set of names

If your site is example.com, www, app and api, you do not need a pattern that would also cover anything-else.example.com. Listing four names is precise, easy to review and easy to explain to an auditor. The certificate says exactly what it is for.

Names sit on more than one domain

A wildcard covers one domain. If you operate example.com, example.net and a regional domain, a single wildcard cannot cover them all, while a SAN certificate can list names from all three. This is the situation covered in more depth by Multi-Domain SSL, and it is a common reason organisations choose SAN.

Names appear at different levels

*.example.com does not cover a.b.example.com. If you have a structure such as api.eu.example.com and api.us.example.com, you need either several wildcards or a SAN certificate that lists the exact names. Listing is often easier than inventing a wildcard layout.

You want to limit what a stolen key can do

A wildcard certificate with a stolen private key lets the attacker present valid credentials for any name under the domain, including names you have not created yet. A SAN certificate limits that to the names it lists. This does not make a leaked key harmless, since every listed name is still at risk, but it narrows the room for abuse. If your domain also hosts sensitive services, mixing them with casual ones under a single wildcard is an avoidable risk.

You prefer simpler validation

Proving control of a single name can usually be done by serving a small file on a web server or answering a challenge at that host. Wildcard names generally require proof through DNS. That means your automation needs credentials to edit DNS, which is a sensitive capability. If you can avoid granting it by using exact names, that can be an operational and security gain.

You want an accurate record of what is covered

With a SAN certificate, the list is the inventory. Anyone can open the certificate and see which hosts it is meant to serve. With a wildcard, you need a separate record of which servers actually use it, because the certificate gives no hint.

When SAN is a poor choice

Be honest about the downsides:

  • Every change needs a reissue. Adding new.example.com means issuing a new certificate with an extended list and deploying it. If this happens daily, SAN will be painful without automation.
  • Longer lists get unwieldy. A certificate with dozens of names is harder to review, and a mistake in one name can delay the whole request. Many authorities set a limit on the number of names per certificate.
  • Names are visible. Exact names appear in the certificate and in public certificate transparency logs. If an internal hostname must not be advertised, listing it may be undesirable. A wildcard shows only the pattern.
  • Shared key still applies. If you deploy the same SAN certificate to many servers, you share one private key across them, just like with a wildcard. The point about renewing a shared certificate without a multi-system outage applies here too.
  • Removing a name is clumsy. You cannot remove one name from an existing certificate; you issue a new one without it.

Comparison table

Question SAN certificate Wildcard certificate
What it lists Exact names A pattern
Names on several domains Yes No, one domain per pattern
Names at different depths Yes, if listed Only one level per pattern
Adding a new name Reissue with extended list Automatic if it matches
Unplanned names covered No Yes, any matching name
Validation Often possible without DNS access Usually needs DNS proof
Visible in public logs Each exact name The pattern only
Best for Few, known or multi-domain names Many, changing subdomains

A decision walk-through

Take your own inventory of hostnames and answer these in order.

  1. Do I know all the names today, and will they stay roughly stable? If yes, SAN is a strong candidate. If you create new names weekly, lean to wildcard.
  2. Do the names span more than one domain? If yes, SAN (or several wildcards) is required.
  3. Are there names two levels deep? If yes, list them in SAN or add a wildcard for the deeper level.
  4. How sensitive is the most sensitive service on this certificate? If the answer is "very", keep it off any broad certificate and use a dedicated one, SAN or single-name.
  5. Can my automation edit DNS safely? If not, prefer SAN with exact names that can be validated without DNS access.
  6. How often will I touch the certificate? If every addition forces a human to do work, ask whether the pattern is cheaper than the effort.

A mixed answer is common and fine. Many deployments use a SAN certificate that lists exact names and also includes one wildcard entry for a single dynamic area, such as *.apps.example.com.

A plain example

A regional training company owns learnexample.com and learnexample.co. It has www, portal, api and mail on the first domain and www on the second, which redirects to the first.

A wildcard would not help much: it would need to be two certificates, and it would cover dozens of names the company will never use. A single SAN certificate listing the six exact names does the job. Its list reads like a short inventory, validation can be done at each host, and the company knows precisely what is covered.

A year later the company launches events.learnexample.com. The team requests a new certificate that includes the new name, deploys it to the relevant servers, and retires the old one when it is no longer in use. It is one extra step but a small one, because the process is already scripted.

Later still, the company starts giving each partner school its own address under partners.learnexample.com. Names now change weekly and a SAN list would need constant reissue. The team keeps the existing SAN certificate for the stable names and adds a separate wildcard certificate for *.partners.learnexample.com, kept on the platform that serves partner schools. Each certificate has a clear purpose and a clear owner.

Combining both in one certificate

You do not have to treat this as an either-or choice. Many authorities let a single certificate list exact names and one or more wildcard patterns together. That gives you precision where the names are stable and flexibility where they are not.

A typical combined certificate might list example.com, www.example.com, api.example.com and *.tenants.example.com. The first three are exact, so anyone reviewing the certificate sees the core services at a glance. The last covers a growing set of customer names without any reissue. Because the wildcard is confined to the tenants branch, a leaked key still cannot be used for names outside it that are not listed.

Before you combine, check three practical things. First, confirm with your provider which combinations are supported and how many names are allowed. Second, remember that a combined certificate still renews as a unit, so DNS-based validation for the wildcard entry will be required each time. Third, keep the deployment scope small: put the combined certificate only on the systems that need all of those names, and give other services their own certificates.

Limits and what to watch for

  • Count limits and size. Authorities cap the number of names per certificate, and a larger list slightly increases the size of what is sent during a connection. Check the limits for the type you are buying.
  • Renewal timing. A SAN certificate renews as a unit. If one name's validation fails, the whole renewal can stall, so monitor all of them and leave margin.
  • Rules evolve. The CA/Browser Forum sets baseline requirements for what names can be included and how they are validated. Do not rely on old advice about what is allowed.
  • Do not include names you do not control. A certificate can only be issued for names you can prove you control, and listing speculative names only adds to the validation burden.
  • Check client support. Modern browsers and libraries handle SAN fully, but very old or unusual clients may behave differently with long lists or wildcard entries. Test the clients you care about.
  • Document who needs what. Record which services use which certificate, so a change to the list is never a surprise.

Summary

A SAN certificate is the precise option: it lists exactly the names it protects, can span several domains and depths, and keeps the damage of a leaked key limited to those names. A wildcard is the flexible option: it covers any matching subdomain with no reissue, at the price of broader exposure and DNS-based validation. Choose SAN when your names are few, known or across more than one domain, choose a wildcard when subdomains are many and changing, and do not be shy about combining the two. Start from your inventory and your automation, and let those decide.

To see the certificate types currently available for your domains, take a look at the SSL certificates page.

Frequently asked questions

What is a SAN certificate?

A SAN certificate lists several exact names in its Subject Alternative Name field, so one certificate can protect, for example, a website, its www form and an API host, even when they sit on different domains.

When is SAN better than a wildcard?

SAN is usually better when you have a small, known set of names, when the names span several domains or several levels, or when you do not want a certificate that automatically covers every future subdomain.

Can a SAN certificate include a wildcard name?

Yes. Many certificate authorities allow a certificate to list both exact names and one or more wildcard patterns together, which can combine the benefits of both.

What is the downside of SAN?

Adding a new name normally means reissuing the certificate with an updated list, and the list of names is visible on the certificate and in public logs. It is less convenient when names change often.

Is SAN more secure than a wildcard?

It limits what the certificate can be used for, which reduces the damage if the key leaks, but it is not a complete answer. Key handling, deployment and renewal practices matter at least as much.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need an SSL certificate?

Pick the certificate type that fits your site and see the price before you check out.

SSL from $14.99

See SSL certificates

Keep reading

SSL Guides

Wildcard Certificate vs Wildcard DNS: What Is the Difference?

Both use an asterisk, yet one answers 'where is this name?' and the other answers 'can I trust this name?'. This guide separates the two and shows how they work together.

10 min read

SSL Guides

How to Manage SSL Certificates Across Many Company Domains

Once a company owns many domains, SSL stops being a one-off task. Learn how to inventory certificates, pick the right types, assign owners and renew without outages.

10 min read

SSL Guides

How to Renew a Wildcard SSL Without Taking Several Systems Down

A single wildcard certificate can sit on load balancers, web servers and mail hosts. This guide shows how to renew it in stages so nothing goes down together.

10 min read