简体   繁体   English

使用以下搜索条件找不到X.509证书:

[英]Cannot find the X.509 Certificate using the following search criteria:

I get this message: 我收到这条消息:

Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectDistinguishedName', FindValue 'CN=HighBall'. 使用以下搜索条件找不到X.509证书:StoreName'My',StoreLocation'LocalMachine',FindType'FindBySubjectDistinguishedName',FindValue'CN = HighBall'。

My web.config setup looks like this; 我的web.config设置看起来像这样;

Authentication is set like... 身份验证设置如...

<authentication mode="Windows" />

The bindings are set for wsHttpBinging 为wsHttpBinging设置绑定

and my Service behavior is set as such... 我的服务行为设置如此......

<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>

I've tried to figure out a way to verify what, how, and where to certificate is stored but am not sure how to do this. 我试图找出一种方法来验证证书存储的内容,方式和位置,但我不知道如何做到这一点。 If anyone has any ideas on this error message I'd greatly appreciate the assist. 如果有人对此错误消息有任何想法,我将非常感谢您的帮助。

Remember that ASP.NET runs as a different user. 请记住,ASP.NET以不同的用户身份运行。 It may need to be assigned access to the certificate. 可能需要为其分配对证书的访问权限。

Check the other post about the tool that you asked about. 查看关于您询问的工具的其他帖子。 Verify your "my" storage and check if the CN="HighBall". 验证您的“我的”存储空间并检查CN =“HighBall”。 I guess your CN is not just "HighBall", probably it has a top level domain. 我猜你的CN不只是“HighBall”,可能它有一个顶级域名。 I think it's easier to look for the certificate serial number, i think it's faster than for it's canonical name and error prone. 我认为查找证书序列号更容易,我认为它比规范名称和容易出错更快。

Regards, 问候,

Victor 胜利者

Try to use Certificate Manager (with MMC) to see installed certificates. 尝试使用证书管理器(使用MMC)查看已安装的证书。 Instructions for XP: manage certificates for a computer , probably similar with Vista and 7 as well. XP的说明: 管理计算机的证书 ,可能与Vista和7类似。

I was having problems with service unable to find the x509 certificate, but by using the Certificate Manager I found out that "Install PFX" command from Windows Explorer had not installed the certificate at all! 我遇到服务无法找到x509证书的问题,但是通过使用证书管理器,我发现Windows资源管理器中的“安装PFX”命令根本没有安装证书! This was fixed by importing the certificate from Certificate Manager. 通过从证书管理器导入证书来解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM