text
stringlengths
0
4.23k
Remarks
-dynamicfilelist
Displays a dynamic file list.
certutil [options] -dynamicfilelist
[-config Machine\CAName]
-databaselocations
Displays database locations.
certutil [options] -databaselocations
[-config Machine\CAName]
-hashfile
Generates and displays a cryptographic hash over a file.
certutil [options] -hashfile infile [hashalgorithm]
-store
Dumps the certificate store.
certutil [options] -store [certificatestorename [certID [outputfile]]]
Where:
certificatestorename is the certificate store name. For example:
My, CA (default), Root,
My, CA (default), Root,
ldap:///CN=Certification Authorities,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?one?objectClass=certificationAuthority (View Root Certificates)
ldap:///CN=Certification Authorities,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?one?objectClass=certificationAuthority (View Root Certificates)
ldap:///CN=CAName,CN=Certification Authorities,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?base?objectClass=certificationAuthority (Modify Root Certificates)
ldap:///CN=CAName,CN=Certification Authorities,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?base?objectClass=certificationAuthority (Modify Root Certificates)
ldap:///CN=CAName,CN=MachineName,CN=CDP,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint (View CRLs)
ldap:///CN=CAName,CN=MachineName,CN=CDP,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?certificateRevocationList?base?objectClass=cRLDistributionPoint (View CRLs)
ldap:///CN=NTAuthCertificates,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?base?objectClass=certificationAuthority (Enterprise CA Certificates)
ldap:///CN=NTAuthCertificates,CN=Public Key Services,CN=Services,CN=Configuration,DC=cpandl,DC=com?cACertificate?base?objectClass=certificationAuthority (Enterprise CA Certificates)
ldap: (AD computer object certificates)
ldap: (AD computer object certificates)
-user ldap: (AD user object certificates)
-user ldap: (AD user object certificates)
certID is the certificate or CRL match token. This can be a serial number, a SHA-1 certificate, CRL, CTL or public key hash, a numeric cert index (0, 1, and so on), a numeric CRL index (.0, .1, and so on), a numeric CTL index (..0, ..1, and so on), a public key, signature or extension ObjectId, a certificate subject Common Name, an e-mail address, UPN or DNS name, a key container name or CSP name, a template name or ObjectId, an EKU or Application Policies ObjectId, or a CRL issuer Common Name. Many of these may result in multiple matches.
outputfile is the file used to save the matching certificates.
[-f] [-user] [-enterprise] [-service] [-grouppolicy] [-silent] [-split] [-dc DCName]
Options
The -user option accesses a user store instead of a machine store.
-user
The -enterprise option accesses a machine enterprise store.
-enterprise
The -service option accesses a machine service store.
-service
The -grouppolicy option accesses a machine group policy store.
-grouppolicy
For example:
-enterprise NTAuth
-enterprise NTAuth
-enterprise Root 37
-enterprise Root 37
-user My 26e0aaaf000000000004
-user My 26e0aaaf000000000004
CA .11
CA .11
-addstore
Adds a certificate to the store. For more info, see the -store parameter in this article.
-store
certutil [options] -addstore certificatestorename infile
Where:
certificatestorename is the certificate store name.
infile is the certificate or CRL file you want to add to store.
[-f] [-user] [-enterprise] [-grouppolicy] [-dc DCName]
-delstore
Deletes a certificate from the store. For more info, see the -store parameter in this article.
-store
certutil [options] -delstore certificatestorename certID
Where:
certificatestorename is the certificate store name.
certID is the certificate or CRL match token.
[-enterprise] [-user] [-grouppolicy] [-dc DCName]
-verifystore
Verifies a certificate in the store. For more info, see the -store parameter in this article.
-store
certutil [options] -verifystore certificatestorename [certID]
Where:
certificatestorename is the certificate store name.
certID is the certificate or CRL match token.
[-enterprise] [-user] [-grouppolicy] [-silent] [-split] [-dc DCName] [-t timeout]
-repairstore
Repairs a key association or update certificate properties or the key security descriptor. For more info, see the -store parameter in this article.
-store
certutil [options] -repairstore certificatestorename certIDlist [propertyinffile | SDDLsecuritydescriptor]
Where:
certificatestorename is the certificate store name.
certIDlist is the comma-separated list of certificate or CRL match tokens. For more info, see the -store certID description in this article.
-store certID
propertyinffile is the INF file containing external properties, including:
[Properties]
19 = Empty ; Add archived property, OR:
19 = ; Remove archived property
11 = {text}Friendly Name ; Add friendly name property
127 = {hex} ; Add custom hexadecimal property
_continue_ = 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
_continue_ = 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
2 = {text} ; Add Key Provider Information property
_continue_ = Container=Container Name&
_continue_ = Provider=Microsoft Strong Cryptographic Provider&
_continue_ = ProviderType=1&