警告:在本地计算机的证书存储中找不到角色“MyProj.Web”的端点“HttpsIn”的SSL证书“Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption”.
此证书与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>
ServiceConfiguration.Local.cscfg
<Certificates> <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" /> <Certificate name="AzureSSL" thumbprint="xxxxxxxxxx" thumbprintAlgorithm="sha1" /> </Certificates>
>在两者中删除所有“Microsoft.WindowsAzure.Plugins.RemoteAccess.*”
(本地和云).cscfg文件
>删除“证书
NAME = “Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption”
在.cscfg文件中
>删除< Import moduleName =“RemoteAccess”/>和<导入
moduleName =“RemoteForwarder”/>来自csdef文件.
>保存&重新编译.如果以后需要激活远程桌面,则会在this article中描述进程.
或者,您可以将RDP证书添加到LocalMachine商店.