w.b*_*ian 6 azure azure-web-roles
我在我的WebRole中添加了一个HTTPS端点,现在当我尝试运行Azure模拟器时,我收到以下警告,这会导致计算模拟器停止并且调试器将保释:
Warning: The SSL certificate 'Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption' for endpoint 'HttpsIn' of role 'MyProj.Web' was not found in the local machine's certificate store.
此证书与HTTPS端点无关.它也不(也不应该)在本地机器的证书存储上 - 它确实存在于CurrentUser证书存储区(我已经检查过).我试图在我的ServiceConfiguration中完全摆脱对这个证书的引用,只是为了看看会发生什么,但它会自动重新添加.
任何帮助,将不胜感激.
编辑:
为了清楚起见,我没有尝试使用Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption证书作为我的SSL证书.我已在本地计算机商店中为HTTPS端点成功设置了单独的自签名证书:
ServiceDefinition.csdef中
<Bindings>
<Binding name="Endpoint1" endpointName="Endpoint1" />
<Binding name="HttpsIn" endpointName="HttpsIn" />
</Bindings>
...
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="http" port="80" />
<InputEndpoint name="HttpsIn" protocol="https" port="443" certificate="AzureSSL" />
</Endpoints>
...
<Certificates>
<Certificate name="AzureSSL" storeLocation="LocalMachine" storeName="My"/>
</Certificates>
Run Code Online (Sandbox Code Playgroud)
ServiceConfiguration.Local.cscfg
<Certificates>
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" />
<Certificate name="AzureSSL" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" />
</Certificates>
Run Code Online (Sandbox Code Playgroud)
WebRole正在添加RemoteAccess证书设置并在LocalMachine中查找证书,因为SDK 1.8添加<Import moduleName="RemoteAccess" />到csdef文件.要解决此问题:
<Import moduleName="RemoteAccess" /> 并<Import
moduleName="RemoteForwarder" />从csdef文件.或者,您可以将RDP证书添加到LocalMachine商店.
| 归档时间: |
|
| 查看次数: |
5607 次 |
| 最近记录: |