Network security

Wildcard SSL Certificate: What It Is, What It Covers & When to Use One

One wildcard certificate can secure www, api, shop and every future first-level subdomain, but it does not cover nested subdomains or other domains.

Cysoro Security TeamPublished · 6 min read
NETWORK SECURITY Wildcard SSL One cert, every subdomain. *.example.comwww • api • shop • app+ any future subdomain
Quick answer

A wildcard SSL certificate is a TLS certificate issued for a name like *.example.com, so one certificate secures every first-level subdomain, including names created later. It does not cover nested subdomains such as a.b.example.com, or the bare domain unless that name is also listed, and a leaked private key affects every subdomain it protects.

Key takeaways

  • *.example.com covers www, api and shop, plus future first-level subdomains.
  • It does not cover nested subdomains, other domains, or the bare domain on its own.
  • Let's Encrypt offers free wildcards with DNS-01 validation; paid wildcards add OV and longer validity.

One certificate, every subdomain: that is the promise of a wildcard SSL certificate. It is a useful shortcut for teams with many subdomains, but it has sharp edges — nested subdomains are not covered, and one private key protects them all.

What is a wildcard SSL certificate?

A wildcard SSL certificate is a TLS certificate issued for a name like *.example.com. The asterisk stands for any single first-level subdomain, so one certificate secures www.example.com, api.example.com, shop.example.com and any subdomain you create later.

Technically it is an ordinary X.509 server certificate. The only difference is one entry in its Subject Alternative Name (SAN) extension: a DNS name whose leftmost label is a single asterisk. Browsers match it using the rules in RFC 9525, the current standard for TLS service identity.

What *.example.com covers1wwwcovered2apicovered3shopcovered4new namescovered5nestednot coveredIllustration by Cysoro.
What *.example.com covers. Illustration by Cysoro.

What does a wildcard certificate cover?

A certificate for *.example.com covers every first-level subdomain, including names that did not exist when it was issued. That automatic coverage is its main advantage over listing each subdomain separately.

AddressCovered by *.example.com?Why
www.example.comYesOne label matches the asterisk
api.example.comYesOne label matches the asterisk
tenant-4821.example.comYesAny first-level name, even a future one
example.comNot by the wildcard aloneThe asterisk must match one label; add the bare domain as a second SAN
a.b.example.comNoTwo labels; the asterisk matches exactly one
other-example.comNoA wildcard covers one domain only

Patterns such as *.*.example.com, api*.example.com or *.com are not issued by publicly trusted certificate authorities, and wildcards cannot be issued for IP addresses.

How does a wildcard certificate work?

When a browser connects, it checks the certificate chain, the expiry date and whether the hostname matches a name in the SAN list. The Common Name field is legacy: modern browsers ignore it, so a certificate with CN=*.example.com but no matching SAN will fail.

You can inspect a live certificate with OpenSSL. The command below shows the subject, SAN list and expiry date for a site, and a wildcard shows DNS:*.example.com in the SAN list.

openssl s_client -connect example.com:443 -servername example.com then pipe the output to openssl x509 -noout -subject -ext subjectAltName -enddate. If the name does not match, the browser shows a name-mismatch error.

Our free SSL checker does the same check in a browser, including expiry and chain issues.

Wildcard vs SAN vs single-domain: what is the difference?

A wildcard is not a different kind of encryption. The real choice is how many names one certificate covers and how you list them. A single-domain certificate protects one name, a wildcard protects a whole level of subdomains, and a SAN certificate lists specific names, which can span several domains.

FeatureSingle-domainWildcardMulti-domain (SAN)
Names coveredOneAll first-level subdomains of one domainListed names, possibly several domains
New subdomainNeeds a new certificateCovered automaticallyAdd it and reissue
Another brand domainNeeds a new certificateNot coveredAdd it as a SAN and reissue
Key risk if leakedOne siteEvery subdomain on that wildcardEvery listed name

For a wider view of email protection, see our guide to what DMARC is.

For domain and device basics, use the small business cybersecurity checklist.

Coverage by certificate typeSingle-domain1 nameWildcardUnlimited 1st levelSANListed names
Coverage by certificate type. Illustration by Cysoro.

How do I get a wildcard SSL certificate?

There are two paths: free and automated through ACME, or bought from a certificate authority or reseller with a certificate signing request (CSR). Both paths validate that you control the domain.

  1. Choose a certificate authority. Let's Encrypt is free; commercial authorities offer OV wildcards, longer validity and support.
  2. Request *.example.com, plus example.com if you need the bare domain. Request both names in one certificate.
  3. Complete domain validation. For wildcards, Let's Encrypt requires the DNS-01 challenge: add a TXT record to your DNS. Commercial authorities may also accept email validation.
  4. Install the certificate and private key on every server that serves those subdomains, and set up renewal before it expires.
  5. Test every subdomain with an SSL checker and confirm the SAN list includes the names you expect.

Let's Encrypt certificates are free and valid for 90 days, with renewal recommended every 60 days, according to Let's Encrypt FAQ. Automation matters: a 90-day certificate that is not renewed automatically will expire.

Are wildcard certificates DV or OV?

Most wildcard certificates are Domain Validated (DV): the authority checks only that you control the domain, which is fast and can be automated. Organization Validated (OV) wildcards also check the organization, take longer and cost more, and show the organization in the certificate details.

Let's Encrypt issues DV certificates only and does not offer OV or EV certificates. If you need OV, buy from a commercial authority. Either way, the encryption in transit is the same; validation changes how much identity was checked, not the cipher.

What are the risks of a wildcard certificate?

The main risk is the shared private key. One certificate and one private key protect many subdomains, so if one subdomain server is breached and the key is stolen, every subdomain using that wildcard is at risk until you replace it.

Limit the blast radiusDo not share one wildcard across teams, trust levels or payment systems that should be isolated. Use separate certificates for high-risk subdomains.

Other limits: a wildcard covers one level only, it cannot cover IP addresses, and its public listing in Certificate Transparency logs reveals the wildcard pattern, though not the individual subdomain names you create later.

When should I use a wildcard certificate?

Use a wildcard when you have many first-level subdomains under one domain, especially when new ones appear often, such as customer subdomains, staging environments or regional sites. It cuts renewal work and avoids a scramble every time a team launches a subdomain.

Do not use one when subdomains have very different trust levels, are run by different teams, or handle payments separately. In those cases, separate certificates limit the damage if one key leaks. If you only have two or three stable subdomains, individual or SAN certificates may be simpler and safer.

How long is a wildcard certificate valid?

Validity depends on the issuer. Let's Encrypt certificates are valid for 90 days, with renewal recommended every 60 days, according to Let's Encrypt FAQ. Commercial certificates are typically valid for one year, because public trust rules limit publicly trusted TLS certificates to a maximum of 398 days.

Short validity is not a drawback if renewal is automated. ACME clients such as Certbot can renew a Let's Encrypt wildcard automatically, provided the DNS-01 challenge still works. A one-year commercial certificate that is renewed by hand is more likely to expire unnoticed than a 90-day certificate that renews itself.

Set an expiry alert at 30 days and again at 7 days, and test renewal in staging before the live certificate expires. Our free SSL checker shows expiry dates, so you can confirm the new certificate is actually serving.

What mistakes do people make with wildcard certificates?

The most common mistake is assuming the wildcard covers the bare domain or nested subdomains. It covers neither on its own, so example.com and a.b.example.com need their own entries or certificates. Test every name you serve, not just the main site.

Another mistake is copying one private key to many servers and never rotating it. If one server is compromised, every subdomain sharing that key is at risk. Keep the key on as few servers as possible, restrict who can read it, and replace it promptly after any incident.

Finally, do not forget renewal automation for DNS-01 challenges. The DNS record used for validation must be updated on each renewal, so use a DNS provider plugin or API rather than a manual record that someone forgets to update.

For coverage rules in plain language, see the Portnox guide to wildcard certificates, which explains the one-level limit and the shared private key risk.

The bottom line

A wildcard certificate is a coverage choice, not a security upgrade: it secures every first-level subdomain under one domain with a single certificate and key. Use it when subdomains multiply, protect the private key carefully, and automate renewal.

Check your own certificate today with the free SSL checker, and set up expiry alerts so a missed renewal never takes your subdomains offline.

Frequently asked questions

What is a wildcard SSL certificate?

A wildcard SSL certificate is a TLS certificate for a name like *.example.com, where the asterisk stands for any one first-level subdomain. One certificate and one private key secure www, api, shop and any subdomain you add later.

Does a wildcard certificate cover the root domain?

Not by itself. The wildcard *.example.com does not match example.com, because the asterisk must match one label. Most commercial certificates add example.com as a second name, and with Let's Encrypt you request both names yourself.

Does a wildcard certificate cover sub-subdomains?

No. A certificate for *.example.com covers blog.example.com but not news.blog.example.com. To cover a nested level you need a separate wildcard for that level, such as *.blog.example.com.

Is a wildcard SSL certificate secure?

Yes, the encryption is the same as any modern TLS certificate. The risk is key management: one private key protects many subdomains, so if it leaks, every subdomain using it is at risk until you replace the certificate.

How much does a wildcard SSL certificate cost?

Let's Encrypt offers free wildcard certificates with DNS-01 validation, valid for 90 days and renewed automatically. Paid DV wildcards typically cost tens to hundreds of dollars a year, and OV wildcards cost more.

What is the difference between wildcard and SAN certificates?

A wildcard covers all first-level subdomains of one domain automatically. A SAN certificate lists specific names, which can include several different domains, but you must reissue it to add a name.

Can I get a free wildcard SSL certificate?

Yes, from Let's Encrypt. Wildcard issuance must use the DNS-01 challenge, which proves control of the domain by adding a DNS record, and the certificate is valid for 90 days.

When should I not use a wildcard certificate?

Avoid a single wildcard when subdomains have very different trust levels, are run by different teams, or handle payments separately. In those cases, separate certificates limit the damage if one private key leaks.

Sources

  1. Let's Encrypt — FAQ (wildcard certificates, DNS-01, 90-day validity)
  2. Enterno — Wildcard SSL Certificate: Coverage, Cost and Free Setup
  3. Portnox — What Is a Wildcard SSL Certificate?
  4. ZeroSSL — What Is a Wildcard SSL Certificate?
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Let's Encrypt FAQ, RFC 9525 hostname-matching rules and CA/Browser Forum wildcard definitions via the sources listed.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free