Technology

Wildcard SSL vs SAN Certificates for E-Commerce

Why Your SSL Strategy Matters for E‑Commerce and Multi‑Domain Setups

When you run an e‑commerce site, a SaaS platform, or manage multiple brands under one roof, “just enable HTTPS” is no longer enough. The way you structure your SSL/TLS certificates directly affects security boundaries, automation, operational complexity, and even how fast you can launch new subdomains and microsites. Two common options are: wildcard SSL certificates and SAN (Subject Alternative Name) / multi‑domain certificates. Both can secure many hostnames, but they behave very differently in real‑world architectures.

In this article, we’ll walk through how each certificate type really works, where they shine, where they hurt, and how to choose between them when designing e‑commerce and multi‑domain setups. By the end, you’ll have a clear, practical framework to answer a simple but important question: “Should I use a wildcard SSL, a SAN certificate, or a mix of both for my environment?”

Wildcard SSL Certificates in Plain Language

A wildcard SSL certificate can secure all first‑level subdomains of a domain; covering the domain itself requires a separate certificate entry. If your certificate is issued for *.example.com, it can cover www.example.com, shop.example.com, api.example.com, and cdn.example.com with a single cert and private key. It will not cover example.com itself (that’s a separate hostname) unless the certificate is issued for both example.com and *.example.com. It also will not cover store.eu.example.com because that’s a second‑level subdomain.

The biggest reason teams love wildcards is flexibility. You can create new first‑level subdomains without reissuing your certificate: configure DNS and the web server, and ensure the wildcard certificate is deployed at the TLS endpoint. This is especially useful for architectures where you spin up subdomains frequently—think tenant1.example.com, tenant2.example.com for a multi‑tenant SaaS, or campaign-xyz.example.com for marketing landing pages.

Wildcard certificates can be issued and renewed via ACME automation using the DNS‑01 challenge, through Let’s Encrypt or a commercial CA that supports this workflow. We’ve covered the operational side of this in detail in our guide on hands‑off Let’s Encrypt wildcard SSL automation with DNS‑01, including cPanel, Plesk, and Nginx examples.

When a Wildcard SSL Fits Well

Wildcard SSLs can work particularly well when:

  • You have one main brand/domain (for example, example.com) and many subdomains tied to that brand.
  • Your infrastructure team is comfortable with DNS‑based ACME automation and can integrate it into your DNS provider or hosting panel.
  • You want to avoid certificate changes every time marketing launches a new subdomain.
  • You run a multi‑tenant architecture on subdomains (e.g., customer-name.example.com), where all tenants live under the same parent domain.

In these situations, a single wildcard certificate can reduce certificate management overhead dramatically.

Wildcard SSL Limitations and Risks

Wildcard SSLs are powerful, but they come with trade‑offs you should consider carefully:

  • Broader blast radius on key compromise: If the private key of your wildcard certificate leaks, every subdomain under that wildcard is at risk. For high‑security environments, this is a serious concern.
  • No automatic coverage for unrelated domains: The wildcard name *.example.com does not match example.net, brand2.com, or api.partner.example.org. Those names require their own certificate entries or separate certificates.
  • Not ideal where strict isolation is needed: If you want strong separation between environments (for example, dev.example.com, staging.example.com, and prod.example.com on different servers with different security policies), sharing a single wildcard key across all of them may conflict with internal security guidelines.
  • Policy constraints: Some organizations or auditors prefer to avoid wildcards for high‑risk systems, or require extra controls (HSM storage, short lifetimes, limited scope) when they’re used.

If you’re still deciding between validation levels (DV, OV, EV) and how wildcard fits into that picture, it’s worth reading our detailed comparison of DV vs OV vs EV vs wildcard SSL for e‑commerce and SaaS.

SAN / Multi‑Domain Certificates Explained

