]>
Commit | Line | Data |
---|---|---|
938ead8f DSH |
1 | =pod |
2 | ||
3 | =head1 NAME | |
4 | ||
5 | crl - CRL utility | |
6 | ||
7 | =head1 SYNOPSIS | |
8 | ||
9 | B<openssl> B<crl> | |
169394d4 | 10 | [B<-help>] |
938ead8f DSH |
11 | [B<-inform PEM|DER>] |
12 | [B<-outform PEM|DER>] | |
13 | [B<-text>] | |
14 | [B<-in filename>] | |
15 | [B<-out filename>] | |
fc1d88f0 | 16 | [B<-nameopt option>] |
938ead8f DSH |
17 | [B<-noout>] |
18 | [B<-hash>] | |
19 | [B<-issuer>] | |
20 | [B<-lastupdate>] | |
21 | [B<-nextupdate>] | |
22 | [B<-CAfile file>] | |
23 | [B<-CApath dir>] | |
24 | ||
25 | =head1 DESCRIPTION | |
26 | ||
27 | The B<crl> command processes CRL files in DER or PEM format. | |
28 | ||
3dfda1a6 | 29 | =head1 OPTIONS |
938ead8f DSH |
30 | |
31 | =over 4 | |
32 | ||
169394d4 MR |
33 | =item B<-help> |
34 | ||
35 | Print out a usage message. | |
36 | ||
938ead8f DSH |
37 | =item B<-inform DER|PEM> |
38 | ||
39 | This specifies the input format. B<DER> format is DER encoded CRL | |
69396b41 | 40 | structure. B<PEM> (the default) is a base64 encoded version of |
938ead8f DSH |
41 | the DER form with header and footer lines. |
42 | ||
43 | =item B<-outform DER|PEM> | |
44 | ||
7477c83e TM |
45 | This specifies the output format, the options have the same meaning and default |
46 | as the B<-inform> option. | |
938ead8f DSH |
47 | |
48 | =item B<-in filename> | |
49 | ||
50 | This specifies the input filename to read from or standard input if this | |
51 | option is not specified. | |
52 | ||
53 | =item B<-out filename> | |
54 | ||
c4de074e | 55 | Specifies the output filename to write to or standard output by |
938ead8f DSH |
56 | default. |
57 | ||
58 | =item B<-text> | |
59 | ||
c4de074e | 60 | Print out the CRL in text form. |
938ead8f | 61 | |
fc1d88f0 RS |
62 | =item B<-nameopt option> |
63 | ||
c4de074e | 64 | Option which determines how the subject or issuer names are displayed. See |
9b86974e | 65 | the description of B<-nameopt> in L<x509(1)>. |
fc1d88f0 | 66 | |
938ead8f DSH |
67 | =item B<-noout> |
68 | ||
c4de074e | 69 | Don't output the encoded version of the CRL. |
938ead8f DSH |
70 | |
71 | =item B<-hash> | |
72 | ||
c4de074e | 73 | Output a hash of the issuer name. This can be use to lookup CRLs in |
938ead8f DSH |
74 | a directory by issuer name. |
75 | ||
dbb7654d DSH |
76 | =item B<-hash_old> |
77 | ||
c4de074e | 78 | Outputs the "hash" of the CRL issuer name using the older algorithm |
e90fc053 | 79 | as used by OpenSSL before version 1.0.0. |
dbb7654d | 80 | |
938ead8f DSH |
81 | =item B<-issuer> |
82 | ||
c4de074e | 83 | Output the issuer name. |
938ead8f DSH |
84 | |
85 | =item B<-lastupdate> | |
86 | ||
c4de074e | 87 | Output the lastUpdate field. |
938ead8f DSH |
88 | |
89 | =item B<-nextupdate> | |
90 | ||
c4de074e | 91 | Output the nextUpdate field. |
938ead8f DSH |
92 | |
93 | =item B<-CAfile file> | |
94 | ||
c4de074e P |
95 | Verify the signature on a CRL by looking up the issuing certificate in |
96 | B<file>. | |
938ead8f DSH |
97 | |
98 | =item B<-CApath dir> | |
99 | ||
c4de074e | 100 | Verify the signature on a CRL by looking up the issuing certificate in |
938ead8f DSH |
101 | B<dir>. This directory must be a standard certificate directory: that |
102 | is a hash of each subject name (using B<x509 -hash>) should be linked | |
103 | to each certificate. | |
104 | ||
105 | =back | |
106 | ||
0cd4498b DSH |
107 | =head1 NOTES |
108 | ||
109 | The PEM CRL format uses the header and footer lines: | |
110 | ||
111 | -----BEGIN X509 CRL----- | |
112 | -----END X509 CRL----- | |
113 | ||
938ead8f DSH |
114 | =head1 EXAMPLES |
115 | ||
116 | Convert a CRL file from PEM to DER: | |
117 | ||
118 | openssl crl -in crl.pem -outform DER -out crl.der | |
119 | ||
120 | Output the text form of a DER encoded certificate: | |
121 | ||
122 | openssl crl -in crl.der -text -noout | |
123 | ||
124 | =head1 BUGS | |
125 | ||
126 | Ideally it should be possible to create a CRL using appropriate options | |
127 | and files too. | |
128 | ||
69396b41 UM |
129 | =head1 SEE ALSO |
130 | ||
9b86974e | 131 | L<crl2pkcs7(1)>, L<ca(1)>, L<x509(1)> |
938ead8f | 132 | |
e2f92610 RS |
133 | =head1 COPYRIGHT |
134 | ||
c4de074e | 135 | Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved. |
e2f92610 RS |
136 | |
137 | Licensed under the OpenSSL license (the "License"). You may not use | |
138 | this file except in compliance with the License. You can obtain a copy | |
139 | in the file LICENSE in the source distribution or at | |
140 | L<https://www.openssl.org/source/license.html>. | |
141 | ||
142 | =cut |