facing the issue with Azure front door getting 502 error (selfsigned certificate error)

Joshua Moniz 0 Reputation points
2025-08-20T16:52:32.51+00:00

I have deployed a virtual machine in the UAE North (Region 1) with two load balancers: one regional and one global. I am attempting to integrate these with Azure Front Door. After verifying the domains, I obtained an endpoint. However, when accessing the endpoint or domain name, I encounter a 502 error with the following details:

Error Info: OriginCertificateSelfSigned x-azure-ref ID: 20250820T163509Z-16cfbd67955ztgr8hC1MAAdyaw000000021g000000003hz2

Azure Front Door
Azure Front Door

An Azure service that provides a cloud content delivery network with threat protection.


1 answer

Sort by: Most helpful
  1. Anonymous
    2025-08-20T22:56:15.7833333+00:00

    Hello Joshua Moniz

    We understood that you are facing 502 error when trying to access your Azure Front Door endpoint, specifically related to a self-signed certificate.

    Azure Front Door requires that the origin server presents a valid SSL certificate signed by a trusted Certificate Authority (CA). If the origin uses a self-signed certificate, Front Door cannot validate it, resulting in the OriginCertificateSelfSigned error.

    Kindly verify the below details and confirm:

    1. Ensure that the certificate being used on your backend matches the fully qualified domain name (FQDN) configured in Azure Front Door. If you're using a self-signed certificate, consider switching to one issued by a trusted Certificate Authority (CA).
    2. Change the host header in Azure Front Door to use the domain name instead of the IP address. This ensures proper SNI (Server Name Indication) handling during TLS handshake.
    3. If using a self-signed certificate is necessary, you can disable the EnforceCertificateNameCheck setting. In the Azure portal, navigate to your Azure Front Door profile, and toggle this setting off under the origin settings.
    4. Make sure that your Azure Front Door routing rules are correctly set up to point to the right backend, and that you've added a routing rule for your custom domain if needed.

    I hope it helps! Please let us know do you have any further queries.

    Please do not forget to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    0 comments No comments

Your answer

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