Check RAND_bytes() return value or use RAND_pseudo_bytes().
[openssl.git] / doc / man / crl.pod
1 =pod
2
3 =head1 NAME
4
5 crl - CRL utility
6
7 =head1 SYNOPSIS
8
9 B<openssl> B<crl>
10 [B<-inform PEM|DER>]
11 [B<-outform PEM|DER>]
12 [B<-text>]
13 [B<-in filename>]
14 [B<-out filename>]
15 [B<-noout>]
16 [B<-hash>]
17 [B<-issuer>]
18 [B<-lastupdate>]
19 [B<-nextupdate>]
20 [B<-CAfile file>]
21 [B<-CApath dir>]
22
23 =head1 DESCRIPTION
24
25 The B<crl> command processes CRL files in DER or PEM format.
26
27 =head1 COMMAND OPTIONS
28
29 =over 4
30
31 =item B<-inform DER|PEM>
32
33 This specifies the input format. B<DER> format is DER encoded CRL
34 structure. B<PEM> (the default) is a base64 encoded version of
35 the DER form with header and footer lines.
36
37 =item B<-outform DER|PEM>
38
39 This specifies the output format, the options have the same meaning as the 
40 B<-inform> option.
41
42 =item B<-in filename>
43
44 This specifies the input filename to read from or standard input if this
45 option is not specified.
46
47 =item B<-out filename>
48
49 specifies the output filename to write to or standard output by
50 default.
51
52 =item B<-text>
53
54 print out the CRL in text form.
55
56 =item B<-noout>
57
58 don't output the encoded version of the CRL.
59
60 =item B<-hash>
61
62 output a hash of the issuer name. This can be use to lookup CRLs in
63 a directory by issuer name.
64
65 =item B<-issuer>
66
67 output the issuer name.
68
69 =item B<-lastupdate>
70
71 output the lastUpdate field.
72
73 =item B<-nextupdate>
74
75 output the nextUpdate field.
76
77 =item B<-CAfile file>
78
79 verify the signature on a CRL by looking up the issuing certificate in
80 B<file>
81
82 =item B<-CApath dir>
83
84 verify the signature on a CRL by looking up the issuing certificate in
85 B<dir>. This directory must be a standard certificate directory: that
86 is a hash of each subject name (using B<x509 -hash>) should be linked
87 to each certificate.
88
89 =back
90
91 =head1 EXAMPLES
92
93 Convert a CRL file from PEM to DER:
94
95  openssl crl -in crl.pem -outform DER -out crl.der
96
97 Output the text form of a DER encoded certificate:
98
99  openssl crl -in crl.der -text -noout
100
101 =head1 BUGS
102
103 Ideally it should be possible to create a CRL using appropriate options
104 and files too.
105
106 =head1 SEE ALSO
107
108 crl2pkcs7(1), ca(1), x509(1)
109
110 =cut