Account

Glossary / wildcard certificate

What is a wildcard certificate

A wildcard certificate is an SSL certificate that covers all subdomains of a domain on one level at once. The domain itself is not covered by the wildcard and is usually added to the same certificate as a separate name. One certificate for *.example.com replaces separate certificates for shop, blog and mail. It is convenient when a site has many subdomains or adds new ones often.

Check your site

>

The name field of the certificate holds an asterisk: *.example.com. The asterisk matches any single subdomain name, so www.example.com, shop.example.com and api.example.com all fit the same certificate.

The asterisk covers only one level. *.example.com secures shop.example.com but not app.shop.example.com, and deeper levels need their own wildcard or a multi-domain certificate.

Wildcards are usually issued through DNS validation: you add a special TXT record to the domain's zone. Let's Encrypt, which is free, issues wildcards too, but only through DNS validation.

Because one certificate serves every subdomain, a leak of its private key exposes all of them at once.

Example

*.example.com

Common mistakes

Related terms