Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get certificate information? 1

Status
Not open for further replies.

Vovin

Programmer
Aug 24, 2003
63
GB
Hi,

can anyone help me with this? I'm trying to write some code that will retrieve the data stored within a certificate held in the certificate store.

For example. If you open Windows Explorer and click on Tools->Internet Options->Content->Certificates. If you then click on one of the certificates and view it. It contains details of what's in the certificate.

How can I get this information programmatically? I've searched about on the web and various Delphi books but haven't found anything. My boss things that the information is stored in the registry but i have searched through it and can't find anything of any use. Any help would be very much appreciated. Thanks in advance.
 
The only thing I can do is point you to the API "CertXXXXX" functions. They are not imported anywhere in Delphi (5.xx), you need to import the functions you want from Wincrypt.h to work with.

Creepy stuff.

HTH.
buho (A).
 
Hi buho,

Thanks for your help. I'm having a look at the wincrypt stuff at the moment - looks like that may be what I'm looking for.

I had a look at the chilkasoft stuff.. it looks pretty cool unfortunately it doesn't have a method that allows me to get the one property that I want (the CRL Distribution point). Isn't it always the case?

Thanks again.
 
Forget the last one. It is not what you are searching for... but a very interesting code indeed.

Sorry for the miss.
buho (A).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top