Skip to content

One Certificate or a Separate SSL Certificate per Subdomain?

Covering all subdomains with one certificate is tidy, but a separate certificate per subdomain limits the damage when something goes wrong. Here is how to choose.

10 min readUpdated Nov 20, 2026By XPASS Editorial Team

One Certificate or a Separate SSL Certificate per Subdomain?

Sooner or later every site that grows past a single hostname meets the same question. You now have www, app, api, a staging site and perhaps a support portal, all under one domain. Do you buy or issue one certificate and install it everywhere, or give each subdomain its own SSL certificate? Both approaches work, and both are used in serious production setups. The difference lies in how much convenience you want, how much risk you are willing to concentrate in one place, and how well your team can automate the boring parts.

This article walks through the trade-offs in plain terms. We look at how a certificate names the hosts it protects, what changes when one key is shared, how renewal and monitoring differ, and a simple way to decide. If you already know you want a wildcard, the companion piece on Wildcard SSL for SaaS subdomains goes deeper into that case. If your names span different domains rather than subdomains, read how Multi-Domain SSL covers different domain names.

How a certificate names the hosts it protects

A certificate does not protect a server. It protects names. When a browser connects to shop.example.com, it checks that the certificate presented by the server lists a name that matches what the user typed, that a trusted authority signed it, and that it has not expired. The list of names lives in the Subject Alternative Name extension described in RFC 5280. Everything else about "one certificate or many" follows from that list.

There are three practical shapes:

  • Single-name certificate. Lists exactly one hostname, such as app.example.com.
  • Multi-name (SAN) certificate. Lists several specific hostnames, such as www.example.com, app.example.com and api.example.com, in one certificate.
  • Wildcard certificate. Lists a pattern such as *.example.com, which matches any single label in that position.

So "one certificate for everything" can mean either a wildcard or a SAN certificate, and "a certificate per subdomain" means a set of single-name certificates. Keep that vocabulary in mind, because the risks differ between them.

A wildcard has two limits people often forget. It matches only one label, so *.example.com covers app.example.com but not v2.app.example.com. And it does not normally cover the bare domain example.com, which is why wildcard certificates usually list both example.com and *.example.com. If you want to understand how this differs from a wildcard DNS record, which is a different thing entirely, keep that distinction in mind as you read the rest.

The case for one shared certificate

The appeal of a single certificate is operational simplicity, and it should not be dismissed.

One renewal date. There is one expiry to track, one renewal job to run and one place to look when something looks wrong. For a small team this is a real saving.

New subdomains are instant. With a wildcard, launching beta.example.com needs no new certificate request, no waiting and no extra validation. You point DNS at the server, install the existing certificate, and the name is already covered.

Fewer moving parts to forget. Every certificate you issue is something that can expire silently. Fewer certificates mean fewer silent failures, provided the single one is well watched.

Less public exposure of names. Public certificate transparency logs record the names on issued certificates. A wildcard certificate lists the pattern rather than each internal hostname, so a name like internal-billing.example.com does not appear in the log just because you gave it a certificate. This is a modest privacy benefit, not a security control, because the name is still discoverable by other means.

Simple for small sites. If you run a marketing site, a blog and a login area on one server or one platform, a shared certificate is usually the natural fit.

The case for a certificate per subdomain

Separate certificates trade convenience for containment.

Smaller blast radius. Each certificate has its own private key. If the key behind status.example.com leaks, an attacker can impersonate that name only, not your payment or login host. With a shared key, one leak on the weakest server exposes every name that key covers.

Independent lifecycles. You can renew, replace or revoke one certificate without touching the others. If one service needs an emergency reissue, nothing else is disturbed.

Different owners, different rules. Large organisations often have separate teams for the marketing site, the application and the internal tools. Giving each team its own certificate means nobody has to hand the shared private key to anyone else.

Different validation levels. Some names may justify a higher validation level than others, for example an organisation-validated certificate on a customer-facing checkout host and a simple domain-validated one on a documentation site. A single certificate cannot mix levels.

Easier to retire. When a service is shut down, its certificate can simply be allowed to lapse or be revoked, and nothing else cares.

The cost is more certificates to track, which is manageable only if renewal is automated. Protocols such as ACME, which is how many certificate authorities automate issuance, make a per-name approach practical because each host can request and renew its own certificate without human involvement. The Let's Encrypt overview of how issuance works is a good starting reference for that model.

The risk people underestimate: one key in many places

The most important hidden cost of a shared certificate is not the certificate itself but the private key. To use the same certificate on several servers, the same private key must be present on each of them. Every copy is another place it can be leaked: a misconfigured backup, an old staging server, a contractor's laptop, a container image pushed to the wrong registry.

Ask yourself three questions about any shared key:

  1. How many machines hold it, and who can log in to each one?
  2. Would we be able to tell if it were copied?
  3. If we had to replace it today, how long would it take to reach every location?

If the honest answers are "a lot", "no" and "days", the convenience of a single certificate is costing more than it saves. This is especially true for a wildcard, because a stolen wildcard key lets the attacker present a valid certificate for any name under the domain, including ones you have not created yet.

