"certmgr.exe -put -c" - Export a Certificate


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

✍: FYIcenter.com


You can export a certificate from a system certificate store using "certmgr.exe -put -c" command as shown in this tutorial.

"\Program Files\Microsoft Visual Studio 8\sdk\v2.0\bin\certmgr.exe" 
-put -c -s My linda_exported.crt

==============Certificate # 1 ==========
Enter cert # from the above list to put-->1
CertMgr Succeeded

C:\fyicenter>dir *.crt

              669 linda_exported.crt

What you are getting from this tutorial:

  • '-put' tells command to export a certificate, CRL or CTL from a certificate store.
  • '-c' tells command to export 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 output certificate file.
  • There is no option for you to specify which certificate to export. The command will prompt you to enter index number to indicate which certificate to export after listing all certificates.


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

certmgr.exe - List "My" Personal Certificates with Details

Certificate Manager Command "certmgr.exe" on Windows

⇑⇑ Windows Certificates Tutorials

2016-06-27, 19629🔥, 4💬