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