简体   繁体   English

Azure虚拟机上的HTTPS

[英]HTTPS on Azure Virtual Machine

I am moving our web site to Azure, running on a Windows Server 2012 VM. 我正在将我们的网站移动到Azure,在Windows Server 2012 VM上运行。 I have purchased a wildcard SSL cert from GoDaddy and it has been installed and configured on the VM. 我从GoDaddy购买了通配符SSL证书,它已在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. 我还将IIS配置为对端口443上的所有请求使用此证书。我还在端口443上的Azure管理控制台中创建了HTTPS端点。

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. 我可以很好地连接到端口80上的网站,但无法访问443并通过fiddler监控连接,我收到了502响应。

I have searched all the documentation on Azure and cannot find much help for setting up SSL on a virtual machine in the cloud. 我搜索了Azure上的所有文档,但在云中的虚拟机上设置SSL时找不到太多帮助。

When I set up the endpoint for SSL, I had checked the box for "Enable Direct Server Return." 当我为SSL设置端点时,我选中了“启用直接服务器返回”复选框。 This setting prevented SSL from working. 此设置阻止SSL工作。 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. 删除端点并在未启用直接服务器返回的情况下创建端点可解决问题。

Make sure you open up the endpoint for 443 to route it through to your VMs. 确保打开443的端点以将其路由到您的VM。 See http://www.windowsazure.com/en-us/develop/net/common-tasks/enable-ssl/ http://www.windowsazure.com/en-us/develop/net/common-tasks/enable-ssl/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM