wcf - 使用以下搜索条件无法找到 X.509 证书 :

标签 wcf certificate x509 x509securitytokenmanager

我收到这条消息:

Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectDistinguishedName', FindValue 'CN=HighBall'.

我的 web.config 设置如下所示;

身份验证设置为...

<authentication mode="Windows" />

绑定(bind)是为 wsHttpBinging 设置的

我的服务行为是这样设置的...

<behavior name="HighBall.Services.ServiceVerificationBehavior">
  <serviceAuthorization principalPermissionMode="UseAspNetRoles"
        roleProviderName="HighBallRoleProvider" />
  <serviceMetadata httpGetEnabled="true" />
  <serviceDebug includeExceptionDetailInFaults="true" />
  <serviceCredentials>
    <serviceCertificate findValue="CN=HighBall" />
    <userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
        membershipProviderName="HighBallMembershipProvider" />
  </serviceCredentials>
</behavior>

我试图找出一种方法来验证存储证书的内容、方式和位置,但我不确定如何执行此操作。如果有人对此错误消息有任何想法,我将不胜感激。

最佳答案

请记住,ASP.NET 以不同的用户身份运行。可能需要为其分配对证书的访问权限。

关于wcf - 使用以下搜索条件无法找到 X.509 证书 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/216109/

相关文章:

mongodb - MongoDB 中未启用 x.509 身份验证

wcf - wcf中配置属性MaxReceivedMessageSize的最大限制会影响服务性能吗?

c# - 如何检测 WCF 流客户端是否断开中流

php - 如何用PHP获取CA的注册证书

ssl - Kubernetes CSR 处于待处理状态

security - 为什么 CA 证书可以有较长的过期时间,但它们签名的证书却不能?

openssl - 如何使用 SHA256 而不是 sha1 制作 OpenSSL?

wcf - WCF 和 IIS 的 "IntelliTrace is not collecting data for this debugging session"消息

WCF net.tcp 连接总是失败

java - 认证如何实现安全的 Web 服务?