How to Get Free SSL for a Subdomain
app.example.com, or use a wildcard if you have many. Point DNS at the right server first, then validate and install.Pick the right free SSL certificate for a subdomain
| Situation | Certificate | Validation |
|---|---|---|
| One or two subdomains | Single name or SAN | HTTP-01 or DNS-01 |
| Many or changing subdomains | Wildcard *.example.com | DNS-01 only |
| Subdomain on another server | Its own certificate | Either, on that server |
A certificate for example.com does not cover app.example.com, and a wildcard covers only one level.
Step by step
- Create a DNS record for the subdomain and wait for it to resolve. Confirm with the DNS Lookup Tool.
- Request the certificate for that exact name at TryFreeSSL or with an ACME client.
- Complete validation. For HTTP-01 the file must be reachable on port 80 for that subdomain.
- Install the certificate, key and chain for that virtual host.
- Redirect HTTP to HTTPS, and test.
Server snippets for free SSL on a subdomain
server {
listen 443 ssl;
server_name app.example.com;
ssl_certificate /etc/ssl/app/fullchain.pem;
ssl_certificate_key /etc/ssl/app/private.key;
}
server {
listen 80;
server_name app.example.com;
return 301 https://app.example.com$request_uri;
}The HTTPS Redirect Generator can produce the redirect part for other servers.
Validation problems
| Error | Cause | Fix |
|---|---|---|
| DNS problem, NXDOMAIN | Record missing or not propagated | Create it and wait |
| Connection refused or timeout | Port 80 closed or wrong server | Open the port, point DNS to the right host |
| Unauthorized, wrong content | Another site answers for that name | Fix the virtual host so the challenge file is served |
| CAA forbids issuance | CAA record excludes the CA | Allow letsencrypt.org in CAA |
Hosting panels
cPanel, Plesk and similar panels often issue certificates for subdomains automatically after you create them. If that has not happened, run the panel's SSL or AutoSSL tool. For SaaS platforms with custom subdomains, follow their DNS instructions and let them issue the certificate.
Verify
Check the subdomain on the Live SSL Checker and confirm the certificate lists that exact name. Test the redirect with curl and review headers using the Security Headers Checker.
Wildcard certificates and subdomains
A wildcard certificate for *.example.com covers one label: app.example.com is included, but eu.app.example.com is not. Wildcards also need DNS validation, because the CA cannot fetch an HTTP challenge for a name that may not resolve yet. If you run many subdomains on one server, a wildcard saves repeated issuance. If each subdomain belongs to a different team or server, separate certificates keep one leaked key from exposing the others.
Related reading: multi-domain certificates and SSL for www and non-www.
Frequently Asked Questions
Does my main domain certificate cover subdomains?
Only if the certificate includes them, either by name or with a wildcard.
Is a subdomain certificate free?
Yes. Let's Encrypt does not charge per name.
Do I need a wildcard?
Only if you run many subdomains or add them often. Otherwise individual names are simpler.
Can two subdomains share one certificate?
Yes, using a SAN certificate that lists both names.
Does my main domain certificate cover subdomains?
Only if the certificate includes them, either by name or with a wildcard.
Is a subdomain certificate free?
Yes. Let's Encrypt does not charge per name.
Do I need a wildcard?
Only if you run many subdomains or add them often. Otherwise individual names are simpler.
Can two subdomains share one certificate?
Yes, using a SAN certificate that lists both names.
Why does validation fail for a subdomain that loads in my browser?
The name may resolve to a different server than the one holding the challenge, or a redirect may be catching the validation path. Test port 80 directly.
✅ 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.