SSL/TLS not working on subdomain

Please note, this tutorial post contains links to external sites. I am not endorsing any external links.

This tutorial post covers the first steps you should take if SSL is working on your main domain, but not on a subdomain.

1. Is there a DNS record for it?
Check the DNS app in your Cloudflare dashboard to see if there is a DNS record there for that subdomain.

2. Check that the DNS record is working correctly
You can use a tool such as https://dnschecker.org, enter the subdomain.domain.com that should be working and check that DNS records are found for it.

3. Check that the subdomain is not too deep
Cloudflare universal certs cover yourdomain.com and *.yourdomain.com, this means they can cover sub.domain.com, but can’t cover www.sub.domain.com or sub.sub.domain.com. If you need a subdomain that isn’t covered by the universal cert, you will need to purchase a dedicated certificate.
There is more information on this at Subdomain too deep

4. Check that the DNS record is set to :orange:
In the DNS app in your Cloudflare dashboard, check that the DNS record for your subdomain is set to :orange:, not :grey:.

5. Check that HTTPS doesn’t work
If you manually enter https://sub.domain.com, does it load with the Cloudflare certificate? If so, you are probably not forcing HTTPS, enable ‘Always use HTTPS’ in the SSL/TLS app of your Cloudflare dashboard.

6. Do you see a certificate from your server?
If you see a cert from your server rather than from Cloudflare, you may be bypassing CF and connecting straight to the server. You can also check for Cloudflare headers in dev tools. If you are not going through Cloudflare, this may be a local caching issue.


If you still need further help, please post the outcomes of these steps and your domain and subdomain and the community can try and help.



Tutorial Reference: CT-10

Reviewed: 07/21

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here. If there is a tutorial you would like to see, you can request one here.

If you would like to provide any feedback on this tutorial, please post in the #Meta category, tag your post #TutorialFeedback and let us know the Tutorial Reference above.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community from people in the know that may help you with your issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting


6 Likes
Subdomain https:// not working
SSL does not work on my subdomain!
Can't get ssl certificate for subdomain
Community Tutorials
Troubleshooting SSL/TLS issues
How to enable Cloudflare for a subdomain?
Www subdomain works on https but server subdomain doesn't
How to enable cloudflare for all page site
Add a subdomain to know how to own the parent domain?
SSL - CloudFlare
SSL Certificate is not working Sub Domain
Ssl error for my subdomains
Turning on cloud flare proxy
WP Multisite subdomain dashboard and site not accessible
SSL Error with www.subdomain.domain.com
The ssl certificate on subdomains stopped working
Random 520 error... the error go away when bypassing cloudflare
Will changing my DNS from GoDaddy to Cloudflare affect subdomains
Website closed connection
Subdomain SSL Issue on Cloudflare Partner hosted website (Hostinger)
My subdomain stopped working since I moved my name servers to coudflare, canyone advise on how to fix this
Cloudflare SSL not Active without www
SOA DNS Issue
How to get Cloudflare to work with third level domain
Can't get ssl certificate for subdomain
Ssl para subdomínio
SSL not working on my subdomain
Lock pad appears and goes
Only naked domain has ssl encryption
Getting 520 Error when I edit a large post. Service provider said ask cloudflare team
Shopify - I Need To Disconnect My Shop. site from Shopify
Convert Subdomain CNAME Setup to Subdomain Full Setup
Blog.facilsistemas.com.br
Blog.facilsistemas.com.br
Sub Domain Not working with SSL
SSL Certificate from Let's Encrpt
Trying to redirect my domain to subdomain & add https to subdomain
My subdomain is giving 404 error
Domain and Subdomain Down
Aether Addic