Results 1 to 4 of 4

Thread: Getting Firefox certificates

  1. #1
    Viccah is offline C# Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Mar 2017
    Posts
    2
    Rep Power
    0

    Getting Firefox certificates

    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!

  2. #2
    JohnH's Avatar
    JohnH is offline C# Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    331
    Rep Power
    87
    Firefox gets the certificates from system, search "c# list installed certificates" and you should find how.

  3. #3
    Viccah is offline C# Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Mar 2017
    Posts
    2
    Rep Power
    0
    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?

  4. #4
    JohnH's Avatar
    JohnH is offline C# Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Location
    Norway
    Posts
    331
    Rep Power
    87
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •