Getting Firefox certificates
I am developing a C# application that has to get and list all certificates on users computer. The problem I cannot solve is how to get and list the certificates from Firefox. Any help would be greatly appreciated
Firefox gets the certificates from system, search "c# list installed certificates" and you should find how.
I did search this before, but I cannot get it to work... Here's my code for getting the certificates:
var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
X509Certificate2Collection certificates = store.Certificates; //get certificates from store
If I list the certificates that it returns, the ones that I have imported in Chrome are listed, but the ones I have imported in firefox are not. What am I missing?
I've since learnt that "Firefox does not use the operating system's certificate store", have a look here for clues: dns - Where does Firefox store cerificates and how to delete one? - Super User