Custom hostname for apex domains

Imaging having two domains like domain.com and apex.com and both of them use Cloudflare as DNS provider. I also have my server with an ip like this: 11.22.33.44

Now I go to domain.com and create a custom host name for apex.com.

As you know, custom hostname asks me to use CNAME record on apex.com to be sure the terrific will be handled by domain.com. Other DNS providers does not allow me to use CNAME for apex domain (root of the domain) but Cloudflare allows me and eventually it does CNAME Flattening.

So I create this on apex.com:
CNAME : apex.comdomain.com

And this on domain.com:
A record : domain.com → 11.22.33.44

My question is, if I use CNAME record for apex.com on Cloudflare, will the packets be secured using certification issued in domain.com custom hostnames?

I am asking because when I do nslookup apex.com I get A records pointing to my own servers 11.22.33.44, so I am not sure whether requests will be served by Cloudflare and TLS works or not!

Thank you in advance

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.