我收到这条消息:
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/