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