An Azure service that provides a cloud content delivery network with threat protection.
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:
- 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).
- 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.
- If using a self-signed certificate is necessary, you can disable the
EnforceCertificateNameChecksetting. In the Azure portal, navigate to your Azure Front Door profile, and toggle this setting off under the origin settings. - 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.