text
stringlengths
0
4.23k
crl dumps the CRL table.
csv provides the output using comma-separated values.
[-silent] [-split] [-config Machine\CAName] [-restrict RestrictionList] [-out ColumnList]
Remarks
To display the StatusCode column for all entries, type -out StatusCode
-out StatusCode
To display all columns for the last entry, type: -restrict RequestId==$
-restrict RequestId==$
To display the RequestID and Disposition for three requests, type: -restrict requestID>37,requestID<40 -out requestID,disposition
-restrict requestID>37,requestID<40 -out requestID,disposition
To display Row IDsRow IDs and CRL numbers for all Base CRLs, type: -restrict crlminbase=0 -out crlrowID,crlnumber crl
-restrict crlminbase=0 -out crlrowID,crlnumber crl
To display , type: -v -restrict crlminbase=0,crlnumber=3 -out crlrawcrl crl
-v -restrict crlminbase=0,crlnumber=3 -out crlrawcrl crl
To display the entire CRL table, type: CRL
CRL
Use Date[+|-dd:hh] for date restrictions.
Date[+|-dd:hh]
Use now+dd:hh for a date relative to the current time.
now+dd:hh
-db
Dumps the raw database.
certutil [options] -db
[-config Machine\CAName] [-restrict RestrictionList] [-out ColumnList]
-deleterow
Deletes a row from the server database.
certutil [options] -deleterow rowID | date [request | cert | ext | attrib | crl]
Where:
request deletes the failed and pending requests, based on submission date.
cert deletes the expired and revoked certificates, based on expiration date.
ext deletes the extension table.
attribute deletes the attribute table.
crl deletes the CRL table.
[-f] [-config Machine\CAName]
Examples
To delete failed and pending requests submitted by January 22, 2001, type: 1/22/2001 request
1/22/2001 request
To delete all certificates that expired by January 22, 2001, type: 1/22/2001 cert
1/22/2001 cert
To delete the certificate row, attributes, and extensions for RequestID 37, type: 37
37
To delete CRLs that expired by January 22, 2001, type: 1/22/2001 crl
1/22/2001 crl
-backup
Backs up the Active Directory Certificate Services.
certutil [options] -backup backupdirectory [incremental] [keeplog]
Where:
backupdirectory is the directory to store the backed up data.
incremental performs an incremental backup only (default is full backup).
keeplog preserves the database log files (default is to truncate log files).
[-f] [-config Machine\CAName] [-p Password]
-backupdb
Backs up the Active Directory Certificate Services database.
certutil [options] -backupdb backupdirectory [incremental] [keeplog]
Where:
backupdirectory is the directory to store the backed up database files.
incremental performs an incremental backup only (default is full backup).
keeplog preserves the database log files (default is to truncate log files).
[-f] [-config Machine\CAName]
-backupkey
Backs up the Active Directory Certificate Services certificate and private key.
certutil [options] -backupkey backupdirectory
Where:
[-f] [-config Machine\CAName] [-p password] [-t timeout]
-restore
Restores the Active Directory Certificate Services.
certutil [options] -restore backupdirectory
Where:
[-f] [-config Machine\CAName] [-p password]
-restoredb
Restores the Active Directory Certificate Services database.
certutil [options] -restoredb backupdirectory
Where:
[-f] [-config Machine\CAName]
-restorekey
Restores the Active Directory Certificate Services certificate and private key.
certutil [options] -restorekey backupdirectory | pfxfile
Where:
[-f] [-config Machine\CAName] [-p password]
-importpfx
Import the certificate and private key. For more info, see the -store parameter in this article.
-store
certutil [options] -importpfx [certificatestorename] pfxfile [modifiers]
Where:
certificatestorename is the name of the certificate store.
modifiers are the comma-separated list, which can include one or more of the following:
AT_SIGNATURE - Changes the keyspec to signature
AT_KEYEXCHANGE - Changes the keyspec to key exchange
NoExport - Makes the private key non-exportable
NoCert - Doesn't import the certificate
NoChain - Doesn't import the certificate chain
NoRoot - Doesn't import the root certificate
Protect - Protects keys by using a password
NoProtect - Doesn't password protect keys by using a password
[-f] [-user] [-p password] [-csp provider]