A SAN (Subject Alternative Name) or multi‑domain certificate is designed to secure multiple distinct hostnames in a single certificate. For the explicit-hostname approach discussed here, you list each hostname in the certificate’s SAN extension. “Wildcard” describes a name pattern, while SAN is the extension containing the names; these are not mutually exclusive certificate categories. For example, a single SAN cert might cover:

  • example.com
  • www.example.com
  • shop.example.com
  • example.net
  • brand-store.com

All of these hostnames are baked into one certificate and share the same private key. You can mix root domains and subdomains, even across different TLDs. This makes SAN certificates attractive when you want to manage several brands or projects together—but don’t want a separate certificate for each.

In many control panels and CA dashboards, you’ll see these marketed as “multi‑domain” or “UCC (Unified Communications Certificates)” rather than SAN certificates, but technically they’re the same concept: the list of hostnames lives in the SAN extension.

When SAN / Multi‑Domain Certificates Shine

Explicit-hostname SAN certificates can suit scenarios like these:

  • Multiple brands, one team: A holding group manages ten different e‑commerce sites like brand1.com, brand2.com, brand3.com, all hosted on the same infrastructure and sharing a key-management boundary.
  • One gateway or load balancer for many domains: Your edge layer (Nginx, HAProxy, or a reverse proxy) terminates TLS for several domains and routes traffic internally to different backends.
  • Tight certificate limits or rate limits: Consolidating names into one SAN certificate can reduce the number of certificates issued. Whether that helps with issuance limits depends on the CA’s counting rules and limits on names per certificate; it does not automatically avoid per‑domain limits.
  • Legacy environments: On some older systems where automation is harder, having fewer certificates to track and renew can be a practical compromise.

For example, a team running a few medium‑traffic stores on the same VPS or dedicated server could use a SAN certificate as a “one cert, many sites” approach—especially if automation is centralised.

Downsides of SAN Certificates

Multi‑domain certificates also have trade‑offs you should be aware of:

  • All domains share one key and expiry date: If the shared private key is compromised and the certificate must be revoked, every hostname on that SAN certificate needs replacement certificate coverage.
  • Operational friction for changes: Adding or removing a single hostname requires reissuing and redeploying the certificate everywhere it’s used. That’s more moving parts compared to spinning up a new standalone DV cert.
  • Privacy and information leakage: Anyone inspecting the certificate can see all hostnames listed in the SAN. If you don’t want to publicly expose internal hostnames or future brands, this can be a problem.
  • Certificate size and handshake overhead: Very large SAN lists slightly increase handshake size. For most medium setups this is negligible, but at very high scale it can matter.

Because of these points, avoid treating a single huge SAN certificate as the default for “everything”. A useful alternative is to group hostnames logically—for example, one SAN for all public marketing sites, another for staging domains, and separate certs for critical payment endpoints.

Wildcard vs SAN: Side‑by‑Side for Real‑World Architectures

Both wildcard and SAN certificates let you cover multiple hostnames. The key difference is how they group those hostnames and what happens operationally when something changes. Here’s a concise comparison for typical e‑commerce and multi‑site setups.

AspectWildcard SSLSAN / Multi‑Domain SSL
What it coversFirst‑level subdomains matching *.example.com; the base domain needs its own certificate entryExplicit list of hostnames (e.g. example.com, brand2.com, shop.example.net)
Best forOne brand with many subdomains; multi‑tenant on subdomainsMultiple brands/domains on same infrastructure
Adding a new subdomainNo cert change needed if it matches the wildcardRequires reissue if the new hostname isn’t already in SAN list
Security blast radiusKey compromise affects every subdomain under the wildcardKey compromise affects all SAN hostnames
Isolation between brandsPossible with separate certificates and keys for distinct domain groupsPossible with separate certificates and keys for distinct brand groups
AutomationIdeal with DNS‑01 ACME; one automation flow per domainGood with ACME too, but SAN changes force full reissue
Visibility of hostnamesReveals base domain and wildcard patternReveals every exact hostname in the SAN list

