Does a Wildcard SSL Certificate Cover the Root Domain?
A wildcard matches one label in front of your domain, so the bare domain is a separate case. See how matching works and how to make sure example.com is covered.
9 min readUpdated Nov 20, 2026By XPASS Editorial Team

It is one of the most common surprises in certificate shopping. You buy a wildcard certificate for *.example.com, install it, and then visitors who type plain example.com see a security warning, while www.example.com and app.example.com work perfectly. Nothing is broken. The certificate is doing exactly what its name pattern says, and the name pattern does not include the bare domain unless someone puts it there.
This article explains how wildcard matching works, why the root domain, also called the apex or bare domain, is a different case, and how certificate providers deal with it. You will learn how to read the name list inside a certificate, which options you have if the root domain is missing, and what else a wildcard does not cover. If you run an app and an API under one domain, choosing SSL for app and API subdomains puts these rules into a practical setting.
What a wildcard name really matches
A wildcard certificate contains a name that starts with an asterisk, such as *.example.com. When a client checks the certificate, the asterisk stands in for exactly one DNS label, which is the text between dots. The rules for how names are compared in certificates are derived from the X.509 certificate profile (RFC 5280) and the way browsers implement it.
Here is how the pattern *.example.com behaves in practice:
| Hostname | Matches *.example.com? | Reason |
|---|---|---|
| www.example.com | Yes | One label, www, replaces the asterisk |
| app.example.com | Yes | One label, app |
| api.example.com | Yes | One label, api |
| example.com | No | No label exists in front of the domain |
| eu.api.example.com | No | Two labels, so the asterisk would have to match more than one |
| example.org | No | A different domain entirely |
The key point is that the asterisk always has to match something. It cannot match an empty string, so the bare domain falls outside the pattern. This is not a quirk of one browser. It is how clients are built to interpret wildcard names, which is why a wildcard certificate alone cannot protect example.com.

