Azure website problem

Director 20 Reputation points
2026-03-18T22:15:52.3733333+00:00

Hello,

My Azure website works if people google search XXXXXXXX.org

however if they put in www.XXXXXXX it give this error.

Your connection is not private

Attackers might be trying to steal your information from www.bXXXXXX.org (for example, passwords, messages, or credit cards). Learn more about this warning

net::ERR_CERT_COMMON_NAME_INVALID

This is a new problem and wondering if there is a setting or something which I can do to fix this problem.

Thank you,

~ Glen Kyle

Bridges to New Life Society

edited PII info

Azure Web PubSub
Azure Web PubSub

An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.


Answer accepted by question author
Praneeth Maddali 12,670 Reputation points Microsoft External Staff Moderator
2026-03-18T22:47:51.89+00:00

HI @Director

Thanks for reaching us regarding your issue from the deep investigation we found that The issue is due to an SSL certificate hostname mismatch. The root domain loads securely because it has a valid certificate bound, but the www hostname is not included in the certificate, which results in the ERR_CERT_COMMON_NAME_INVALID browser warning. DNS resolution is correct; the missing SSL binding for the www hostname is the cause.

To resolve this, add www.<domain> as a custom domain in Azure App Service and bind an SSL certificate (App Service Managed Certificate is recommended and free on Basic+ plans). Once the www hostname shows as secured, the warning will be resolved.

Quick steps:

  • Azure portal > App Service > Custom domains > verify the www hostname is listed (add it using + Add custom domain if missing, using the existing CNAME).
  • Next to the www hostname > Add binding > Source: App Service Managed Certificate > Validate (add the TXT record shown by Azure to DNS).
  • Select Add >status changes to Secured after validation completes.

Reference :

https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-bindings
https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain?tabs=root%2Cazurecli

If the answer is helpful,  Please do click "Accept the answer” and Yes, this can be beneficial to other community members.

If you have any other questions, let me know in the "comments" and I would be happy to help you

 

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.