1999-11-14 05:28:01 +08:00
|
|
|
=pod
|
|
|
|
|
|
|
|
=head1 NAME
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
openssl-crl - CRL utility
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
|
|
|
|
B<openssl> B<crl>
|
2016-02-06 00:58:45 +08:00
|
|
|
[B<-help>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-inform> B<DER>|B<PEM>]
|
|
|
|
[B<-informout> B<DER>|B<PEM>]
|
1999-11-14 05:28:01 +08:00
|
|
|
[B<-text>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-in> I<filename>]
|
|
|
|
[B<-out> I<filename>]
|
|
|
|
[B<-nameopt> I<option>]
|
1999-11-14 05:28:01 +08:00
|
|
|
[B<-noout>]
|
|
|
|
[B<-hash>]
|
|
|
|
[B<-issuer>]
|
|
|
|
[B<-lastupdate>]
|
|
|
|
[B<-nextupdate>]
|
2019-09-26 03:20:11 +08:00
|
|
|
[B<-CAfile> I<file>]
|
|
|
|
[B<-CApath> I<dir>]
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
|
|
|
|
The B<crl> command processes CRL files in DER or PEM format.
|
|
|
|
|
2016-12-13 00:14:40 +08:00
|
|
|
=head1 OPTIONS
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
2016-02-06 00:58:45 +08:00
|
|
|
=item B<-help>
|
|
|
|
|
|
|
|
Print out a usage message.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-inform> B<DER>|B<PEM>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
This specifies the input format. B<DER> format is DER encoded CRL
|
2000-01-08 10:07:46 +08:00
|
|
|
structure. B<PEM> (the default) is a base64 encoded version of
|
1999-11-14 05:28:01 +08:00
|
|
|
the DER form with header and footer lines.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-outform> B<DER>|B<PEM>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2017-08-09 21:20:43 +08:00
|
|
|
This specifies the output format, the options have the same meaning and default
|
|
|
|
as the B<-inform> option.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-in> I<filename>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
This specifies the input filename to read from or standard input if this
|
|
|
|
option is not specified.
|
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-out> I<filename>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Specifies the output filename to write to or standard output by
|
1999-11-14 05:28:01 +08:00
|
|
|
default.
|
|
|
|
|
|
|
|
=item B<-text>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Print out the CRL in text form.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-nameopt> I<option>
|
2014-07-03 10:42:40 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Option which determines how the subject or issuer names are displayed. See
|
2015-08-18 03:21:33 +08:00
|
|
|
the description of B<-nameopt> in L<x509(1)>.
|
2014-07-03 10:42:40 +08:00
|
|
|
|
1999-11-14 05:28:01 +08:00
|
|
|
=item B<-noout>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Don't output the encoded version of the CRL.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=item B<-hash>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Output a hash of the issuer name. This can be use to lookup CRLs in
|
1999-11-14 05:28:01 +08:00
|
|
|
a directory by issuer name.
|
|
|
|
|
2014-04-03 20:27:08 +08:00
|
|
|
=item B<-hash_old>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Outputs the "hash" of the CRL issuer name using the older algorithm
|
2017-07-15 21:39:45 +08:00
|
|
|
as used by OpenSSL before version 1.0.0.
|
2014-04-03 20:27:08 +08:00
|
|
|
|
1999-11-14 05:28:01 +08:00
|
|
|
=item B<-issuer>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Output the issuer name.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=item B<-lastupdate>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Output the lastUpdate field.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=item B<-nextupdate>
|
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Output the nextUpdate field.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-CAfile> I<file>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Verify the signature on a CRL by looking up the issuing certificate in
|
|
|
|
B<file>.
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2019-09-26 03:20:11 +08:00
|
|
|
=item B<-CApath> I<dir>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2017-03-30 05:38:30 +08:00
|
|
|
Verify the signature on a CRL by looking up the issuing certificate in
|
1999-11-14 05:28:01 +08:00
|
|
|
B<dir>. This directory must be a standard certificate directory: that
|
|
|
|
is a hash of each subject name (using B<x509 -hash>) should be linked
|
|
|
|
to each certificate.
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
2000-02-08 21:37:08 +08:00
|
|
|
=head1 NOTES
|
|
|
|
|
|
|
|
The PEM CRL format uses the header and footer lines:
|
|
|
|
|
|
|
|
-----BEGIN X509 CRL-----
|
|
|
|
-----END X509 CRL-----
|
|
|
|
|
1999-11-14 05:28:01 +08:00
|
|
|
=head1 EXAMPLES
|
|
|
|
|
|
|
|
Convert a CRL file from PEM to DER:
|
|
|
|
|
|
|
|
openssl crl -in crl.pem -outform DER -out crl.der
|
|
|
|
|
|
|
|
Output the text form of a DER encoded certificate:
|
|
|
|
|
2018-09-03 17:09:51 +08:00
|
|
|
openssl crl -in crl.der -inform DER -text -noout
|
1999-11-14 05:28:01 +08:00
|
|
|
|
|
|
|
=head1 BUGS
|
|
|
|
|
|
|
|
Ideally it should be possible to create a CRL using appropriate options
|
|
|
|
and files too.
|
|
|
|
|
2000-01-08 10:07:46 +08:00
|
|
|
=head1 SEE ALSO
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
L<openssl(1)>,
|
|
|
|
L<openssl-crl2pkcs7(1)>,
|
|
|
|
L<openssl-ca(1)>,
|
|
|
|
L<openssl-x509(1)>
|
1999-11-14 05:28:01 +08:00
|
|
|
|
2016-05-18 23:44:05 +08:00
|
|
|
=head1 COPYRIGHT
|
|
|
|
|
2019-08-22 07:04:41 +08:00
|
|
|
Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
|
2016-05-18 23:44:05 +08:00
|
|
|
|
2018-12-06 21:04:11 +08:00
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
2016-05-18 23:44:05 +08:00
|
|
|
this file except in compliance with the License. You can obtain a copy
|
|
|
|
in the file LICENSE in the source distribution or at
|
|
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
|
|
|
|
=cut
|