What Is a Wildcard SSL Certificate?
A wildcard SSL certificate uses an asterisk in the hostname, for example *.example.com. One certificate then covers www.example.com, app.example.com, mail.example.com and any other name at that level.
Wildcard SSL certificate: what it covers
| Hostname | Covered by *.example.com? |
|---|---|
| www.example.com | Yes |
| shop.example.com | Yes |
| example.com (the apex) | No, add it as a second name |
| a.b.example.com | No, only one level |
| example.org | No, different domain |
Most CAs add both *.example.com and example.com to one wildcard order, so the bare domain works too. Confirm that in your order summary.
How validation works
Wildcards need proof that you control the whole domain. For automated CAs that means the DNS challenge: you publish a TXT record at _acme-challenge.example.com. The HTTP file challenge cannot be used for wildcards.
sudo certbot certonly --manual --preferred-challenges dns \
-d "*.example.com" -d example.com
The manual method shown above works but does not renew by itself. For automation, use a DNS plugin for your DNS provider or an ACME client that supports your provider's API. Check the current client docs for supported providers.
When a wildcard makes sense
- You run many subdomains and add new ones often.
- You host a multi-tenant app where each customer gets
name.example.com. - You want to avoid reissuing a certificate every time a subdomain appears.
The risks
One certificate means one private key shared across every server that uses it. If that key leaks from a low-security host, an attacker can impersonate any subdomain. Reduce the risk:
- Limit which servers hold the key and protect it with strict file permissions.
- Use separate certificates for sensitive services such as login or payments.
- Rotate the key at renewal instead of reusing it.
- Use a short lifetime and automated renewal.
You can confirm a certificate and key belong together with our key pair matcher guide.
Wildcard versus multi-domain certificates
A wildcard covers unknown future subdomains of one domain. A multi-domain certificate lists a fixed set of names, which can span different domains. If you have a handful of known names, listing them is more precise and limits exposure. If you have many dynamic names, use a wildcard. Our agency guide, Best SSL for Agencies Managing Many Sites, shows how this plays out across client sites.
Wildcard SSL certificate: where to get one free
Some free CAs issue wildcard certificates through ACME with the DNS challenge. Compare providers in our free certificate comparison. Rate limits and supported features change, so read the provider's current docs.
Install and check
- Issue the certificate with both the wildcard and apex names.
- Install the full chain, not only the leaf.
- Reload the web server and test several subdomains.
- Confirm that every name in the certificate matches the hostname the visitor uses.
If you proxy through a CDN, see Cloudflare Origin CA versus Let's Encrypt for how certificates at the edge and at the origin interact.
Common mistakes
- Expecting
*.example.comto covera.b.example.com. - Forgetting the apex domain.
- Trying the HTTP challenge for a wildcard order.
- Copying the private key around by email or chat.
Renewal and automation
Wildcard certificates from automated CAs are short-lived, so manual DNS edits every few weeks will not last. Plan the automation before you issue:
- Use an ACME client with a plugin or API integration for your DNS host.
- Create an API token limited to editing TXT records in one zone, not a full account key.
- Test renewal with a dry run and set up an alert if it fails.
- Reload the web server after each renewal so the new file is served.
Delegating the challenge
If you do not want to give your main DNS zone to a tool, you can add a CNAME from _acme-challenge.example.com to a small separate zone that the tool controls. The CA follows the CNAME and checks the TXT record there. This keeps the blast radius small.
Checking the result
After issuing, open a few subdomains and confirm that the certificate details list *.example.com and example.com. A mismatch usually means the apex was not included in the order.
Related reading: the multi-domain certificate, getting a free wildcard certificate and the SAN certificate.
Frequently Asked Questions
Does a wildcard cover the bare domain?
Only if the order includes it. Most CAs add both *.example.com and example.com, but check the certificate's SAN list before you rely on it.
Does it cover more than one level?
No. *.example.com covers app.example.com but not a.b.example.com. Each level needs its own name in the certificate.
How is a wildcard validated?
With a DNS-01 challenge, because the CA has to prove control of the whole zone rather than a single host.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.