将 HTTPS 添加到通过 CNAME 映射的 Azure VM

Adding HTTPS to Azure VM mapped through CNAME

我打算为 mydomain.com 购买通配符 SSL 证书。从我的 ISP 我映射 test.mydomain.com - 使用 CNAME 设置 - 到 Azure VM(不是简单的网络应用程序)运行 网络服务器(例如 blahblah-vm.cloudapp.net),其中我已经打开了端口 80 和 443.

现在,我的客户端连接到 https://test.mydomain.com。会不会有什么问题?我是否需要以某种方式为 VM 准备 mydomain.com SSL 证书,或者它会因为 CNAME 映射而正常工作吗?

您的虚拟机是否有静态Public IP 地址?如果是,您可以使用 A 记录。此外,我们可以使用 CNAME 映射 Azure VM 的 FQDN。

Now, my client connects to https://test.mydomain.com. Will there be any issues?

在您连接到 https://test.mydomain.com 之前,我们应该先在您的 PC 上安装 SSL 证书。

Do I need to somehow prepare the VM with the mydomain.com SSL certificate or will it just work thanks to the CNAME mapping?

除了安装SSL证书外,无需准备任何东西。

更新:

如果您的虚拟机是windows,并且使用IIS来部署您的网络服务器,我们可以在这里使用SSL证书: