Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @JC,
Thank you for reaching us regarding an SSL error when trying to access your app service URL, and the browser is indicating that it can't establish a secure connection.
In Azure App Service, the default https://<app>.azurewebsites.net hostname is normally secured automatically by an Azure-managed wildcard certificate, so no certificate configuration is required for that URL.
If you’re seeing an SSL error, it’s typically because the request is being redirected to a different hostname (for example, forcing www or forcing your custom domain), or because a custom domain certificate/binding is missing or bound to the wrong hostname.
If your browser reports that the certificate is invalid and "This site can’t provide a secure connection”, it is usually due to one of the following reasons:
- Application‑level redirect:
Please check whether your application/app settings are redirectingazurewebsites.nettraffic towww.<app>.azurewebsites.netor to a custom domain. If so, ensure the redirect target hostname has a valid TLS/SSL binding. - Custom domain certificate/binding issue
If you are using a custom domain, make sure the SSL certificate is valid (not expired) and correctly bound to the exact hostname being accessed (for example,example.comversuswww.example.com). A mismatch between the hostname and the certificate can cause a browser SSL error. To fix this, go to the Microsoft Azure portal > navigate to your App Service > TLS/SSL settings, and confirm that the correct certificate is properly bound to each custom hostname you are using. - Incorrect SSL binding configuration
In rare cases, an incorrect TLS/SSL binding configuration—such as conflicting SNI or IP-based bindings, can cause the wrong certificate to be presented to users. To resolve this, review all TLS/SSL bindings configured for the app in the Azure portal and ensure there are no conflicting, duplicate, or unnecessary bindings that could interfere with the correct certificate being served. - Intermittent or client‑side validation issues
Sometimes SSL errors are caused by browser cache, local DNS, or network security software rather than a server issue. Try clearing your browser cache, using an incognito window, or testing the site from a different browser or network.
Reference:
https://learn.microsoft.com/en-us/troubleshoot/azure/app-service/troubleshoot-azure-app-service-certificates
https://learn.microsoft.com/pt-br/troubleshoot/azure/app-service/connection-issues-with-ssl-or-tls/troubleshoot-domain-and-tls-ssl-certificates
https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Crbac%2Cazure-cli
Kindly let us know if the above comment helps or you need further assistance on this issue.
Please "accept" if the information helped you. This will help us and others in the community as well.