I have my site working fine, but I’m curious about something.
My site uses an Azure app service so that it is accessible with a url like https://myappname.azurewebsites.net. I also have a custom domain set up in azure for myappname.com, but no SSL for that domain.
So, I initially set up the DNS in CloudFlare with a CNAME record for the root domain to point to myappname.azurewebsites.net, and I set the SSL to “Full (strict)” and it worked. This suggests that CloudFlare was accessing the origin server with https://myappname.com, and then successfully validating the SSL certificate. But the SSL certificate didn’t match the domain name, so my question is, was it getting the domain (myappname.azurewebsites.net) from the CNAME record and validating the SSL certificate against that domain?
I changed the CNAME record to an A record pointing to the IP address. When I made that change, I had to change the SSL validation to “Full” in order for it to work. I’m wondering if maybe the CNAME setup was better because it allowed me to use the “Full (strict)” setup. Any thoughts on that?