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

Q

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

✍: FYIcenter.com

A

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

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

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

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

==============No Certificates ==========
==============No CTLs ==========
==============No CRLs ==========
==============================================
CertMgr Succeeded

What you are getting from this tutorial:

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

 

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

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

Certificate Manager Command "certmgr.exe" on Windows

⇑⇑ Windows Certificates Tutorials

2012-08-07, 24327👍, 0💬