Hello,
My website is doing some http posts to another server and I need to attach a certificate.
I am using this code to open the certificate store and getting the certificate I need:
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509CertificateCollection certCollection = store.Certificates;
The user is a domain account and the application pool for the application uses it.
The problem is that I only get the certificate if that account is logged in into the machine. If the user is logged off I cannot access this store.
Any ideas?
Thanks!