Cannot find the X.509 certificate after publishing

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:15:22

问题


I am building a WCF service as in this article and facing trouble with X.509 certificate.

When I debug, everything is OK. When I publish and run the application, I receive the error:

Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindValue 'WCFServer'.

What troubleshooting steps can I take?

The server is IIS 5.1 on Windows XP SP3


回答1:


At a guess: it seems to be looking in the "CurrentUser" store, which is tied to your user account. Your IIS instance might not be running under that user account, in which case it won't find the cert. You'd need to use the global store, or to install the cert under your IIS service user's account to fix the problem.




回答2:


When you publish your service is it running on the same development machine? If not make sure you install the cert in the store on the machine you are publishing to.



来源:https://stackoverflow.com/questions/2987066/cannot-find-the-x-509-certificate-after-publishing

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