无法使用无状态服务的证书,它崩溃了 [英] Can't use certificate with stateless service, it crashes

查看:168
本文介绍了无法使用无状态服务的证书,它崩溃了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到以下错误


             &NBSP ; 新ServiceInstanceListener((上下文)=>新建FabricTransportServiceRemotingListener(上下文中,这,FabricTransportListenerSettings.LoadFrom(QUOT;试验")))



&NBSP ; < Section Name =" TestTransportSettings">

    < Parameter Name =" SecurityCredentialsType"值= QUOT; X509" />
$
    < Parameter Name =" CertificateFindType"值= QUOT; FindByThumbprint" />
$
    < Parameter Name =" CertificateFindValue"值= QUOT; e3bfc24efb752f0e614652ab9e4aef2f555a862c" />
$
    < Parameter Name =" CertificateStoreLocation"值= QUOT; LOCALMACHINE" />
$
    < Parameter Name =" CertificateStoreName"值= QUOT;我" />
$
    < Parameter Name =" CertificateProtectionLevel"值= QUOT; EncryptAndSign" />
$
    < Parameter Name =" CertificateRemoteCommonNames"值= QUOT;本地主机" />

  < /节>

将/设置>



我得到的错误是以下


抛出异常: 'System.Runtime.InteropServices.COMException' 在Microsoft.ServiceFabric.Services.dll

解决方案
有一大堆这可能是事情。通常,当我们看到这一点时,指纹末尾会有额外的字符(特别是如果你将它从证书MMC管理单元中复制出来)。检查(复制到记事本,并确保没有什么
那里或看在十六进制编辑器,以确保) - 比其他任何指纹是不正确的某些其他原因,或者证书安装不正确或无法访问出于某些其他原因,如权限。它也可以是为
证书的私钥无法被发现或证明无效的SSL / TLS。

I get the following error.

                new ServiceInstanceListener((context) => new FabricTransportServiceRemotingListener(context, this, FabricTransportListenerSettings.LoadFrom("Test")))

  <Section Name="TestTransportSettings">
    <Parameter Name="SecurityCredentialsType" Value="X509" />
    <Parameter Name="CertificateFindType" Value="FindByThumbprint" />
    <Parameter Name="CertificateFindValue" Value="e3bfc24efb752f0e614652ab9e4aef2f555a862c" />
    <Parameter Name="CertificateStoreLocation" Value="LocalMachine" />
    <Parameter Name="CertificateStoreName" Value="My" />
    <Parameter Name="CertificateProtectionLevel" Value="EncryptAndSign" />
    <Parameter Name="CertificateRemoteCommonNames" Value="localhost" />
  </Section>
</Settings>

The error I get is the following.

Exception thrown: 'System.Runtime.InteropServices.COMException' in Microsoft.ServiceFabric.Services.dll

解决方案

There's a whole bunch of things that this could be. Typically when we see this there are extra characters at the end of the thumbprint (especially if you copied it out of the cert MMC snapin). Check that (copy into notepad and make sure there's nothing there or look in a hex editor to be sure) - other than that either the thumbprint is incorrect for some other reason, or the cert is not installed correctly or is inaccessible for some other reason such as permissions. It can also be that the private key for the certificate wasn't able to be found or the certificate was not valid for SSL/TLS.


这篇关于无法使用无状态服务的证书,它崩溃了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