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