Here, “SAN / multi-domain” is shorthand for certificates listing explicit hostnames. A wildcard identifier can also appear in a SAN extension, and a certificate can combine wildcard and explicit entries. Compare the actual hostname coverage and private-key boundaries, not just the product label.

Typical E‑Commerce Topologies and What We Recommend

Let’s map this to a few hypothetical architectures.

Scenario 1: Single Brand with Several Subdomains

Example hostnames:

  • example.com (main store, WooCommerce/Magento/PrestaShop)
  • api.example.com (mobile app / SPA backend)
  • cdn.example.com (static assets)
  • admin.example.com (backoffice)
  • img.example.com (media offload)

Good fit: A wildcard can simplify coverage for these subdomains when they share a key-management boundary. The main store at example.com also needs coverage, either as an explicit entry in the same certificate or in a separate certificate. Combine it with a solid TLS configuration and proper redirects as described in our full HTTPS migration guide with 301 redirects and HSTS.

Scenario 2: Holding Company with Multiple Stores

Example hostnames:

  • brand1.com
  • brand2.com
  • brand3.com

In this example, all three stores share the same application stack on one or more VPS or dedicated servers.

Good fit: A SAN certificate that includes brand1.com, www.brand1.com, brand2.com, brand3.com, etc. This way your edge proxy terminates TLS for all brands with one cert. For stricter isolation, you might use separate SAN certificates with distinct private keys per brand family or per environment (production vs staging).

Scenario 3: Multi‑Tenant SaaS on Subdomains

Example hostnames:

  • tenant1.example.com
  • tenant2.example.com
  • tenant3.example.com

Good fit: A wildcard for *.example.com can simplify tenant provisioning when TLS termination and key management are centralized, especially when combined with automated issuance and renewal using DNS‑01. If you also support “bring your own domain” for customers, those customer domains will usually be handled via separate SAN or individual certificates, not the wildcard.

Scenario 4: Shared Platform + Agency Clients

Example hostnames:

  • client-a.com
  • client-b.com
  • client-c.net

Each client has their own domain, but you host them on a shared stack.

Good fit: Prefer separate certificates with distinct keys per customer, even when clients share a hosting stack. This keeps one customer’s revocation or key replacement from requiring certificate changes for the others. A shared SAN certificate per cluster can simplify deployment, but couples all included clients to the same certificate and key lifecycle; avoid making it the default across customer boundaries.

Security, Compliance and Operational Details You Shouldn’t Skip

Once you’ve chosen between wildcard and SAN (or a combination), you still need to integrate that choice into your overall security and compliance posture. For e‑commerce and payment processing, that usually means thinking about PCI‑DSS, key management, and automation.

PCI‑DSS and Certificate Strategy

Determine which PCI DSS requirements and payment-provider conditions apply to your actual integration and assessment scope. Choosing a wildcard or explicit-hostname certificate does not itself establish compliance or prove segmentation. Review the following certificate-management considerations with the people responsible for that assessment; this is a design checklist, not a statement that a certificate type is universally permitted or prohibited:

  • Key management: Where private keys are stored, who can access them, and how quickly you can replace keys and revoke affected certificates.
  • Segmentation: Whether non‑cardholder parts of your infrastructure share keys with systems in scope.
  • Logging and monitoring: Whether TLS terminations are monitored for changes and anomalies.

We go deeper into hosting‑side responsibilities in our article on PCI‑DSS for e‑commerce without the panic. Using multiple smaller certificates with distinct private keys (some wildcard, some SAN, some single‑domain) can limit the hostname coverage associated with each key.

Automation with ACME: DNS‑01 vs HTTP‑01

