Table of Contents
A wildcard SSL/TLS certificate can secure a domain’s matching first-level subdomains with one certificate name. For example, *.example.com can match shop.example.com and mail.example.com. It does not match the bare domain example.com or a deeper name such as mail.shop.example.com unless those names are listed separately in the certificate. This guide explains how wildcard coverage works, where it stops, and when a wildcard certificate is a practical choice.
What an SSL/TLS certificate does
SSL stands for Secure Sockets Layer, an older protocol that has been superseded by Transport Layer Security (TLS). People still commonly say “SSL certificate,” but current websites use TLS. A certificate helps a browser verify the identity of a server and establish an encrypted connection with it. Browsers indicate HTTPS connections in their interface, though the exact indicator varies.
A certificate is issued for particular hostnames. A standard certificate may list one or more names, while a wildcard certificate uses a wildcard name to match a set of subdomains. The hostname still needs to resolve to a server that is configured to present a valid certificate for it.
What is a wildcard SSL certificate?
A wildcard SSL/TLS certificate contains a name such as *.example.com, commonly in the certificate’s Subject Alternative Name (SAN) extension. The asterisk represents one complete, leftmost DNS label. It can match a hostname such as www.example.com, mail.example.com, or shop.example.com, provided the certificate is installed and configured for that host.
Wildcard matching is limited to one label. RFC 9525 specifies that the wildcard character appears as the complete leftmost label and matches only one label in the hostname. Read the RFC’s certificate name matching rules.
What does *.example.com cover?
www.example.com: covered by the wildcard namemail.example.com: covered by the wildcard nameexample.com: not covered by*.example.comalone; add the root name separately if it also needs coveragemail.shop.example.com: not covered by*.example.com, because it has an additional label
Certificate coverage does not create DNS records or configure a web server. Each hostname must point to the right service, and that service must present a certificate whose names match the hostname.
How wildcard certificates work
When a browser connects over HTTPS, it checks the certificate chain and whether a name in the certificate matches the hostname the visitor requested. The wildcard name is matched as a DNS label, not as a general-purpose “match anything” symbol. Modern certificate name checking uses names in the SAN extension; describing a wildcard simply as an asterisk in the Common Name (CN) can be misleading.
After validation, the server must be configured to present the certificate for the relevant hostnames. If the same wildcard certificate is installed across several servers, they may share the same private key, which means secure key storage and controlled access matter.
Domain validation and organisation validation
Certificate authorities offer different validation levels. Domain Validation (DV) checks control of the domain. Organisation Validation (OV) also checks the applicant organisation. Publicly trusted Extended Validation (EV) certificates do not generally allow wildcard names under the CA/Browser Forum EV Guidelines, which include a narrow exception for certain Onion domain names. Validation level describes identity checks; it does not change what a wildcard hostname matches. See the CA/Browser Forum EV Guidelines.
When to use a wildcard certificate
A wildcard certificate can simplify certificate management when you operate several first-level subdomains under one domain, such as a shop, blog, mail server, or customer portal. If you are setting up subdomains, read our guide to what a subdomain is and how to create one. It can also suit services that create new first-level subdomains regularly, provided the DNS, server configuration, issuance process, and renewal workflow can keep those hosts secure.
It may be less suitable when you need to cover unrelated domain names, nested subdomains, or systems that require separate private keys and certificate lifecycles. A wildcard certificate can reduce the number of certificates you manage, but its price and operational effort depend on the certificate provider and your setup.
Limitations and security considerations
It does not cover every subdomain depth
A certificate for *.example.com does not match mail.shop.example.com. You may need an additional wildcard for a lower-level name, an explicit SAN entry, or another certificate, depending on the names and certificate authority’s rules.
The root domain may need its own name
The wildcard name does not match example.com itself. If both the root domain and its subdomains need HTTPS, confirm that the certificate includes both example.com and *.example.com.
Protect the private key
A wildcard certificate can authenticate any matching first-level hostname where it is deployed. If one private key is copied to multiple servers, a compromise of that key can put all covered hosts using it at risk. Restrict access, protect backups, monitor renewals, and consider separate certificates and keys where that better fits your infrastructure.
Renewal and deployment still need attention
A certificate does not install itself on every server or renew itself unless your certificate management system is configured to do so. Test renewal automation and confirm that each relevant host presents the renewed certificate.
Wildcard vs multi-domain (SAN) certificates
A wildcard certificate is designed to match first-level subdomains under a domain. A multi-domain certificate uses explicit SAN entries to cover the names listed in it, which can include names from different domains. Some certificate products can combine wildcard names and explicit SAN entries, but the issuer and deployment setup determine what is supported.
If you are choosing between these options, read our detailed guide to wildcard and multi-domain (SAN) certificates. For general setup steps, see how to install an SSL certificate on your hosting account.
How to obtain a wildcard SSL certificate
- List the hostnames you need to secure, including the root domain if required.
- Choose a certificate authority and an issuance method that supports wildcard names.
- Complete the authority’s domain-control validation. For Let’s Encrypt, wildcard issuance requires the DNS-01 challenge, which uses a DNS TXT record. If you use an ACME client, check whether your DNS provider supports automated record updates. See Let’s Encrypt’s DNS-01 guidance.
- Install the certificate and private key on each server or service that needs to present it.
- Configure the hostnames and verify HTTPS for each one, including the root domain if it is listed.
- Set up renewal and deployment checks so the certificate stays current.
Issuance steps vary by certificate authority and client. Some workflows use a Certificate Signing Request (CSR); ACME clients can handle request and validation steps as part of an automated process. Let’s Encrypt supports wildcard certificates through DNS-01 validation, not HTTP-01 validation. For more on its wildcard and SAN support, see the Let’s Encrypt FAQ. You can also read our introduction to Let’s Encrypt and how to use it.
Hosting with SSL
Some hosting plans include automated SSL for eligible sites. That does not by itself confirm wildcard certificate support. Check with the provider if your setup specifically requires a wildcard certificate or needs coverage for several subdomains.

Shared hosting with automated SSL
Compare hosting plans that include free automated SSL. Confirm with support whether your setup requires wildcard coverage.
Final thoughts
A wildcard SSL/TLS certificate can make it easier to secure multiple first-level subdomains under one domain. It does not cover the root domain or deeper subdomains by default, and it still requires correct DNS, server configuration, private-key protection, and renewal. Map the exact hostnames you need first, then choose a certificate and deployment approach that covers them all.















