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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import CA

Status
Not open for further replies.

RichSW

Programmer
Nov 16, 2005
3
GB
I need to Import a CA into the Windows registry certificate store for the current user.

Seems to be little or no information on how to actually do this and the only components I have found to do this are ActiveX based (not an option) or complete overkill (PKIBlackBox)

I just want to take a CA I have stored on the disk and pop it into the users list of CA's thats all :(

I know where I should be looking but cant find a great deal of info, I have C code to do this but I know no C and it makes no sense at all anyway :(

Anyone have an suggestions or code?
Ta
Ric
 
Excuse my ignorance but what is a CA?

If the C code is a reasonable length, e.g. under 100 lines, then you could try posting it here and someone might be able to translate it into Dephi.

Alternatively, you could show us what a CA certificate entry looks like in the registry and someone might be able to give some guidance on how to update the registry.

Of course, since I don't know what a CA is, the above suggestions may be not be practical.

Andrew
Hampshire, UK
 
CA = Certificate of Authority

For obvious legal reasons I can't post the code I know what API's its hitting but not what the apis are being called with/returning. Will go over it with the relevent guys tomorrow but not expecting to to help.

WinAPI's I need seem to be :

CertOpenStore
CertCreateCertificateContext
CertAddCertificateContextToStore

and a handful of others to clsoe the store
 
googling 'CertCreateCertificateContext delphi' gives back some obscure russion links.


this one contains a delphi example :


cya,
Daddy

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Might be just what the doctor ordered :) Now off to learn Russian :)

Ric
 
good luck m8

[2thumbsup]

-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top