Certificate costs include the human time spent renewing, deploying, and troubleshooting—not just the purchase price. Plan for ACME automation where the chosen CA and hosting environment support it.

  • Wildcard + ACME: Almost always uses DNS‑01. Your automation tool (e.g. acme.sh, certbot) creates a TXT record in DNS, proves domain control, and issues/renews the wildcard. Automating this requires a way to manage the validation TXT records. We explain the challenge mechanisms in our ACME challenges deep dive (HTTP‑01 vs DNS‑01 vs TLS‑ALPN‑01).
  • Explicit-hostname SAN + ACME: Can use HTTP‑01 if all domains point to the same web server or proxy; or DNS‑01 if you want more flexibility. Renewals can be automated with a configured ACME client, but adding a hostname not already covered still requires reissue.

If you’re unsure whether to stay fully on Let’s Encrypt or mix in paid certificates, our guide on Let’s Encrypt vs commercial SSL for e‑commerce and enterprise walks through realistic decision points.

Key Isolation and Environment Boundaries

Regardless of certificate type, define clear rules for where keys can live:

  • Separate keys for prod, staging, dev: Don’t reuse the same wildcard across all environments. At minimum, generate separate certificates with distinct private keys per environment, and ensure their hostname coverage respects those boundaries.
  • Limit key sharing across servers: It’s common to share one cert across a cluster (load balancers, web servers), but avoid copying the same wildcard to completely unrelated systems.
  • Rotate keys during sensitive changes: After major incidents, staff changes, or hosting migrations, consider re‑issuing your certificates with fresh keys.

One possible structure uses separate certificates and private keys for production and staging, plus SAN or single‑domain certificates for admin panels, partner integrations, or customer‑specific domains. Choose wildcard or explicit-hostname coverage according to each group’s boundaries; separate keys do not by themselves narrow overlapping certificate coverage.

Practical Decision Tree: Choosing Wildcard, SAN, or Both

Let’s turn all of this into a concrete, step‑by‑step decision process you can apply to your own project.

Step 1: List Your Hostnames

Write down every hostname you need to secure, grouped by environment:

  • Production: example.com, www.example.com, api.example.com, cdn.example.com
  • Staging: staging.example.com, api.staging.example.com
  • Other brands: brand2.com, www.brand2.com
  • Customer domains: shop.customer-a.com, store.customer-b.com

As you do this, mark which ones share the same infrastructure and TLS termination point (same load balancer or web server).

Step 2: Identify Grouping Logic

Next, group hostnames based on:

  • Brand boundaries: Do you want one certificate per brand for marketing reasons or security isolation?
  • Environment boundaries: Should staging and production ever share a key?
  • Technical endpoints: Which hostnames terminate on the same proxy or server?

This will give you natural certificate “buckets”, with the number depending on your brands, environments and TLS endpoints.

Step 3: Decide Certificate Type Per Group

For each bucket, pick the certificate style that best fits:

  • Group dominated by one domain + many subdomains? Consider a wildcard (e.g. *.example.com) only after checking every hostname it can match against the intended security boundary. In the Step 1 inventory, that pattern also covers staging.example.com; a separate staging certificate does not exclude it. If that overlap is unacceptable, use explicit production hostnames or redesign the namespace into non-overlapping groups. The pattern does not cover api.staging.example.com. Optionally add example.com as an extra SAN in the same certificate if your CA allows it.
  • Group containing unrelated domains or multiple brands? Use a SAN certificate with all required hostnames explicitly listed.
  • Single high‑value hostname (for example, payments.example.com or checkout.brand.com)? Consider a dedicated single‑domain cert with its own key, and check that other certificates do not still cover that hostname. For example, payments.example.com remains within the scope of *.example.com even when it has a dedicated certificate; remove the overlapping coverage or redesign the hostname grouping if key isolation requires it.

It’s perfectly normal—and often optimal—to use both wildcard and SAN certificates in the same infrastructure.

Step 4: Plan Automation and Renewal

Once the structure is clear, decide how you’ll issue and renew certificates:

  • On shared hosting or managed panels, enable AutoSSL/Let’s Encrypt where possible.
  • On VPS and dedicated servers, integrate ACME clients (acme.sh, certbot, etc.) with your web server and DNS provider.
  • Document renewal commands and locations of private keys, and test a manual reissue so you’re not debugging under time pressure.

