I have a web site hosted in an Azure VM with a domain registered with GoDaddy. I forwarded the DNS in GoDaddy to point my https:mydomain.com address to my https:mydomain.westus.cloudapp.azure.com site in Azure (GoDaddy creates a DNS A record) and installed the 2 certificates on my VM in IIS. However, I am still getting certificate errors when I go to https:mydomain.com.
With a "127.0.0.1 mydomain.com" entry in the ...\drivers\etc\hosts file, I am able to navigate to https:mydomain.com from the VM server itself with no problem. But, when navigating from outside the server I get the error. Also, if I navigate directly to the https:mydomain.westus.cloudapp.azure.com site (outside the server), I get the "There is a problem with this website's security certificate." error in the browser.
I am not a networking expert, but it seems there needs to be some entry in the Azure DNS because hitting the server directly doesn't work either. I have spent several days searching through forums for an answer and haven't been able to resolve this.
Any help to solve this problem would be greatly appreciated.