HTTPS on Azure Virtual Machine

2019-03-28 19:58发布

I am moving our web site to Azure, running on a Windows Server 2012 VM. I have purchased a wildcard SSL cert from GoDaddy and it has been installed and configured on the VM. I have also configured IIS to utilize this cert for all requests on port 443. I have also created the HTTPS endpoint in the Azure management console on port 443.

I can connect just fine to the web site on port 80, but 443 cannot be reached and monitoring the connection through fiddler, I'm getting a 502 response.

I have searched all the documentation on Azure and cannot find much help for setting up SSL on a virtual machine in the cloud.

标签: iis azure ssl
2条回答
叼着烟拽天下
2楼-- · 2019-03-28 20:38

Make sure you open up the endpoint for 443 to route it through to your VMs. See http://www.windowsazure.com/en-us/develop/net/common-tasks/enable-ssl/

查看更多
霸刀☆藐视天下
3楼-- · 2019-03-28 20:52

When I set up the endpoint for SSL, I had checked the box for "Enable Direct Server Return." This setting prevented SSL from working. I haven't come across any documentation explaining why it behaves this way. Removing the endpoint and creating it without direct server return enabled fixed the problem.

查看更多
登录 后发表回答