How to Get a Free Wildcard SSL Certificate
A wildcard certificate covers one domain and all of its first-level subdomains with a single certificate, for example *.example.com secures www, app, api and blog. Free wildcard certificates are available from Let's Encrypt and from browser-based tools. They need DNS validation, which is the main hurdle.
What a free wildcard SSL certificate covers
| Name | Covered by *.example.com? |
|---|---|
| www.example.com | Yes |
| app.example.com | Yes |
| example.com (the apex) | No, add it as a second name |
| a.b.example.com | No, only one level deep |
| example.org | No, different domain |
Request example.com and *.example.com together so the apex is covered too.
Why DNS validation is required
CAs will not issue a wildcard on the strength of a file placed on one web server, since the certificate covers names that server may not control. You prove control of the whole domain by publishing a TXT record at _acme-challenge.example.com.
Method A: Browser-based issuance
- Open TryFreeSSL and enter
example.comand*.example.com. - Choose DNS validation. The tool shows one or two TXT values.
- Add them in your DNS panel at
_acme-challenge. Keep both values. - Check that they resolve with the DNS lookup tool.
- Click verify, then download the certificate, private key and chain.
Method B: certbot on a server
sudo certbot certonly --manual --preferred-challenges dns \
-d example.com -d '*.example.com'
Manual mode works but cannot renew by itself. For automatic renewal, use a DNS plugin for your provider (Cloudflare, Route 53, DigitalOcean and many others) with an API token limited to DNS edits on that zone.
sudo certbot certonly --dns-cloudflare \
--dns-cloudflare-credentials ~/.secrets/cloudflare.ini \
-d example.com -d '*.example.com'
chmod 600 ~/.secrets/cloudflare.ini
Install it
# Nginx
ssl_certificate /etc/ssl/example.com/fullchain.pem;
ssl_certificate_key /etc/ssl/example.com/privkey.pem;
In cPanel, use SSL/TLS, Manage SSL Sites, and paste in the certificate, key and chain. Then check the live result with the Live SSL Checker and confirm that several subdomains show the same certificate.
Free wildcard SSL certificate trade-offs
- One key, many hosts. If the private key leaks from one server, every subdomain is affected. Restrict who can read it.
- Subdomain takeover. A forgotten subdomain that points to a third-party service can still present your wildcard certificate if you installed it there.
- Not always necessary. If you only have two or three subdomains, separate certificates give better isolation.
Renewal
Free wildcard certificates last 90 days today, 64 from 10 February 2027 and 45 from 16 February 2028 (Let's Encrypt announcement). Automate renewal if you can. If you do it by hand, start when a third of the lifetime is left, which is 30 days on a 90-day certificate and about 21 on a 64-day one, and repeat the TXT step.
Related reading: free SSL for a subdomain and DNS-01 validation with Cloudflare.
Frequently Asked Questions
Is a free wildcard as secure as a paid one?
The encryption is the same. Paid ones may add support or a warranty.
Does a wildcard work with Cloudflare?
Cloudflare's Universal SSL covers the zone and first-level subdomains on the edge. You still need an origin certificate for the connection to your server.
Can I use it on different servers?
Yes, by copying the certificate and key, but each copy raises the risk, so limit it.
Why did validation fail?
See our guide on DNS validation errors.
✅ 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.