0

I've created a self-signed certificate by referring to this link, now I got a .cer file which I ll install to my local machine root, using certmgr.exe. But I'd like to install this certificate programmatically.

Language to be used :C.
Compiler am using : MINGW

It should Support all versions of windows.

And I couldn't find the proper API for the same, It would be helpful if I get any Tips??

0xC0000022L
  • 19,426
  • 9
  • 77
  • 140
2vision2
  • 4,811
  • 15
  • 80
  • 160
  • 1
    So you want your self-signed certificate to be treated as a trusted root? – Jonathan Grynspan May 24 '12 at 13:41
  • It's not quite clear what you are trying to do. Is this about the certificate for code-signing (link suggests it is) that needs to be installed for a driver to load? – 0xC0000022L May 24 '12 at 13:43
  • the last step in that link is to install the cert file to local machine root, where they used certmgr.exe. Instead of using certmgr.exe I want to use my own code to install the certificate. – 2vision2 May 24 '12 at 13:55
  • 2
    It seems like you already asked this here: http://stackoverflow.com/questions/10731732/c-code-equivalent-of-c-sharp-to-install-certificate – tinman May 24 '12 at 13:55

0 Answers0