【发布时间】:2014-10-08 15:17:14
【问题描述】:
我有一个在 Azure 云服务 中托管的虚拟机中运行的 Web 应用程序。我使用 Windows。我正在尝试通过安装 SSL 证书来保护应用程序。
Here it says 这样做:
"在你的开发环境中,打开服务定义文件 (CSDEF)"
开发环境?那是什么?蚀? (我不使用 Visual Studio)
这是这个文件通常的样子:
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudService1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WCFServiceWebRole2">
<Endpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80" />
<InputEndpoint name="Https" protocol="https" port="443" certificate="SSL" />
</Endpoints>
<Imports>
<Import moduleName="Diagnostics" />
</Imports>
<Certificates>
<Certificate name="SSL" storeLocation="LocalMachine" storeName="My" />
<Certificate name="MSSecAuth" storeLocation="LocalMachine" storeName="CA" />
<Certificate name="MSInternetAuth" storeLocation="LocalMachine" storeName="CA" />
</Certificates>
<LocalResources>
<LocalStorage name="Logs" cleanOnRoleRecycle="false" sizeInMB="100"/>
</LocalResources>
</WebRole>
</ServiceDefinition>
问题是:服务定义文件(CSDEF)在哪里?
【问题讨论】:
标签: azure virtual-machine