证书放在CurrentUser报 

 无法使用以下搜索标准找到 X.509 证书: StoreName“My”、StoreLocation“CurrentUser”、FindType“FindBySubjectName”、FindValue“WCFServerCertificate”。

原因是:IIS7默认的账户是Network Service,可能没有对Store里证书私钥的访问权限。

解决方法:

1.在mmc中添加“证书”控制单元中加入“证书 - 当前用户”和“证书(本地计算机)”

 WCF应用在IIS7宿主下找不到X.509证书解决方案

从“证书 - 当前用户”中导出证书,再导入到“证书(本地计算机)”的相应目录中。

2.原服务器配置

<serviceCertificate findValue="MyServer" storeLocation="CurrentUser"
              x509FindType="FindBySubjectName" />

改为:

<serviceCertificate findValue="MyServer" storeLocation="LocalMachine"
              x509FindType="FindBySubjectName" />

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-01-12
  • 2022-02-12
  • 2021-07-26
  • 2022-12-23
  • 2021-05-26
  • 2021-12-01
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2022-01-24
  • 2021-07-06
  • 2021-06-04
  • 2022-01-25
  • 2021-08-05
相关资源
相似解决方案