X.509 certificate cannot be found by WCF service

混江龙づ霸主 提交于 2019-12-08 10:15:30

问题


I have a WCF service hosted in IIS.

Using certmgr.msc I can see my X.509 certificate in Personal -> Certificates but still I get this error:

Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindByThumbprint', FindValue 'b0 5f 3f ...'.

I changed storelocation, find type... but still the same error appears. I guess IIS cannot use the certificate because of lack of permission.

How can I fix this ?


回答1:


Right click on the cert, select Manage Private Keys, grant rights to the user under which the IIS app pool is running.



来源:https://stackoverflow.com/questions/5097572/x-509-certificate-cannot-be-found-by-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!