使用 FindByThumbprint 无法找到 X.509 证书
当我尝试实例化第三方 Web 服务客户端的实例时,我收到以下错误...
Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', FindValue '[value in here]'.
奇怪的是,我们在另一台开发计算机上工作,但它坚决拒绝在我的计算机上工作。 我们已在每台计算机上以相同的方式(据我们所知)将证书添加到计算机的证书存储中。
任何人都可以提供有关如何解决此问题的任何建议吗?
I am getting the following error when I try to instantiate an instance of a third party web service client...
Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', FindValue '[value in here]'.
The strange thing is that we have this working on another development machine, but it is steadfastly refusing to work on mine. We have added the certificate to the machine's certificate store in the same way (as far as we can tell) on each machine.
Can anyone offer any suggestions about how to troubleshoot this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您没有在该计算机上安装证书。 查看 Internet Explorer(工具 | Internet 选项 | 内容选项卡 | 证书)安装的客户端证书。
在“个人”选项卡下,您可以看到为您的用户帐户安装的证书(因为您使用的是“我的”商店名称)。 双击“详细信息”选项卡下已安装的证书,您将获得可在查找值属性上使用的所有信息,例如指纹。
请注意,在 Windows 10 上,证书可在本地“计算机”存储中找到。 在 Windows Server 2008 R2 及更低版本上,它们可以在“个人”中找到。
Maybe you don't have the certificate installed on that machine. Take a look on Internet Explorer (Tools | Internet Options | Content tab | Certificates) installed client certificates.
Under "Personal" tab you can see the installed certificates for you user account (as you are using the "My" store name). Double-clicking on an installed certificate under Details tab you have all information you can use on find value attribute, like the thumbprint.
Note that on Windows 10, the certificates are found in the local "Computer" store. On Windows Server 2008 R2 and below, they will be found in "Personal".
以下是对我有用的内容:
无效 -
252967BFBCD543D93A79AFD86D4A5117A9C6767B
添加了
0x
(十六进制数字常量的前缀)有效 -
0x252967BFBCD543D93A79AFD86D4A5117A9C6767B
Here's what worked for me:
Invalid -
252967BFBCD543D93A79AFD86D4A5117A9C6767B
Added
0x
(prefix for hexadecimal numeric constants)Valid -
0x252967BFBCD543D93A79AFD86D4A5117A9C6767B