Skip to content

What Is a Wildcard SSL Certificate and How Many Subdomain Levels Does It Cover?

A wildcard certificate protects many subdomains with one certificate, but only one level deep. Here is what that means in practice and where the limits are.

10 min readUpdated Nov 20, 2026By XPASS Editorial Team

What Is a Wildcard SSL Certificate and How Many Subdomain Levels Does It Cover?

If you run a website with a handful of subdomains such as www, blog, shop and mail, you quickly reach the point where managing one certificate per hostname becomes tedious. A wildcard SSL certificate is the usual answer. One certificate, one renewal date, one file to install. But the word "wildcard" suggests more than the certificate actually delivers, and a surprising number of outages come from people assuming it covers names it does not.

This guide explains what a wildcard certificate is, how the matching rule works, and exactly how many subdomain levels it protects. You will see a worked example, a comparison table of which hostnames match and which do not, a short checklist for ordering, and the limits you should know about before you rely on one. If you are comparing it against other certificate types, the article on how a wildcard certificate differs from a multi-domain certificate picks up where this one ends.

What a wildcard certificate actually is

An SSL/TLS certificate binds a public key to one or more names. When your browser connects to a site, the server presents a certificate, and the browser checks that the name in the address bar appears in that certificate and that a trusted certificate authority (CA) signed it. The names live in a field called Subject Alternative Name (SAN), defined in the X.509 profile described in RFC 5280.

A wildcard certificate is simply a certificate in which one of those names contains an asterisk in the left-most position, for example *.example.com. The asterisk stands in for a single label, meaning the text between two dots. So the certificate is valid for any hostname that is exactly one label followed by .example.com.

That is all there is to the idea. There is no special protocol and no different encryption. The visitor sees the same padlock. The difference is only in the list of names the certificate is allowed to vouch for, and in how the CA verifies that you control the whole domain rather than one host.

The one-level rule

The most important fact about a wildcard is that the asterisk replaces exactly one label. It does not mean "anything underneath". Consider the certificate *.example.com:

Hostname Matches? Why
www.example.com Yes One label before example.com
shop.example.com Yes One label before example.com
api.example.com Yes One label before example.com
example.com No No label to replace, the bare domain is a separate name
eu.shop.example.com No Two labels before example.com
shop.example.org No Different domain
exampleshop.com No Different domain

The practical consequence is simple. If your structure is flat, with every service one step below the main domain, a single wildcard handles all of it. If your structure is nested, for example a regional layout such as eu.shop.example.com and us.shop.example.com, then *.example.com is not enough. You would need *.shop.example.com for that branch, which is a separate name and, depending on the product, a separate certificate or an additional name on a certificate that allows it.

This single-label behaviour is the reason the question in the title has such a short answer. A wildcard covers one level of subdomains. If you need two levels, you need a wildcard at each parent, or you need to list the deeper names explicitly.

A worked example

Imagine a small online business that owns example.com. Its services are:

  • www.example.com for the main site
  • shop.example.com for the store
  • blog.example.com for articles
  • app.example.com for the customer dashboard
  • status.example.com for a status page

All five names sit one label below the domain. A certificate for *.example.com covers every one of them. If the business later adds help.example.com, it works on day one without a new order, as long as the server presents the wildcard certificate for that hostname.

Now suppose the business expands and creates eu.app.example.com and us.app.example.com. The existing wildcard does not match either name, and browsers will show a certificate warning. The fix is to issue *.app.example.com, or to add eu.app.example.com and us.app.example.com as explicit names on a certificate that supports multiple names. Which choice is better depends on how many such names you expect, a topic the later article on whether a wildcard is worth it for many subdomains covers in more detail.

The bare domain is the other classic surprise. The same business wants visitors who type example.com without www to get a valid padlock. The wildcard alone will not cover it. Most providers issue wildcard certificates with the bare domain included as a second name, so the certificate lists both *.example.com and example.com. Do not assume this, though. Read the list of names in the order summary or in the issued certificate.

How validation works for a wildcard

Before issuing any certificate, a CA must confirm that you control the name. For a normal hostname this is often done by placing a file on the web server or by answering at an email address. A wildcard raises the stakes, because it authorises every possible one-label name under the domain, so CAs require proof of control over the domain itself.

The common method is DNS validation. The CA asks you to publish a specific TXT record under _acme-challenge or a similar name, or a CNAME your provider supplies. When the CA sees the record, it knows you control the zone's DNS. Automated issuance based on the ACME protocol (RFC 8555), as used by Let's Encrypt, requires this DNS challenge for wildcard names. File-based HTTP validation cannot be used, because a file on one web server does not prove control over every possible subdomain.

What this means in practice:

  1. You need access to edit the DNS zone, or a way for your tooling to do it automatically through an API.
  2. DNS changes can take time to propagate, so the first issuance may be slower than for a single hostname.
  3. Renewal requires the same access again. If you automate renewal, the credential that edits DNS becomes a sensitive secret.
  4. If DNS for the domain is managed by someone else, such as a former agency, sort out access before you order.

What a wildcard does not cover

Wildcards are often assumed to protect more than they do. Keep this list in mind.

  • The bare domain unless it is added as an additional name.
  • Deeper levels such as a.b.example.com.
  • Other domains such as example.net, even if you own them. Each registered domain needs its own names.
  • Other protocols' needs. The certificate is for TLS. It does not secure your email content or your DNS, though mail servers and other services can use TLS certificates for their own connections.
  • Your server's patching and configuration. A certificate encrypts traffic in transit. It does not make an outdated application safe.
  • Extended Validation (EV) certificates. Under the CA/Browser Forum rules, wildcard names are generally not permitted in EV certificates, so if you want that validation level you list hostnames instead.

Choosing and ordering step by step