If you’re running many domains and worry about rate limits, we’ve written about using SANs and wildcards strategically in our article on avoiding Let’s Encrypt rate limits with SANs, wildcards, and calm ACME automation.

Hosting and Infrastructure Tips from the dchost.com Team

The certificate model you choose should match your hosting architecture, whether you use shared hosting, a VPS, dedicated servers or colocated hardware.

On Shared Hosting

If you run a single store or a small set of sites on shared hosting:

  • Take advantage of AutoSSL / Let’s Encrypt integration if your hosting panel supports it.
  • Use separate certificates per domain unless your provider explicitly supports multi‑domain certificates in the UI.
  • Focus on clean HTTPS redirects and HSTS rather than over‑optimising certificate structure.

This can simplify certificate management for small to medium stores, but certificate automation, HTTPS redirects and HSTS alone do not establish security or compliance.

On VPS or Dedicated Servers

On a self-managed VPS or dedicated server, you control TLS deployment and are responsible for its maintenance. One possible architecture for an e‑commerce or multi‑brand setup is:

  • Terminate TLS on Nginx or HAProxy at the edge.
  • Use a wildcard for the main brand’s production subdomains, and a separate key and separately scoped wildcard for staging so staging credentials do not cover production hostnames.
  • Use one or more SAN certificates for additional brands that share the same proxy.
  • Automate all issuance and renewals with ACME, storing certs in a central path and reloading services via systemd hooks.

If you colocate your own hardware, the same certificate patterns apply; adapt TLS termination to your application stack and load balancers.

Summary and Next Steps

Choosing between wildcard SSL and SAN (multi‑domain) certificates is less about which one is “better” and more about how your domains, subdomains, and environments are structured. Wildcards are fantastic when you have one main brand with many subdomains and strong DNS‑01 automation in place. SAN certificates can suit multiple brands or domains on the same edge infrastructure when sharing a private key and renewal lifecycle is acceptable.

One option for e‑commerce setups with these different hostname groups is a hybrid approach: wildcard certificates for main brand subdomains, SAN or single‑domain certificates for separate brands and high‑value endpoints, all glued together with robust ACME automation and clear key‑management policies. If you’re also dealing with PCI‑DSS, regulatory requirements, or complex multi‑region hosting, pairing the right certificate strategy with the right server architecture matters even more.

Start by listing your domains, current certificates, TLS termination points and key owners. Map those groups to your hosting architecture and compliance requirements, then confirm that your chosen plan supports the required certificate installation and renewal workflow.

Frequently Asked Questions

Choose based on your hostnames and key-management boundaries, not the store software. A wildcard can simplify first-level subdomain coverage when those services share a security boundary; the base domain needs its own certificate entry or separate certificate. An explicit-hostname SAN certificate can suit multiple brands sharing a TLS endpoint and certificate lifecycle.

The main distinction discussed here is the scope of a compromised key. A wildcard key puts every matching subdomain at risk; a SAN certificate's key puts every listed hostname at risk. Separate certificates with distinct keys and appropriately limited hostname coverage help define boundaries. Separate keys alone do not eliminate overlapping coverage.

Yes. The article describes using wildcard certificates for suitable subdomain groups and SAN or single-domain certificates for other hostname groups on the same infrastructure. Plan deployment and renewal for every certificate. A separate certificate for a sensitive endpoint does not remove that hostname from an existing wildcard's coverage.

The limit depends on the CA and its limits on names per certificate; the article does not specify a universal number. Group names by brand, environment and TLS endpoint rather than defaulting to one very large certificate. All included names share a key and expiry date, and changing the hostname list requires reissue and redeployment.

Certificate strategy affects key-management and segmentation considerations, but neither certificate type establishes compliance. Determine the requirements and payment-provider conditions that apply to your integration and assessment scope. Review key storage, access, replacement, revocation, segmentation and TLS monitoring with those responsible for the assessment.
↑