Using CertMgr to Install Test Certificates on a Test Computer

To install test certificates on a test computer by using CertMgr, follow these steps:

  1. Copy the certificate (.cer) file, which was used to test-sign drivers, to the test computer. You can copy the certificate file to any directory on the test computer.

  2. Use CertMgr commands to add the certificate to the Trusted Root Certification Authorities certificate store and the Trusted Publishers certificate store.

The following CertMgr command adds the certificate in the certificate file CertificateFileName.cer to the Trusted Root Certification Authorities certificate store on the test computer:

CertMgr /add CertificateFileName.cer /s /r localMachine root /all

The following CertMgr command adds the certificate in the certificate file CertificateFileName.cer to the Trusted Publishers certificate store on the test computer:

CertMgr /add CertificateFileName.cer /s /r localMachine trustedpublisher