Use this sequence to avoid the common mistakes.

  1. List your hostnames today. Write down every name that needs HTTPS, including the bare domain and any that are planned for the next year.
  2. Count the levels. Mark any name that has more than one label before the registered domain. Each distinct parent at that level needs its own wildcard or its own explicit name.
  3. Decide on validation level. Domain validation (DV) proves control of the domain only. Organisation validation (OV) also verifies the business identity. A wildcard is available at different levels depending on the provider, so check the product page for what is offered.
  4. Confirm the bare domain is included. Look for both *.example.com and example.com in the names list.
  5. Plan DNS access. Know who edits DNS and how. If renewal will be automated, test it before it matters.
  6. Plan the private key. Decide which servers will hold the key, how you will transfer it securely, and who may access it.
  7. Install and test every hostname. Visit each name, not just the main one. Use a browser or a command line tool and read the certificate's name list.
  8. Set a reminder for expiry. Certificates have a fixed lifetime that has become shorter over the years, so check the validity period shown at purchase and put the renewal date on a calendar or in monitoring.

Limits and what to watch for

Shared key, wider blast radius. With a wildcard, the same private key is commonly deployed on every server that terminates TLS for any subdomain. If a test server with weak security holds that key and is compromised, an attacker can impersonate any name under the wildcard. Teams usually respond by keeping the key on as few systems as possible, using a secrets store, and avoiding copying it by email or chat. For sites that process sensitive details, read the broader guidance on SSL for sites that collect customer data.

Revocation affects everything. If you must revoke a wildcard because the key may be exposed, every hostname that depends on it needs a replacement at the same time. Plan how quickly you could reissue and redeploy.

Subdomain takeover is a separate risk. A wildcard does not cause it, but a forgotten DNS record pointing to a service you no longer use can let someone else serve content under your name, and the valid certificate makes that content look trustworthy. Audit DNS records regularly.

Inventory visibility. Public certificate transparency logs record issued certificates. A wildcard hides the individual subdomain names, which some teams like, but it also makes it harder to notice a misissued certificate for one specific host. Monitoring for new certificates for your domain is still sensible.

Not every service accepts it. Some appliances, older software and device firmware handle wildcard certificates poorly or require a different import process. Test in the actual environment, not only in a desktop browser.

Mixed providers. If part of your domain is hosted on a platform that issues its own certificates automatically, that platform may present its own certificate, and your wildcard will not be used for that name at all. That is normal, and the two can coexist.

When a wildcard is a good fit and when it is not

A wildcard fits best when you have many hostnames at the same level, when new ones appear often, and when you do not want to order or validate anything each time. Hosting providers, SaaS products with one subdomain per customer, and sites with staging, preview and internal tools often fall into this group.

It fits less well when you only have two or three known names, when your names are spread across several different domains, or when the names sit at different depths. In those cases a certificate that lists the names directly, covered in the article on how a wildcard compares with a multi-domain certificate, can be simpler and gives you a clear record of exactly what is protected.

A site that has moved servers also has questions about whether the existing certificate can travel with it. That depends on where the private key lives and who issued the certificate; the guide on reusing an SSL certificate after a website migration walks through it.

Quick checklist before you rely on it

  • Every hostname you need sits exactly one label below a domain named in the certificate.
  • The bare domain is listed if visitors can reach it.
  • You can edit DNS or automate DNS challenges for issuance and renewal.
  • The private key is stored in a small number of controlled places.
  • You have visited each hostname after installation and checked the padlock and certificate details.
  • Expiry and renewal are on a calendar or in monitoring.
  • You know what to do within hours if the key is exposed.

Summary

A wildcard SSL certificate lets one certificate cover many hostnames by using an asterisk for the left-most label. The rule to remember is that the asterisk replaces exactly one label: *.example.com covers www.example.com and shop.example.com, but not eu.shop.example.com, and not the bare example.com unless that name is added to the certificate. Issuance requires proof of control over the whole domain, normally through DNS validation, and the shared private key means you should store it carefully. Before ordering, list your hostnames, count their levels, confirm what the certificate includes, and test every name after installation. If you want to see which certificate types are available for your domain, the SSL page is the place to compare them.

Frequently asked questions

How many subdomain levels does a wildcard SSL certificate cover?

One. A certificate for *.example.com matches names such as www.example.com or shop.example.com, but not a deeper name such as eu.shop.example.com. To cover that deeper level you need a separate certificate for *.shop.example.com or a certificate that lists the name explicitly.

Does a wildcard certificate cover the bare domain example.com?

Not by the wildcard itself. The pattern *.example.com does not match example.com. Many providers add the bare domain as an extra name on the same certificate, but you should confirm that the certificate you order includes it.

Can I put the asterisk anywhere in the name?

In practice the asterisk should be the entire left-most label, as in *.example.com. Patterns such as shop*.example.com or www.*.example.com are not something you should plan around, because clients and certificate authorities handle them inconsistently or reject them.

Is a wildcard certificate less safe than separate certificates?

It is not weaker in cryptographic terms, but the same private key usually ends up on every server that uses it. If one of those servers is compromised, every name under the wildcard is affected, so key handling matters more.

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

Can You Reuse Your SSL Certificate After Moving a Website?

A certificate belongs to your domain names, not to one server. Learn when you can move it, when to reissue, and how to avoid browser warnings during a migration.

9 min read

SSL Guides

Wildcard SSL vs Multi-Domain SSL: What Is the Difference?

A wildcard covers many subdomains of one domain; a multi-domain certificate lists specific names, even across different domains. Here is how to choose.

10 min read

SSL Guides

SSL for Websites That Collect Customer Data: What to Consider

A certificate is only one layer when your site collects customer data. Learn which choices around validation, HTTPS setup, cookies and renewal matter most.

10 min read