1 .TH "PKI \-\-SIGNCRL" 1 "2013-08-12" "@PACKAGE_VERSION@" "strongSwan"
5 pki \-\-signcrl \- Issue a Certificate Revocation List (CRL) using a CA certificate and key
10 .BI \-\-cakey\~ file |\-\-cakeyid\~ hex
13 .OP \-\-this-update datetime
14 .OP \-\-next-update datetime
19 .OP \fR[\fB\-\-reason\ \fIreason\fR]\ \fR[\fB\-\-date\ \fIts\fR]\ \fB\-\-cert\ \fIfile\fB|\-\-serial\ \fIhex\fR
20 .OP \-\-outform encoding
25 .BI \-\-options\~ file
38 is used to issue a Certificate Revocation List (CRL) using a CA certificate and
45 Print usage information with a summary of the available options.
47 .BI "\-v, \-\-debug " level
48 Set debug level, default: 1.
50 .BI "\-+, \-\-options " file
51 Read command line options from \fIfile\fR.
53 .BI "\-k, \-\-cakey " file
54 CA private key file. Either this or
58 .BI "\-x, \-\-cakeyid " hex
59 Key ID of a CA private key on a smartcard. Either this or
63 .BI "\-c, \-\-cacert " file
64 CA certificate file. Required.
66 .BI "\-l, \-\-lifetime " days
67 Days until the CRL gets a nextUpdate, default: 15. Ignored if both
68 an absolute start and end time are given.
70 .BI "\-F, \-\-this-update " datetime
71 Absolute time when the validity of the CRL begins. The datetime format is
76 .BI "\-T, \-\-next-update " datetime
77 Absolute time when the validity of the CRL end. The datetime format is
82 .BI "\-D, \-\-dateform " form
83 strptime(3) format for the
90 .BI "\-a, \-\-lastcrl " crl
91 CRL of lastUpdate to copy revocations from.
93 .BI "\-b, \-\-basecrl " crl
94 Base CRL to create a delta CRL for.
96 .BI "\-u, \-\-crluri " uri
97 Freshest delta CRL URI to include in CRL. Can be used multiple times.
99 .BI "\-g, \-\-digest " digest
100 Digest to use for signature creation. One of \fImd5\fR, \fIsha1\fR,
101 \fIsha224\fR, \fIsha256\fR, \fIsha384\fR, or \fIsha512\fR. The default is
102 determined based on the type and size of the signature key.
104 .BI "\-f, \-\-outform " encoding
105 Encoding of the created certificate file. Either \fIder\fR (ASN.1 DER) or
106 \fIpem\fR (Base64 PEM), defaults to \fIder\fR.
108 .SS "Revoked Certificates"
109 Multiple revoked certificates can be added to the CRL by either providing the
110 certificate file or the respective serial number directly.
111 A reason and a timestamp can be configured for each revocation (they have to be
112 given before each certificate/serial on the command line).
114 .BI "\-r, \-\-reason " reason
115 The reason why the certificate was revoked. One of \fIkey\-compromise\fR,
116 \fIca\-compromise\fR, \fIaffiliation\-changed\fR, \fIsuperseded\fR,
117 \fIcessation\-of\-operation\fR, or \fIcertificate\-hold\fR.
119 .BI "\-d, \-\-date " ts
120 Revocation date as Unix timestamp. Defaults to the current time.
122 .BI "\-z, \-\-cert " file
123 Certificate file to revoke.
125 .BI "\-s, \-\-serial " hex
126 Hexadecimal encoded serial number of the certificate to revoke.
130 Revoke a certificate:
133 pki \-\-signcrl \-\-cacert ca_cert.der \-\-cakey ca_key.der \\
134 \-\-reason superseded \-\-cert cert.der > crl.der
137 Update an existing CRL with two new revocations, using the certificate's serial
138 number, but no reason:
141 pki \-\-signcrl \-\-cacert ca_cert.der \-\-cakey ca_key.der \\
142 \-\-lastcrl old_crl.der \-\-serial 0123 \-\-serial 0345 > crl.der