Why the root domain is a different case
In DNS terms, example.com is the zone itself, the apex. Subdomains such as www or app are names inside the zone. Certificates do not care about this structure beyond the text of the name, but it explains why many people forget the apex: in conversation, "the website" and "all the subdomains" feel like the same thing. To a certificate they are not.
The apex is often the most important name on the list. It is what people type, what appears on business cards and what many search results link to. Even if you redirect it to www, the browser must first complete an HTTPS handshake with example.com before it can follow the redirect. If the certificate presented for example.com does not list that name, the visitor sees a warning before the redirect is ever reached. That is why the redirect does not rescue you.
You may also have an alias or a CNAME-like arrangement at the apex, handled by your DNS provider. This does not change the certificate requirement. Whichever server answers for example.com on port 443 must present a certificate that lists example.com.
How providers handle the bare domain
Certificate products take three common approaches, and the product page should tell you which one applies.
Wildcard that includes the bare domain
Many wildcard products place two names in the Subject Alternative Name list: *.example.com and example.com. One certificate then covers the apex, www and every single-label subdomain. When you read a product description, look for wording such as "secures the base domain and all first-level subdomains". If the page is silent, ask rather than assume.
Wildcard only, with the apex sold separately
Some products give you only the asterisk name. In that case you need a second certificate for example.com, or you need to reissue the wildcard with the extra name if the provider allows it. Make sure you understand whether the extra name costs anything and whether it changes the renewal date.
Multi-name certificate that mixes both
A multi-name (SAN) certificate can list *.example.com and example.com explicitly, plus other domains if you wish. This is the flexible form, and it is especially handy when you also own a second domain. The topic is covered in how multi-domain SSL covers different domain names.
How to check what your certificate covers
You do not need special tools to see the name list. A browser is enough, and a command line check adds precision.
- Open https://example.com in a browser and click the padlock or the site information icon.
- Choose the option to view the certificate, then look at the details tab for the Subject Alternative Name field.
- Read every entry. Note which ones start with an asterisk and whether the bare domain appears as its own line.
- Repeat for https://www.example.com and for each subdomain that matters. If the same certificate is presented everywhere, you will see the same list.
- If you prefer a command line, a TLS client tool such as OpenSSL can print the certificate presented for a given server name. Look at the subject alternative name section of the output. Use the server name option so that the server presents the right certificate.
- Check the expiry date at the same time and add it to your calendar.
Do this test after every installation, not only when something looks wrong. A new certificate that installs successfully on the www server may still be missing on the server that answers for the apex.
Options if the root domain is missing
If you discover that example.com is not covered, you have several practical paths.
- Reissue the wildcard with the bare domain added. Many providers let you add a name during the validity period at no change in structure, although some require a new order. Check the provider's reissue rules first.
- Buy a separate single-name certificate for example.com. This is simple and keeps the wildcard unchanged, but it adds a second renewal date.
- Move to a multi-name certificate that lists example.com and *.example.com explicitly. This is the cleanest long-term arrangement if you also have other domains.
- Redirect at the DNS or load balancer level only after the TLS handshake is solved. Remember that a redirect never fixes a missing name.
- Stop serving the apex over HTTPS. This is not recommended, because visitors who type the bare domain will land on an error or an insecure page.
A worked example
A small online shop owns example.com. The owner buys a wildcard for *.example.com, installs it on the web server and sees that shop.example.com and www.example.com open with a padlock. A week later a customer writes that typing example.com shows "Your connection is not private".
The owner opens the certificate details and finds a single line in the Subject Alternative Name list: *.example.com. The bare domain is absent. The product page, read again, says the wildcard "secures all subdomains" and says nothing about the base domain.
The owner contacts the provider and learns that adding example.com as a second name requires a reissue. After the reissue, the Subject Alternative Name list shows two lines, *.example.com and example.com. The new certificate is installed on every server, including the one that handles the apex. The customer retests and sees the padlock.
Two lessons come out of the story. First, read the name list inside the certificate, not only the marketing name of the product. Second, test every hostname that visitors might type, including the plain domain and www, after each installation.
Other things a wildcard does not cover
The root domain is only the best-known gap. Keep these in mind when you plan your names.
- Multi-level names. *.example.com does not match a.b.example.com. If you use patterns such as customer.region.example.com, you need *.region.example.com or individual certificates.
- Other domains. A certificate for *.example.com says nothing about example.net or example.org. Each domain needs its own coverage, which is where multi-name certificates help.
- Different ports and protocols still work, but they must present the right certificate. Mail servers, for example, may use hostnames such as mail.example.com that the wildcard covers, provided the mail software is configured to use the certificate.
- Internal names and private addresses cannot be included in publicly trusted certificates.
- Email addresses and IP-based access need separate handling and are outside the scope of a standard website wildcard.
What to watch for with wildcards generally
Beyond the apex, a few operational points matter.
- Validation. Public wildcard certificates are normally issued after proving control of the domain through DNS. With the ACME protocol (RFC 8555) this is done by publishing a TXT record, which scripts can automate. The CA/Browser Forum baseline requirements govern what authorities may accept.
- Key sharing. The same private key usually sits on every server that uses the certificate. Limit access and rotate if you suspect exposure.
- Renewal. Put the expiry date of the wildcard in a shared calendar. One missed renewal affects every subdomain at once.
- Scope creep. Because a wildcard covers every future subdomain automatically, someone could create a subdomain you do not know about and use the same certificate on it. Keep control of your DNS and your key storage.
- Compatibility. Very old clients may not handle certain certificate features, though plain wildcard names are widely supported.
Common mistakes and how to avoid them
Teams repeat the same few errors, and most of them are easy to prevent with a short checklist.
- Testing only one hostname. A padlock on www.example.com proves nothing about example.com. Test each name that appears in links, emails, printed material and search results.
- Trusting a redirect. People assume that redirecting the apex to www removes the need for an apex name. The TLS handshake happens first, so the apex still has to be on the certificate.
- Reading the product title instead of the details. A title such as "Wildcard SSL" describes a pattern, not a complete list of names. The order summary and the issued certificate show the truth.
- Installing on some servers only. If you run several web servers or a load balancer plus a content network, every place that answers for the name needs the new certificate. Keep an inventory of where each certificate lives.
- Forgetting the renewal path. A reissue that adds the bare domain often creates a new certificate with a new expiry date. Update your reminders so the old date does not mislead you.
- Mixing environments. A staging site such as staging.example.com is covered by the wildcard, but staging.eu.example.com is not. When naming new environments, keep names to one label or plan the extra certificate.
A short pre-launch checklist helps: list all public names, confirm each appears in the certificate, install on every serving node, test from outside the network, and set an expiry reminder for at least thirty days before the date.
Questions to put to a provider
Before buying, ask: does the product include the bare domain as an additional name, can I add names after issuance, which validation methods do you support for wildcards, how is the private key delivered, and what is the reissue process? Compare answers on the SSL certificates page and keep notes so you can repeat the comparison next year.
Summary
A wildcard certificate for *.example.com covers every single-label subdomain such as www, app and api, but it does not cover the bare domain example.com unless that name is listed as an additional entry. Always read the Subject Alternative Name list, test the plain domain and www after installation, and choose between a wildcard with the apex included, a separate single-name certificate or a multi-name certificate. If you have a wide set of subdomains, whether a wildcard is worth it helps you weigh the trade-offs.
When you are ready to choose, the SSL page shows which certificate types are available and what each includes.
Frequently asked questions
Does *.example.com cover example.com?
By the matching rules, no. The wildcard replaces exactly one label in front of the domain, and the bare domain has no such label. Many certificates solve this by listing example.com as an additional name next to *.example.com.
How can I check whether my certificate includes the root domain?
Open the site in a browser, view the certificate details and read the Subject Alternative Name list. If both *.example.com and example.com appear, both are covered.
Does the wildcard cover www.example.com?
Yes. www is a single label in front of example.com, so *.example.com matches www.example.com. It does not match example.com itself.
Does a wildcard cover names with two labels such as a.b.example.com?
No. The wildcard stands for one label only. A name with two labels in front of the domain needs its own certificate or a different wildcard such as *.b.example.com.
What if my certificate lacks the root domain?
You can reissue it with the bare domain added, buy a separate single-name certificate for example.com, or switch to a multi-name certificate. Which option is best depends on how many names you manage.
References
About the author

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 certificatesKeep reading

SSL Guides
Which SSL Certificate for app.example.com and api.example.com?
App and API subdomains often grow side by side. Learn how single, wildcard and multi-name certificates differ and how to pick the one that fits your setup.
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

SSL Guides
Is a Wildcard SSL Certificate Worth It for a Site with Many Subdomains?
Whether a wildcard pays off depends on how many subdomains you run, how often they change and who manages the certificate. Here is a way to decide.
10 min read