security/nss/doc/nroff/crlutil.1

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 '\" t
michael@0 2 .\" Title: CRLUTIL
michael@0 3 .\" Author: [see the "Authors" section]
michael@0 4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
michael@0 5 .\" Date: 5 June 2014
michael@0 6 .\" Manual: NSS Security Tools
michael@0 7 .\" Source: nss-tools
michael@0 8 .\" Language: English
michael@0 9 .\"
michael@0 10 .TH "CRLUTIL" "1" "5 June 2014" "nss-tools" "NSS Security Tools"
michael@0 11 .\" -----------------------------------------------------------------
michael@0 12 .\" * Define some portability stuff
michael@0 13 .\" -----------------------------------------------------------------
michael@0 14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
michael@0 15 .\" http://bugs.debian.org/507673
michael@0 16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
michael@0 17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
michael@0 18 .ie \n(.g .ds Aq \(aq
michael@0 19 .el .ds Aq '
michael@0 20 .\" -----------------------------------------------------------------
michael@0 21 .\" * set default formatting
michael@0 22 .\" -----------------------------------------------------------------
michael@0 23 .\" disable hyphenation
michael@0 24 .nh
michael@0 25 .\" disable justification (adjust text to left margin only)
michael@0 26 .ad l
michael@0 27 .\" -----------------------------------------------------------------
michael@0 28 .\" * MAIN CONTENT STARTS HERE *
michael@0 29 .\" -----------------------------------------------------------------
michael@0 30 .SH "NAME"
michael@0 31 crlutil \- List, generate, modify, or delete CRLs within the NSS security database file(s) and list, create, modify or delete certificates entries in a particular CRL\&.
michael@0 32 .SH "SYNOPSIS"
michael@0 33 .HP \w'\fBcrlutil\fR\ 'u
michael@0 34 \fBcrlutil\fR [\fIoptions\fR] [[\fIarguments\fR]]
michael@0 35 .SH "STATUS"
michael@0 36 .PP
michael@0 37 This documentation is still work in progress\&. Please contribute to the initial review in
michael@0 38 \m[blue]\fBMozilla NSS bug 836477\fR\m[]\&\s-2\u[1]\d\s+2
michael@0 39 .SH "DESCRIPTION"
michael@0 40 .PP
michael@0 41 The Certificate Revocation List (CRL) Management Tool,
michael@0 42 \fBcrlutil\fR, is a command\-line utility that can list, generate, modify, or delete CRLs within the NSS security database file(s) and list, create, modify or delete certificates entries in a particular CRL\&.
michael@0 43 .PP
michael@0 44 The key and certificate management process generally begins with creating keys in the key database, then generating and managing certificates in the certificate database(see certutil tool) and continues with certificates expiration or revocation\&.
michael@0 45 .PP
michael@0 46 This document discusses certificate revocation list management\&. For information on security module database management, see Using the Security Module Database Tool\&. For information on certificate and key database management, see Using the Certificate Database Tool\&.
michael@0 47 .PP
michael@0 48 To run the Certificate Revocation List Management Tool, type the command
michael@0 49 .PP
michael@0 50 crlutil option [arguments]
michael@0 51 .PP
michael@0 52 where options and arguments are combinations of the options and arguments listed in the following section\&. Each command takes one option\&. Each option may take zero or more arguments\&. To see a usage string, issue the command without options, or with the \-H option\&.
michael@0 53 .SH "OPTIONS AND ARGUMENTS"
michael@0 54 .PP
michael@0 55 .PP
michael@0 56 \fBOptions\fR
michael@0 57 .PP
michael@0 58 Options specify an action\&. Option arguments modify an action\&. The options and arguments for the crlutil command are defined as follows:
michael@0 59 .PP
michael@0 60 \-D
michael@0 61 .RS 4
michael@0 62 Delete Certificate Revocation List from cert database\&.
michael@0 63 .RE
michael@0 64 .PP
michael@0 65 \-E
michael@0 66 .RS 4
michael@0 67 Erase all CRLs of specified type from the cert database
michael@0 68 .RE
michael@0 69 .PP
michael@0 70 \-G
michael@0 71 .RS 4
michael@0 72 Create new Certificate Revocation List (CRL)\&.
michael@0 73 .RE
michael@0 74 .PP
michael@0 75 \-I
michael@0 76 .RS 4
michael@0 77 Import a CRL to the cert database
michael@0 78 .RE
michael@0 79 .PP
michael@0 80 \-L
michael@0 81 .RS 4
michael@0 82 List existing CRL located in cert database file\&.
michael@0 83 .RE
michael@0 84 .PP
michael@0 85 \-M
michael@0 86 .RS 4
michael@0 87 Modify existing CRL which can be located in cert db or in arbitrary file\&. If located in file it should be encoded in ASN\&.1 encode format\&.
michael@0 88 .RE
michael@0 89 .PP
michael@0 90 \-S
michael@0 91 .RS 4
michael@0 92 Show contents of a CRL file which isn\*(Aqt stored in the database\&.
michael@0 93 .RE
michael@0 94 .PP
michael@0 95 \fBArguments\fR
michael@0 96 .PP
michael@0 97 Option arguments modify an action\&.
michael@0 98 .PP
michael@0 99 \-a
michael@0 100 .RS 4
michael@0 101 Use ASCII format or allow the use of ASCII format for input and output\&. This formatting follows RFC #1113\&.
michael@0 102 .RE
michael@0 103 .PP
michael@0 104 \-B
michael@0 105 .RS 4
michael@0 106 Bypass CA signature checks\&.
michael@0 107 .RE
michael@0 108 .PP
michael@0 109 \-c crl\-gen\-file
michael@0 110 .RS 4
michael@0 111 Specify script file that will be used to control crl generation/modification\&. See crl\-cript\-file format below\&. If options \-M|\-G is used and \-c crl\-script\-file is not specified, crlutil will read script data from standard input\&.
michael@0 112 .RE
michael@0 113 .PP
michael@0 114 \-d directory
michael@0 115 .RS 4
michael@0 116 Specify the database directory containing the certificate and key database files\&. On Unix the Certificate Database Tool defaults to $HOME/\&.netscape (that is, ~/\&.netscape)\&. On Windows NT the default is the current directory\&.
michael@0 117 .sp
michael@0 118 The NSS database files must reside in the same directory\&.
michael@0 119 .RE
michael@0 120 .PP
michael@0 121 \-f password\-file
michael@0 122 .RS 4
michael@0 123 Specify a file that will automatically supply the password to include in a certificate or to access a certificate database\&. This is a plain\-text file containing one password\&. Be sure to prevent unauthorized access to this file\&.
michael@0 124 .RE
michael@0 125 .PP
michael@0 126 \-i crl\-file
michael@0 127 .RS 4
michael@0 128 Specify the file which contains the CRL to import or show\&.
michael@0 129 .RE
michael@0 130 .PP
michael@0 131 \-l algorithm\-name
michael@0 132 .RS 4
michael@0 133 Specify a specific signature algorithm\&. List of possible algorithms: MD2 | MD4 | MD5 | SHA1 | SHA256 | SHA384 | SHA512
michael@0 134 .RE
michael@0 135 .PP
michael@0 136 \-n nickname
michael@0 137 .RS 4
michael@0 138 Specify the nickname of a certificate or key to list, create, add to a database, modify, or validate\&. Bracket the nickname string with quotation marks if it contains spaces\&.
michael@0 139 .RE
michael@0 140 .PP
michael@0 141 \-o output\-file
michael@0 142 .RS 4
michael@0 143 Specify the output file name for new CRL\&. Bracket the output\-file string with quotation marks if it contains spaces\&. If this argument is not used the output destination defaults to standard output\&.
michael@0 144 .RE
michael@0 145 .PP
michael@0 146 \-P dbprefix
michael@0 147 .RS 4
michael@0 148 Specify the prefix used on the NSS security database files (for example, my_cert8\&.db and my_key3\&.db)\&. This option is provided as a special case\&. Changing the names of the certificate and key databases is not recommended\&.
michael@0 149 .RE
michael@0 150 .PP
michael@0 151 \-t crl\-type
michael@0 152 .RS 4
michael@0 153 Specify type of CRL\&. possible types are: 0 \- SEC_KRL_TYPE, 1 \- SEC_CRL_TYPE\&. This option is obsolete
michael@0 154 .RE
michael@0 155 .PP
michael@0 156 \-u url
michael@0 157 .RS 4
michael@0 158 Specify the url\&.
michael@0 159 .RE
michael@0 160 .PP
michael@0 161 \-w pwd\-string
michael@0 162 .RS 4
michael@0 163 Provide db password in command line\&.
michael@0 164 .RE
michael@0 165 .PP
michael@0 166 \-Z algorithm
michael@0 167 .RS 4
michael@0 168 Specify the hash algorithm to use for signing the CRL\&.
michael@0 169 .RE
michael@0 170 .SH "CRL GENERATION SCRIPT SYNTAX"
michael@0 171 .PP
michael@0 172 CRL generation script file has the following syntax:
michael@0 173 .PP
michael@0 174 * Line with comments should have # as a first symbol of a line
michael@0 175 .PP
michael@0 176 * Set "this update" or "next update" CRL fields:
michael@0 177 .PP
michael@0 178 update=YYYYMMDDhhmmssZ nextupdate=YYYYMMDDhhmmssZ
michael@0 179 .PP
michael@0 180 Field "next update" is optional\&. Time should be in GeneralizedTime format (YYYYMMDDhhmmssZ)\&. For example: 20050204153000Z
michael@0 181 .PP
michael@0 182 * Add an extension to a CRL or a crl certificate entry:
michael@0 183 .PP
michael@0 184 addext extension\-name critical/non\-critical [arg1[arg2 \&.\&.\&.]]
michael@0 185 .PP
michael@0 186 Where:
michael@0 187 .PP
michael@0 188 extension\-name: string value of a name of known extensions\&. critical/non\-critical: is 1 when extension is critical and 0 otherwise\&. arg1, arg2: specific to extension type extension parameters
michael@0 189 .PP
michael@0 190 addext uses the range that was set earlier by addcert and will install an extension to every cert entries within the range\&.
michael@0 191 .PP
michael@0 192 * Add certificate entries(s) to CRL:
michael@0 193 .PP
michael@0 194 addcert range date
michael@0 195 .PP
michael@0 196 range: two integer values separated by dash: range of certificates that will be added by this command\&. dash is used as a delimiter\&. Only one cert will be added if there is no delimiter\&. date: revocation date of a cert\&. Date should be represented in GeneralizedTime format (YYYYMMDDhhmmssZ)\&.
michael@0 197 .PP
michael@0 198 * Remove certificate entry(s) from CRL
michael@0 199 .PP
michael@0 200 rmcert range
michael@0 201 .PP
michael@0 202 Where:
michael@0 203 .PP
michael@0 204 range: two integer values separated by dash: range of certificates that will be added by this command\&. dash is used as a delimiter\&. Only one cert will be added if there is no delimiter\&.
michael@0 205 .PP
michael@0 206 * Change range of certificate entry(s) in CRL
michael@0 207 .PP
michael@0 208 range new\-range
michael@0 209 .PP
michael@0 210 Where:
michael@0 211 .PP
michael@0 212 new\-range: two integer values separated by dash: range of certificates that will be added by this command\&. dash is used as a delimiter\&. Only one cert will be added if there is no delimiter\&.
michael@0 213 .PP
michael@0 214 Implemented Extensions
michael@0 215 .PP
michael@0 216 The extensions defined for CRL provide methods for associating additional attributes with CRLs of theirs entries\&. For more information see RFC #3280
michael@0 217 .PP
michael@0 218 * Add The Authority Key Identifier extension:
michael@0 219 .PP
michael@0 220 The authority key identifier extension provides a means of identifying the public key corresponding to the private key used to sign a CRL\&.
michael@0 221 .PP
michael@0 222 authKeyId critical [key\-id | dn cert\-serial]
michael@0 223 .PP
michael@0 224 Where:
michael@0 225 .PP
michael@0 226 authKeyIdent: identifies the name of an extension critical: value of 1 of 0\&. Should be set to 1 if this extension is critical or 0 otherwise\&. key\-id: key identifier represented in octet string\&. dn:: is a CA distinguished name cert\-serial: authority certificate serial number\&.
michael@0 227 .PP
michael@0 228 * Add Issuer Alternative Name extension:
michael@0 229 .PP
michael@0 230 The issuer alternative names extension allows additional identities to be associated with the issuer of the CRL\&. Defined options include an rfc822 name (electronic mail address), a DNS name, an IP address, and a URI\&.
michael@0 231 .PP
michael@0 232 issuerAltNames non\-critical name\-list
michael@0 233 .PP
michael@0 234 Where:
michael@0 235 .PP
michael@0 236 subjAltNames: identifies the name of an extension should be set to 0 since this is non\-critical extension name\-list: comma separated list of names
michael@0 237 .PP
michael@0 238 * Add CRL Number extension:
michael@0 239 .PP
michael@0 240 The CRL number is a non\-critical CRL extension which conveys a monotonically increasing sequence number for a given CRL scope and CRL issuer\&. This extension allows users to easily determine when a particular CRL supersedes another CRL
michael@0 241 .PP
michael@0 242 crlNumber non\-critical number
michael@0 243 .PP
michael@0 244 Where:
michael@0 245 .PP
michael@0 246 crlNumber: identifies the name of an extension critical: should be set to 0 since this is non\-critical extension number: value of long which identifies the sequential number of a CRL\&.
michael@0 247 .PP
michael@0 248 * Add Revocation Reason Code extension:
michael@0 249 .PP
michael@0 250 The reasonCode is a non\-critical CRL entry extension that identifies the reason for the certificate revocation\&.
michael@0 251 .PP
michael@0 252 reasonCode non\-critical code
michael@0 253 .PP
michael@0 254 Where:
michael@0 255 .PP
michael@0 256 reasonCode: identifies the name of an extension non\-critical: should be set to 0 since this is non\-critical extension code: the following codes are available:
michael@0 257 .PP
michael@0 258 unspecified (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), removeFromCRL (8), privilegeWithdrawn (9), aACompromise (10)
michael@0 259 .PP
michael@0 260 * Add Invalidity Date extension:
michael@0 261 .PP
michael@0 262 The invalidity date is a non\-critical CRL entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid\&.
michael@0 263 .PP
michael@0 264 invalidityDate non\-critical date
michael@0 265 .PP
michael@0 266 Where:
michael@0 267 .PP
michael@0 268 crlNumber: identifies the name of an extension non\-critical: should be set to 0 since this is non\-critical extension date: invalidity date of a cert\&. Date should be represented in GeneralizedTime format (YYYYMMDDhhmmssZ)\&.
michael@0 269 .SH "USAGE"
michael@0 270 .PP
michael@0 271 The Certificate Revocation List Management Tool\*(Aqs capabilities are grouped as follows, using these combinations of options and arguments\&. Options and arguments in square brackets are optional, those without square brackets are required\&.
michael@0 272 .PP
michael@0 273 See "Implemented extensions" for more information regarding extensions and their parameters\&.
michael@0 274 .PP
michael@0 275 * Creating or modifying a CRL:
michael@0 276 .sp
michael@0 277 .if n \{\
michael@0 278 .RS 4
michael@0 279 .\}
michael@0 280 .nf
michael@0 281 crlutil \-G|\-M \-c crl\-gen\-file \-n nickname [\-i crl] [\-u url] [\-d keydir] [\-P dbprefix] [\-l alg] [\-a] [\-B]
michael@0 282
michael@0 283 .fi
michael@0 284 .if n \{\
michael@0 285 .RE
michael@0 286 .\}
michael@0 287 .PP
michael@0 288 * Listing all CRls or a named CRL:
michael@0 289 .sp
michael@0 290 .if n \{\
michael@0 291 .RS 4
michael@0 292 .\}
michael@0 293 .nf
michael@0 294 crlutil \-L [\-n crl\-name] [\-d krydir]
michael@0 295
michael@0 296 .fi
michael@0 297 .if n \{\
michael@0 298 .RE
michael@0 299 .\}
michael@0 300 .PP
michael@0 301 * Deleting CRL from db:
michael@0 302 .sp
michael@0 303 .if n \{\
michael@0 304 .RS 4
michael@0 305 .\}
michael@0 306 .nf
michael@0 307 crlutil \-D \-n nickname [\-d keydir] [\-P dbprefix]
michael@0 308
michael@0 309 .fi
michael@0 310 .if n \{\
michael@0 311 .RE
michael@0 312 .\}
michael@0 313 .PP
michael@0 314 * Erasing CRLs from db:
michael@0 315 .sp
michael@0 316 .if n \{\
michael@0 317 .RS 4
michael@0 318 .\}
michael@0 319 .nf
michael@0 320 crlutil \-E [\-d keydir] [\-P dbprefix]
michael@0 321
michael@0 322 .fi
michael@0 323 .if n \{\
michael@0 324 .RE
michael@0 325 .\}
michael@0 326 .PP
michael@0 327 * Deleting CRL from db:
michael@0 328 .sp
michael@0 329 .if n \{\
michael@0 330 .RS 4
michael@0 331 .\}
michael@0 332 .nf
michael@0 333 crlutil \-D \-n nickname [\-d keydir] [\-P dbprefix]
michael@0 334
michael@0 335 .fi
michael@0 336 .if n \{\
michael@0 337 .RE
michael@0 338 .\}
michael@0 339 .PP
michael@0 340 * Erasing CRLs from db:
michael@0 341 .sp
michael@0 342 .if n \{\
michael@0 343 .RS 4
michael@0 344 .\}
michael@0 345 .nf
michael@0 346 crlutil \-E [\-d keydir] [\-P dbprefix]
michael@0 347
michael@0 348 .fi
michael@0 349 .if n \{\
michael@0 350 .RE
michael@0 351 .\}
michael@0 352 .PP
michael@0 353 * Import CRL from file:
michael@0 354 .sp
michael@0 355 .if n \{\
michael@0 356 .RS 4
michael@0 357 .\}
michael@0 358 .nf
michael@0 359 crlutil \-I \-i crl [\-t crlType] [\-u url] [\-d keydir] [\-P dbprefix] [\-B]
michael@0 360
michael@0 361 .fi
michael@0 362 .if n \{\
michael@0 363 .RE
michael@0 364 .\}
michael@0 365 .SH "SEE ALSO"
michael@0 366 .PP
michael@0 367 certutil(1)
michael@0 368 .SH "ADDITIONAL RESOURCES"
michael@0 369 .PP
michael@0 370 For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at
michael@0 371 \m[blue]\fBhttp://www\&.mozilla\&.org/projects/security/pki/nss/\fR\m[]\&. The NSS site relates directly to NSS code changes and releases\&.
michael@0 372 .PP
michael@0 373 Mailing lists: https://lists\&.mozilla\&.org/listinfo/dev\-tech\-crypto
michael@0 374 .PP
michael@0 375 IRC: Freenode at #dogtag\-pki
michael@0 376 .SH "AUTHORS"
michael@0 377 .PP
michael@0 378 The NSS tools were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google\&.
michael@0 379 .PP
michael@0 380 Authors: Elio Maldonado <emaldona@redhat\&.com>, Deon Lackey <dlackey@redhat\&.com>\&.
michael@0 381 .SH "LICENSE"
michael@0 382 .PP
michael@0 383 Licensed under the Mozilla Public License, v\&. 2\&.0\&. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla\&.org/MPL/2\&.0/\&.
michael@0 384 .SH "NOTES"
michael@0 385 .IP " 1." 4
michael@0 386 Mozilla NSS bug 836477
michael@0 387 .RS 4
michael@0 388 \%https://bugzilla.mozilla.org/show_bug.cgi?id=836477
michael@0 389 .RE

mercurial