EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Reading firefox certificates

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#5822
Posted: 04/10/2008 06:55:02
by Pingu O (Basic support level)
Joined: 04/10/2008
Posts: 1

Hello,

i'm using TElWinCertStorage for reading installed certificates, this works all fine. But it don't find any certificates dat are loaded with FireFox. Is there a way to get de certificates which are installed in firefox?

Code
procedure LoadCertificates(List: TCerticifateList; IncludeExpired: Boolean =
    True; Issuer: string = '');
var
  i: Integer;
  Cert: TElX509Certificate;
  WinStorage: TElWinCertStorage;
  CloneCert: TElX509Certificate;
begin
  WinStorage := TElWinCertStorage.Create(nil);
  try
    WinStorage.SystemStores.Add('MY');

    for i := WinStorage.Count - 1 downto 0 do
    begin
      Cert := WinStorage.Certificates[i];

      if (IncludeExpired or (Cert.ValidTo >= Date)) and
        ((Issuer = '') or SameText(Cert.IssuerName.Organization, Issuer)) then
        begin
          CloneCert := TElX509Certificate.Create(nil);
          CloneCert.Assign(Cert);
          List.Add(CloneCert);
        end;
    end;
  finally
    WinStorage.Free;
  end;

end;


thx in advance.
PS. the certificates aren't download but directly installed from a website.

#5824
Posted: 04/10/2008 07:16:23
by Ken Ivanov (EldoS Corp.)

As far as I know, Firefox stores certificates in some file on disk, so you cannot access them via TElWinCertStorage component.

We can provide no information about the exact location and format of the Firefox certificates database, sorry.

Reply

Statistics

Topic viewed 1004 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!