mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
35a810bb1d
Almost all OpenSSL commands are in reality 'openssl cmd', so make sure they are refered to like that and not just as the sub-command. Self-references are avoided as much as is possible, and replaced with "this command". In some cases, we even avoid that with a slight rewrite of the sentence or paragrah they were in. However, in the few cases where a self-reference is still admissible, they are done in bold, i.e. openssl-speed.pod references itself like this: B<openssl speed> References to other commands are done as manual links, i.e. CA.pl.pod references 'openssl req' like this: L<openssl-req(1)> Some commands are examples rather than references; we enclose those in C<>. While we are it, we abolish "utility", replacing it with "command", or remove it entirely in some cases. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10065)
148 lines
2.9 KiB
Plaintext
148 lines
2.9 KiB
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
openssl-crl - CRL utility
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
B<openssl> B<crl>
|
|
[B<-help>]
|
|
[B<-inform> B<DER>|B<PEM>]
|
|
[B<-outform> B<DER>|B<PEM>]
|
|
[B<-text>]
|
|
[B<-in> I<filename>]
|
|
[B<-out> I<filename>]
|
|
[B<-nameopt> I<option>]
|
|
[B<-noout>]
|
|
[B<-hash>]
|
|
[B<-issuer>]
|
|
[B<-lastupdate>]
|
|
[B<-nextupdate>]
|
|
[B<-CAfile> I<file>]
|
|
[B<-CApath> I<dir>]
|
|
|
|
=for comment ifdef hash_old
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
This command processes CRL files in DER or PEM format.
|
|
|
|
=head1 OPTIONS
|
|
|
|
=over 4
|
|
|
|
=item B<-help>
|
|
|
|
Print out a usage message.
|
|
|
|
=item B<-inform> B<DER>|B<PEM>
|
|
|
|
This specifies the input format. B<DER> format is DER encoded CRL
|
|
structure. B<PEM> (the default) is a base64 encoded version of
|
|
the DER form with header and footer lines.
|
|
|
|
=item B<-outform> B<DER>|B<PEM>
|
|
|
|
This specifies the output format, the options have the same meaning and default
|
|
as the B<-inform> option.
|
|
|
|
=item B<-in> I<filename>
|
|
|
|
This specifies the input filename to read from or standard input if this
|
|
option is not specified.
|
|
|
|
=item B<-out> I<filename>
|
|
|
|
Specifies the output filename to write to or standard output by
|
|
default.
|
|
|
|
=item B<-text>
|
|
|
|
Print out the CRL in text form.
|
|
|
|
=item B<-nameopt> I<option>
|
|
|
|
Option which determines how the subject or issuer names are displayed. See
|
|
the description of B<-nameopt> in L<x509(1)>.
|
|
|
|
=item B<-noout>
|
|
|
|
Don't output the encoded version of the CRL.
|
|
|
|
=item B<-hash>
|
|
|
|
Output a hash of the issuer name. This can be use to lookup CRLs in
|
|
a directory by issuer name.
|
|
|
|
=item B<-hash_old>
|
|
|
|
Outputs the "hash" of the CRL issuer name using the older algorithm
|
|
as used by OpenSSL before version 1.0.0.
|
|
|
|
=item B<-issuer>
|
|
|
|
Output the issuer name.
|
|
|
|
=item B<-lastupdate>
|
|
|
|
Output the lastUpdate field.
|
|
|
|
=item B<-nextupdate>
|
|
|
|
Output the nextUpdate field.
|
|
|
|
=item B<-CAfile> I<file>
|
|
|
|
Verify the signature on a CRL by looking up the issuing certificate in
|
|
I<file>.
|
|
|
|
=item B<-CApath> I<dir>
|
|
|
|
Verify the signature on a CRL by looking up the issuing certificate in
|
|
I<dir>. This directory must be a standard certificate directory: that
|
|
is a hash of each subject name (using the L<openssl-x509(1)> B<-hash> option)
|
|
should be linked to each certificate.
|
|
|
|
=back
|
|
|
|
=head1 NOTES
|
|
|
|
The PEM CRL format uses the header and footer lines:
|
|
|
|
-----BEGIN X509 CRL-----
|
|
-----END X509 CRL-----
|
|
|
|
=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:
|
|
|
|
openssl crl -in crl.der -inform DER -text -noout
|
|
|
|
=head1 BUGS
|
|
|
|
Ideally it should be possible to create a CRL using appropriate options
|
|
and files too.
|
|
|
|
=head1 SEE ALSO
|
|
|
|
L<openssl(1)>,
|
|
L<openssl-crl2pkcs7(1)>,
|
|
L<openssl-ca(1)>,
|
|
L<openssl-x509(1)>
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
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
|