Hi Joe O ,
Thanks for using Azure. Apologies for the delay in the response.
You can use a free Azure SSL certificate with Azure Front Door to redirect HTTPS traffic. To do this, you will need to create a Front Door with an existing Web App resource and then add the certificate to the Front Door using the Azure portal. You can then create a routing rule to redirect HTTP traffic to HTTPS.
To use a free Azure SSL certificate with Azure Front Door for a WordPress site hosted on Azure, you will need to follow these steps in the Azure Portal:
- Select Create a resource found on the upper left-hand corner of the Azure portal.
- Search for Front Door and CDN profiles using the search bar and once you find the resource type, select Create.
- Select Explore other offerings, then select Azure Front Door (classic). Select Continue to begin configuring the profile.
- Choose a subscription and then either use an existing resource group or create a new one. Select Next to enter the configuration tab.
- The configuration for Front Door happens in three steps - adding a default frontend host, adding backends in a backend pool and then creating routing rules to map the routing behavior for frontend host. Select the '+' icon on the Frontend hosts to create a frontend host.
- Enter a globally unique name for your default frontend host for your Front Door. Select Add to continue to the next step.
- On the Route Details section, set the Route Type to Forward. Ensure that the right backend pool gets selected and the Forwarding Protocol is set to HTTPS only.
- Select Add to save the routing rule for request forwarding.
- Select Review + create and then Create, to create your Front Door profile. Go to the resource once created.
Once you have created the Front Door, you can then add the SSL certificate to it by following these steps:
- In the Azure portal, navigate to your Front Door resource.
- Select the Custom domains tab and then select Add custom domain.
- Enter the domain name for your WordPress site and select Add.
- Select the domain name you just added and then select the TLS/SSL settings tab.
- Select the Managed certificate option and then select the free Azure SSL certificate from the drop-down list.
- Select Save to apply the changes.
Your WordPress site should now be able to use your SSL certificate with Azure Front Door to redirect HTTPS traffic.
Some possible errors you could encounter when using a free Azure SSL certificate with Azure Front Door to redirect HTTPS traffic for a WordPress site hosted on Azure include:
- Invalid certificate: This error occurs when the certificate you are using is not valid or has expired.
- Certificate not trusted: This error occurs when the certificate you are using is not trusted by the web browser.
- Certificate not issued by a trusted authority: This error occurs when the certificate you are using is not issued by a trusted certificate authority.
- Certificate not installed on the server: This error occurs when the certificate is not installed on the server where the WordPress site is hosted.
- Incorrect routing rules: This error occurs when the routing rules you have configured are incorrect or do not match the expected behavior.
To avoid these errors, it is important to ensure that the certificate you are using is valid, trusted, and issued by a trusted authority. You should also ensure that the certificate is installed on the server and that the routing rules are configured correctly.
These steps are from these Azure documents:
https://learn.microsoft.com/en-us/azure/frontdoor/front-door-custom-domain-https
https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings
https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Cportal
Hope that helps. Please let us know if you have further questions
Thanks,
Grace