Here's what I want to do: take a working ASP.NET application that calls a 3rd party web service using WCF certificate authentication for both the client (my web application) and the server (the service). I got this working in my development environment using my personal certificate store. Now I've deployed to a staging server using Windows Server 2008 R2 and IIS 7.5, and, to put it mildly, I'm having some trouble with the certificates.
I've tried many different approaches and won't list them all here, but for the record:
- I've read the docs on certmgr backwards and forwards
- I've tried to install to the LocalMachine store and can't seem to get the certificates in there (I am logged in as an administrator).
- I've set up a special account to run the site and installed the certificates in the personal store of the IIS account (and, thanks to this SO question, I set the app pool to load the user profile)
For all of my attempts, I am getting back some version of the error, "Cannot find the X.509 certificate"
My question is: can you point me to one definitive resource that will take me through the steps to do this successfully, from the installation of the certificates to the configuration of the certificate reference? Or, even better, is there a simple way to diagnose exactly why my application can't find the certificates I've installed?