A related risk is shared expiry. When one certificate sits on many systems and it lapses, all of them fail together. That correlated outage is the subject of renewing a wildcard SSL without multi-system downtime, and it is the main reason mature teams automate deployment rather than relying on calendar reminders.

Comparison at a glance

Factor One shared certificate (wildcard or SAN) Separate certificate per subdomain
Renewals to track One One per name
Adding a new subdomain Immediate with a wildcard; reissue needed with SAN New request for each
Private key exposure Same key on every server Each key stays with its service
Impact of one key leak All covered names One name
Impact of one expiry All covered services One service
Public listing of names Pattern only (wildcard) Each hostname appears in logs
Fit for multiple teams Awkward, key must be shared Natural
Automation needed Helpful Close to essential

No column wins everywhere. That is why the right answer depends on your situation rather than on a rule.

A practical way to decide

Work through these steps with your own inventory of hostnames.

Step 1: list every name. Write down each hostname that serves HTTPS today, plus those planned for the next year. Note which server or platform serves each.

Step 2: group by owner and sensitivity. Mark which names are customer-facing, which handle logins or payments, and which are internal or experimental. Mark who operates each.

Step 3: count how often names change. If you create and delete subdomains weekly, for example one per customer, per-name issuance becomes heavy without automation. If you have six stable names, it is trivial.

Step 4: check your automation. Can each server request and renew its own certificate unattended? Do you have monitoring that alerts well before expiry? If not, fewer certificates is the safer default until you build that.

Step 5: choose per group, not for the whole domain. Many setups end up mixed: a wildcard or SAN certificate for the low-risk public names on a single platform, and individual certificates for sensitive or separately operated services. There is nothing inconsistent about this.

A plain example

Imagine a small company with the domain example.com. It runs www and blog on one hosting platform, app and api on a separate application cluster managed by the engineering team, and status on a third-party status page service.

A sensible layout would be:

  • One certificate covering example.com, www and blog for the hosting platform, since one team operates them together.
  • A separate certificate for app and api, kept on the cluster and renewed automatically, because these hosts handle logins and data.
  • Nothing shared with the status page: that service issues and manages its own certificate for status, and the company never has to hand over any private key.

If the company later launches one subdomain per customer, it would revisit the choice and consider a wildcard on the application cluster only, rather than extending the marketing site's certificate to cover them.

Limits and what to watch for

  • Wildcards are not a substitute for access control. A wildcard says "these names are mine"; it does not say anything about who may use the key. Treat the key as a high-value secret.
  • Validation method matters. Wildcard certificates generally require proving control of the domain through DNS, which means your automation needs safe access to DNS records. Per-name certificates can often be validated on the web server itself.
  • Do not forget the apex. Confirm that the bare domain is listed if users type it, and that names two levels deep have their own coverage.
  • Check client expectations. Some older devices, embedded systems or partner integrations handle unusual certificate layouts poorly. Test with the clients you actually support.
  • Rules change. Industry bodies such as the CA/Browser Forum set the baseline requirements for issuance, including maximum certificate lifetimes, and these have been getting shorter over time. Design for frequent renewal rather than assuming a long validity period.
  • Monitoring is non-negotiable. Whichever model you pick, monitor expiry dates from outside your network, because that is what your users experience.
  • Document the key's journey. Know where each private key is generated, where it is stored and how it is rotated.

Summary

There is no universally correct answer. One shared certificate gives you a single renewal and instant coverage of new subdomains, at the price of one private key living in many places and one expiry that can break many services at once. Separate certificates keep failures small and let teams work independently, at the price of more certificates to automate and watch. Most real deployments end up mixed: shared coverage where names are many, low-risk and run by one team, and separate certificates where services are sensitive or operated apart. Start from your inventory of names, owners and automation, and let that decide.

When you are ready to compare certificate types for your own domain, the SSL certificates page lists what is currently available.

Frequently asked questions

Can one certificate cover all my subdomains?

Yes. A wildcard certificate covers every name one level below a domain, and a multi-name (SAN) certificate can list many specific names. Which one fits depends on whether your subdomains are many and changing or few and known.

Is a separate certificate per subdomain more secure?

It limits the damage if one private key leaks, because each certificate and key covers only one name. It also means more certificates to renew, so it is safer only if renewal is automated and monitored.

Does a wildcard certificate cover the bare domain?

Usually a wildcard for *.example.com does not protect example.com itself, so the name is normally added as a second entry in the same certificate. It also does not cover names two levels deep such as a.b.example.com.

What is the main risk of sharing one certificate across many servers?

The same private key has to be copied to every server, so a leak on any one machine exposes all of them, and one expiry can take them all down together.

How do I decide quickly?

Count your subdomains, ask how often they change, and ask who operates each service. Few stable names run by one team suit a single certificate; many teams, many servers or sensitive services suit separate certificates.

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 SSL for a SaaS With Many Subdomains

Per-customer subdomains make a wildcard certificate attractive. Learn how it works for a SaaS, how to deploy and renew it safely, and when to choose something else.

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

SSL Guides

How a Multi-Domain SSL Certificate Covers Different Domain Names

A multi-domain certificate lists several unrelated names in one file. Learn how the SAN list works, how each name is validated, and when it beats separate certificates.

10 min read