0

Is there any windows api available to create my own cermgr.exe, which installs the .cer file to certificate store. If not programatically how to achieve this?

How to install a certificate without using certmgr.exe or certutil.exe..

I'd like to add some more points here. The certificate file is created and signed by my own. Now I have a .cer file. I want to install it in "localMachine root","localMachine trusted publisher". How to do it programatically ( USING WINAPI ).

Update:

This link provides a solution in C#, any idea in C to achieve the same?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
2vision2
  • 4,933
  • 16
  • 83
  • 164

1 Answers1

5

You should look at "Certificate and Certificate Store Functions" in MSDN.

The function to add a certificate in a store is CertAddEncodedCertificateToStore.

math
  • 2,811
  • 3
  • 24
  • 29