Azure Front Door SSL Certificate Mismatch with IIS Backend – 502 Error

Avinash 25 Reputation points
2025-03-06T09:17:34.8966667+00:00

A customer has an application hosted on a VM running IIS, and it is using Azure Front Door (AFD). The AFD configuration uses the public IP of the VM as the host origin, with the domain name rhino.micology.com configured in DNS and pointing to the AFD endpoint. The AFD host header rhino.micology.com is used in the origin group to route traffic to the VM, where the SSL certificate is implemented.

we have a new wild card certificate; SSL validation is enabled in AFD, along with health probes. However, when attempting to browse the application, a 502 error occurs, and the AFD logs indicate an SSL certificate mismatch error. Testing with a subdomain pointing to the VM and configuring it in AFD works successfully. A solution is needed for the SSL certificate mismatch issue with the primary domain.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
776 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.