Deleting test certificates for driver signing via certmgr.exe

  • Thread starter Thread starter Soquel Dude
  • Start date Start date
S

Soquel Dude

Guest
I follow the WDK documentation and use makecert to create a cert for test-signing a driver package. I do this as follows:

E:\>makecert -r -pe -ss PrivateCertStore -n "CN=Private (test cert)" -eku 1.3.6.1.5.5.7.3.3 testcert.cer
Succeeded

I use Certmgr.msc to verify the PrivateCertStore and testcert are created.

However, once created, I cannot use Certmgr.exe to delete the cert:

E:\>certmgr.exe -del -c -n "CN=Private (test cert)" -s -r localMachine PrivateCertStore
Error: Failed to find a certificate to delete
CertMgr Failed

If I query the cert store, certmgr.exe doesn't find anything:

E:\>certmgr.exe -v -s -r localMachine PrivateCertStore
==============No Certificates ==========
==============No CTLs ==========
==============No CRLs ==========
==============================================
CertMgr Succeeded

Can someone please tell me which tool I can use within a .cmd file to remove certs from a store?

Continue reading...
 
Back
Top