简体   繁体   English

通过HTTPS将Azure AppService连接到VM上的应用程序

[英]Connect Azure AppService to Application on a VM over HTTPS

I need to connect our Azure AppServices to an Application running on a Azure VM. 我需要将Azure AppServices连接到在Azure VM上运行的应用程序。 This application requires HTTPS and the AppServices have an application installed that will point to the HTTPS Address of the application on the VM. 此应用程序需要HTTPS,并且AppServices已安装一个应用程序,该应用程序指向VM上该应用程序的HTTPS地址。

I tried creating a Self-Signed Certificate on the VM and adding this to SSL of the AppService (exported .pfx) but that failed as I believe it only adds that to the Trusted Personal store/there is no access to the Trusted Root Store on a Azure AppService. 我尝试在VM上创建自签名证书并将其添加到AppService的SSL(导出的.pfx)中,但是失败了,因为我认为它仅将其添加到了Trusted Personal存储中/无法访问该存储上的Trusted Root Store Azure AppService。

The Azure environment has a .local domain setup. Azure环境具有.local域设置。 Do I need to get a CA Certificate for my Application on the VM and install these on the Azure AppServices or do I have to a public domain name instead in order to have SSL communication between the Azure AppServices and my HTTPS application running on the Azure VM? 我是否需要在VM上为我的应用程序获取CA证书并将其安装在Azure AppServices上,还是必须拥有一个公共域名才能在Azure AppServices和我在Azure VM上运行的HTTPS应用程序之间进行SSL通信?

To achieve this scenario you need to place both VM and App service in same VNet and then establish a Point to Site Connection, then by default it will be encrypted. 要实现此方案,您需要将VM服务和App服务都放置在同一VNet中,然后建立指向站点的连接,然后默认情况下它将被加密。 check the link below for more details: https://blogs.msdn.microsoft.com/benjaminperkins/2017/02/01/create-a-vnet-and-access-an-azure-vm-hosted-within-it-from-an-app-serivces-web-app/ 请查看下面的链接以了解更多详细信息: https : //blogs.msdn.microsoft.com/benjaminperkins/2017/02/01/create-a-vnet-and-access-an-azure-vm-hosted-within-it-从-AN-APP-serivces-web的应用程序/

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

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