加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

添加HTTPS端点后,我收到此警告:在证书存储中找不到“Microsoft.

发布时间:2020-12-14 01:42:46 所属栏目:Windows 来源:网络整理
导读:我在我的WebRole中添加了一个HTTPS端点,现在当我尝试运行Azure模拟器时,我收到以下警告,这会导致计算模拟器停止并且调试器将保释: 警告:在本地计算机的证书存储中找不到角色“MyProj.Web”的端点“HttpsIn”的SSL证书“Microsoft.WindowsAzure.Plugins.Rem
我在我的WebRole中添加了一个HTTPS端点,现在当我尝试运行Azure模拟器时,我收到以下警告,这会导致计算模拟器停止并且调试器将保释:

警告:在本地计算机的证书存储中找不到角色“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>
WebRole正在添加RemoteAccess证书设置并在LocalMachine中查找证书,因为SDK 1.8添加了< Import moduleName =“RemoteAccess”/>到csdef文件.要解决此问题:

>在两者中删除所有“Microsoft.WindowsAzure.Plugins.RemoteAccess.*”
(本地和云).cscfg文件
>删除“证书
NAME = “Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption”
在.cscfg文件中
>删除< Import moduleName =“RemoteAccess”/>和<导入
moduleName =“RemoteForwarder”/>来自csdef文件.
>保存&重新编译.如果以后需要激活远程桌面,则会在this article中描述进程.

或者,您可以将RDP证书添加到LocalMachine商店.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读