"certmgr.exe -add -c" - Import a Certificate

Q

How to import a certificates to a system certificate store using "certmgr.exe" tool?

✍: FYIcenter.com

A

You can import a certificate to a system certificate store using "certmgr.exe -add -c" command as shown in this tutorial.

C:\fyicenter>
"\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\certmgr.exe" 
-add -c -s My linda_exported.crt

CertMgr Succeeded

C:\fyicenter>
"\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\certmgr.exe" -s My

==============Certificate # 1 ==========
...
==============No CTLs ==========
==============No CRLs ==========
==============================================
CertMgr Succeeded

What you are getting from this tutorial:

  • '-add' tells command to import a certificate, CRL or CTL from a certificate store.
  • '-c' tells command to import a certificate.
  • '-s' tells command to use a system certificate store instead of a store file.
  • 'My' specifies the name for the system certificate store. "My" is the name of the "Personal" certificate store of the logged in user.
  • 'linda_exported.crt' specifies the input certificate file.

 

certmgr.exe - Create Certificate Store Files

"certmgr.exe -del -c" - Delete a Certificate

Certificate Manager Command "certmgr.exe" on Windows

⇑⇑ Windows Certificates Tutorials

2012-08-08, 17651👍, 0💬