Reputation: 5023
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?
Upvotes: 0
Views: 915
Reputation: 2881
You should look at "Certificate and Certificate Store Functions" in MSDN.
The function to add a certificate in a store is CertAddEncodedCertificateToStore.
Upvotes: 5