crl.pod 2.8 KB
Newer Older
1 2 3 4 5 6 7 8 9
=pod

=head1 NAME

crl - CRL utility

=head1 SYNOPSIS

B<openssl> B<crl>
10
[B<-help>]
11 12 13 14 15
[B<-inform PEM|DER>]
[B<-outform PEM|DER>]
[B<-text>]
[B<-in filename>]
[B<-out filename>]
16
[B<-nameopt option>]
17 18 19 20 21 22 23 24 25 26 27 28
[B<-noout>]
[B<-hash>]
[B<-issuer>]
[B<-lastupdate>]
[B<-nextupdate>]
[B<-CAfile file>]
[B<-CApath dir>]

=head1 DESCRIPTION

The B<crl> command processes CRL files in DER or PEM format.

R
Rich Salz 已提交
29
=head1 OPTIONS
30 31 32

=over 4

33 34 35 36
=item B<-help>

Print out a usage message.

37 38 39
=item B<-inform DER|PEM>

This specifies the input format. B<DER> format is DER encoded CRL
U
Ulf Möller 已提交
40
structure. B<PEM> (the default) is a base64 encoded version of
41 42 43 44
the DER form with header and footer lines.

=item B<-outform DER|PEM>

45 46
This specifies the output format, the options have the same meaning and default
as the B<-inform> option.
47 48 49 50 51 52 53 54

=item B<-in filename>

This specifies the input filename to read from or standard input if this
option is not specified.

=item B<-out filename>

P
Pauli 已提交
55
Specifies the output filename to write to or standard output by
56 57 58 59
default.

=item B<-text>

P
Pauli 已提交
60
Print out the CRL in text form.
61

62 63
=item B<-nameopt option>

P
Pauli 已提交
64
Option which determines how the subject or issuer names are displayed. See
R
Rich Salz 已提交
65
the description of B<-nameopt> in L<x509(1)>.
66

67 68
=item B<-noout>

P
Pauli 已提交
69
Don't output the encoded version of the CRL.
70 71 72

=item B<-hash>

P
Pauli 已提交
73
Output a hash of the issuer name. This can be use to lookup CRLs in
74 75
a directory by issuer name.

D
Dr. Stephen Henson 已提交
76 77
=item B<-hash_old>

P
Pauli 已提交
78
Outputs the "hash" of the CRL issuer name using the older algorithm
79
as used by OpenSSL before version 1.0.0.
D
Dr. Stephen Henson 已提交
80

81 82
=item B<-issuer>

P
Pauli 已提交
83
Output the issuer name.
84 85 86

=item B<-lastupdate>

P
Pauli 已提交
87
Output the lastUpdate field.
88 89 90

=item B<-nextupdate>

P
Pauli 已提交
91
Output the nextUpdate field.
92 93 94

=item B<-CAfile file>

P
Pauli 已提交
95 96
Verify the signature on a CRL by looking up the issuing certificate in
B<file>.
97 98 99

=item B<-CApath dir>

P
Pauli 已提交
100
Verify the signature on a CRL by looking up the issuing certificate in
101 102 103 104 105 106
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

D
Dr. Stephen Henson 已提交
107 108 109 110 111 112 113
=head1 NOTES

The PEM CRL format uses the header and footer lines:

 -----BEGIN X509 CRL-----
 -----END X509 CRL-----

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
=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 -text -noout

=head1 BUGS

Ideally it should be possible to create a CRL using appropriate options
and files too.

U
Ulf Möller 已提交
129 130
=head1 SEE ALSO

R
Rich Salz 已提交
131
L<crl2pkcs7(1)>, L<ca(1)>, L<x509(1)>
132

R
Rich Salz 已提交
133 134
=head1 COPYRIGHT

P
Pauli 已提交
135
Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
R
Rich Salz 已提交
136 137 138 139 140 141 142

Licensed under the OpenSSL license (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