Domain CNAME pointing to Zero trust tunnel gives error: This site can’t provide a secure connection

Hello, I am trying to redirect a domain to my Cloudflare tunnel's domain via a CNAME record. I have a Zero Trust tunnel running on localhost. On a different domain I added a CNAME record that point to my tunnel's URL, but when I try to access it I get the error: This site can’t provide a secure connection error. The situation: my localhost is accessible trough sub.example.com and it works fine. other.domain.com points to sub.example.com. Accessing other.domain.com should redirect me to sub.example.com (where my localhost is). I have an Universal SSL certificate on the domain and the SSL/TLS encryption mode is Full (strict). Summarized: Accessing sub.example.com works fine. This is the domain configured on Cloudflare. Another domain other.domain.com points to sub.example.com, but it gives the mentioned error. Both domains are purchased from Namecheap, but and the main one uses Cloudflare's nameservers. I would really appreciate any help, because at this point I have no idea what is causing this to happen. I believe it has something to do with the SSL certificate, but I have a Universal SLL certificate on the whole domain and its subdomains
No description
2 Replies
Core
CoreOP4mo ago
No description
Core
CoreOP4mo ago
Well, the purpose of my app is to actually issue SSL certificates for any domain pointing to example.com 🥲 Thank you, yes that might solve this issue. But I was trying to implement that logic in my application. Which means that my app would issue the SSL certificates via Let's Encrypt, because I also do domain ownership verification. Cloudflare SaaS also has hostname limitations Is this because Cloudflare has its own reverse proxy, and I would need to implement my own in this situation? Thank you so much for helping me! Might it not work if I disabled SSL certificate handling on Cloudflare completely? And I would manage the certificates on my side Got it, thanks
Want results from more Discord servers?
Add your server