I need to install a Personal certificate for a Windows Service. So far I have been able to install certificate in CurrentUser and LocalMachine (in case of root certs), but I haven't been able to find if there is way to do this for a Windows Service store (for Message Queuing - MSMQ
service). Here is what I have so far.
X509Store store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadOnly);
Any ideas? I have seen references to Web Service Enhancements having a method to open a service cert collection, but I am trying to figure out if System.Security.Cryptography has something equivalent.
This program is in C# targetting .NET 4.