Remove '=for openssl ifdef'
[openssl.git] / doc / man1 / openssl-crl.pod.in
1 =pod
2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
3
4 =head1 NAME
5
6 openssl-crl - CRL command
7
8 =head1 SYNOPSIS
9
10 B<openssl> B<crl>
11 [B<-help>]
12 [B<-inform> B<DER>|B<PEM>]
13 [B<-outform> B<DER>|B<PEM>]
14 [B<-key> I<filename>]
15 [B<-keyform> B<DER>|B<PEM>|B<P12>]
16 [B<-text>]
17 [B<-in> I<filename>]
18 [B<-out> I<filename>]
19 [B<-gendelta> I<filename>]
20 [B<-badsig>]
21 [B<-verify>]
22 [B<-noout>]
23 [B<-hash>]
24 [B<-hash_old>]
25 [B<-fingerprint>]
26 [B<-crlnumber>]
27 [B<-issuer>]
28 [B<-lastupdate>]
29 [B<-nextupdate>]
30 {- $OpenSSL::safe::opt_name_synopsis -}
31 {- $OpenSSL::safe::opt_trust_synopsis -}
32 {- $OpenSSL::safe::opt_provider_synopsis -}
33
34 =head1 DESCRIPTION
35
36 This command processes CRL files in DER or PEM format.
37
38 =head1 OPTIONS
39
40 =over 4
41
42 =item B<-help>
43
44 Print out a usage message.
45
46 =item B<-inform> B<DER>|B<PEM>
47
48 The CRL input format; unspecified by default.
49 See L<openssl-format-options(1)> for details.
50
51 =item B<-outform> B<DER>|B<PEM>
52
53 The CRL output format; the default is B<PEM>.
54 See L<openssl-format-options(1)> for details.
55
56 =item B<-key> I<filename>
57
58 The private key to be used to sign the CRL.
59
60 =item B<-keyform> B<DER>|B<PEM>|B<P12>
61
62 The format of the private key file; unspecified by default.
63 See L<openssl-format-options(1)> for details.
64
65 =item B<-in> I<filename>
66
67 This specifies the input filename to read from or standard input if this
68 option is not specified.
69
70 =item B<-out> I<filename>
71
72 Specifies the output filename to write to or standard output by
73 default.
74
75 =item B<-gendelta> I<filename>
76
77 Output a comparison of the main CRL and the one specified here.
78
79 =item B<-badsig>
80
81 Corrupt the signature before writing it; this can be useful
82 for testing.
83
84 =item B<-text>
85
86 Print out the CRL in text form.
87
88 =item B<-verify>
89
90 Verify the signature in the CRL.
91
92 =item B<-noout>
93
94 Don't output the encoded version of the CRL.
95
96 =item B<-fingerprint>
97
98 Output the fingerprint of the CRL.
99
100 =item B<-crlnumber>
101
102 Output the number of the CRL.
103
104 =item B<-hash>
105
106 Output a hash of the issuer name. This can be use to lookup CRLs in
107 a directory by issuer name.
108
109 =item B<-hash_old>
110
111 Outputs the "hash" of the CRL issuer name using the older algorithm
112 as used by OpenSSL before version 1.0.0.
113
114 =item B<-issuer>
115
116 Output the issuer name.
117
118 =item B<-lastupdate>
119
120 Output the lastUpdate field.
121
122 =item B<-nextupdate>
123
124 Output the nextUpdate field.
125
126 {- $OpenSSL::safe::opt_name_item -}
127
128 {- $OpenSSL::safe::opt_trust_item -}
129
130 {- $OpenSSL::safe::opt_provider_item -}
131
132 =back
133
134 =head1 EXAMPLES
135
136 Convert a CRL file from PEM to DER:
137
138  openssl crl -in crl.pem -outform DER -out crl.der
139
140 Output the text form of a DER encoded certificate:
141
142  openssl crl -in crl.der -text -noout
143
144 =head1 BUGS
145
146 Ideally it should be possible to create a CRL using appropriate options
147 and files too.
148
149 =head1 SEE ALSO
150
151 L<openssl(1)>,
152 L<openssl-crl2pkcs7(1)>,
153 L<openssl-ca(1)>,
154 L<openssl-x509(1)>,
155 L<ossl_store-file(7)>
156
157 =head1 COPYRIGHT
158
159 Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
160
161 Licensed under the Apache License 2.0 (the "License").  You may not use
162 this file except in compliance with the License.  You can obtain a copy
163 in the file LICENSE in the source distribution or at
164 L<https://www.openssl.org/source/license.html>.
165
166 =cut