How to get a free wildcard SSL certificate (*.example.com)
On this page
A wildcard certificate covers a domain and every subdomain directly under it: example.com, blog.example.com, shop.example.com and any you create later. It is free and renews itself, like the normal certificates.
Before you start
- The domain must use this server's nameservers. The certificate authority checks a wildcard through a DNS record, which the server adds to the domain's zone here. A domain whose DNS is at another provider (including Cloudflare's nameservers) cannot get a wildcard here.
- Wildcards are available for the main domain and addon domains.
Steps
- Log in to the control panel (
https://your-server:2083). - Open SSL/TLS in the menu (section Domains).
- Click Add wildcard next to the domain.
- The message Requesting the wildcard certificate. This takes a minute or two. appears.
- When it is ready, the domain shows a
*.example.combadge and the issuerLet's Encrypt (wildcard). Its subdomains use the same certificate.
What it covers
example.comand*.example.com(one level:blog.example.com, but nota.blog.example.com).- For the main domain: also each alias and its subdomains, if the alias uses this server's nameservers too.
mail.example.com, so mail programs see a valid certificate.
Go back to separate certificates
Click Remove wildcard and confirm Stop the wildcard certificate? Each subdomain gets its own certificate again. Each website then gets its own normal certificate.
Good to know
- Subdomains with their own installed certificate keep it while it is valid.
- Renewal works the same way, through the DNS record, so the domain must keep using this server's nameservers.
- If the request fails, the reason appears under the domain, for example
A wildcard certificate needs example.com to use this server's nameservers (ns1.example.net, ns2.example.net).
Common questions
Do I need a wildcard for a few subdomains?
No. Every subdomain gets its own free certificate automatically. A wildcard is useful when you have many subdomains or create them often.
Can I get a wildcard while using Cloudflare?
Not from this server, because Cloudflare answers the domain's DNS then. Cloudflare's proxy has its own certificate for visitors; this server's normal certificates keep working behind it.
Thank you — this helps us improve the article.
Still stuck?
Ask the AI about your exact situation — it answers from this knowledge base — or contact us.
Related articles
- Free SSL certificates (AutoSSL): how they work
Every website gets a free Let's Encrypt certificate automatically. Learn when it is issued, which names it covers, how renewal works and what it needs.
- SSL certificate not issued (status Failed): causes and fixes
The free SSL certificate shows Failed on the SSL/TLS page. Find the cause from the error shown (CAA, 404 challenge, timeout, rate limit, wildcard) and fix it.
- How to point a domain to your hosting (nameservers or A record)
Connect a domain to your hosting by changing its nameservers at the registrar, or by adding an A record at another DNS provider, and check it.
- How to create a subdomain (blog.example.com)
Create a subdomain such as blog.example.com with its own folder in the control panel, and learn how its DNS record and SSL certificate are set up.