Cert error in root url without www for stactic website on azure cdn

Arun Rana 6 Reputation points
2021-10-13T05:00:58.293+00:00

Hello

I have a static website on Azure CDN, I have mapped custom domains like "https://www.abc.com" and used inbuild CDN SSL and it's working fine.

but my root domain have cert error without "https://abc.com"

I have tried to use my own wildcard certificate, that was also not worked.

After that, I have added a root custom domain in azure CDN like abc.com by a workaround in DNS setting still it's not working

is there any way to resolve this?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
599 questions
Azure Content Delivery Network
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,937 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 23,031 Reputation points Microsoft Employee
    2021-10-14T22:49:52.38+00:00

    Hello @Arun Rana , Thank you for reaching out and apologies for the delay. As per my understanding of the issue, any request to "https://www.abc.com" resolves fine but when the request is sent on your root domain "https://abc.com" there TLS Cert error. Please correct me if my understanding is wrong.

    You can overcome this issue by mapping your root domain to your CDN profile using CNAME flattening or DNS chasing. A mechanism where the DNS provider recursively resolves the CNAME entry until it hits an IP address. Please go through this documentation for additional details regarding implementation using Azure DNS. If you are not using Azure DNS, please check if your DNS provider supports CNAME flattening functionality.

    I hope this helps. Please let me know if you have ay additional questions I will be glad to continue with our discussion. Thank you!