Getting Firefox certificates

Viccah

New member
Joined
Mar 2, 2017
Messages
2
Programming Experience
3-5
Hi!

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 :)

Thanks!
 
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);
store.Open(OpenFlags.ReadOnly);
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?
 
Back
Top Bottom