certmgr.exe - List of Command Options

Q

How to get a list of all command options supported by "certmgr.exe"?

✍: FYIcenter.com

A

You can see a list of all command options supported by running "certmgr.exe -h" as shown in this tutorial.

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

Usage: CertMgr [options][-s [-r <location>][SourceStoreName]
                        [-s [-r <location>][DestinationStoreName]
Options:
 -add         Add certificates/CRLs/CTLs to a storeFile or a system store
 -del         Delete certificates/CRLs/CTLs from a storeFile or
              a system store
 -put         Put an encoded certificate/CRL/CTL from a storeFile or
              a system store to a file.  The file will be saved in X.509
              format. -7 can be used to save the file in PKCS#7 format
 -s           Indicate the store is a system store
 -r    <location>   The system store location
                    <currentUser|localMachine> Default to 'currentUser'
 -c           Certificates in the store
 -crl         Certificates revocation lists(CRLs) in the store
 -ctl         Certificates trust lists(CTLs) in the store
 -v           Verbose display of the certificates/CRLs/CTLs
 -all         All certificates/CRLs/CTLs in the store
 -n    <name>       Common name of the certificate
 -sha1 <thumbPrint> The sha1 hash of the certificate/CRLs/CTLs
 -7                 Save the destination store in PKCS# 7 format
 -e    <encode>     Certificate/CRL/CTL encoding type.
                    Default to X509_ASN_ENCODING
 -f    <flag>       CertStore open flags.  Meaningful only if -y is set
 -y    <provider>   CertStore provider name

 

Certificate Manager Command "certmgr.exe" on Windows

⇒⇒Windows Certificates Tutorials

2012-08-07, 7982👍, 0💬