]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/openssl/doc/apps/crl2pkcs7.pod
MFC: r325328
[FreeBSD/FreeBSD.git] / crypto / openssl / doc / apps / crl2pkcs7.pod
1 =pod
2
3 =head1 NAME
4
5 openssl-crl2pkcs7,
6 crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates.
7
8 =head1 SYNOPSIS
9
10 B<openssl> B<crl2pkcs7>
11 [B<-inform PEM|DER>]
12 [B<-outform PEM|DER>]
13 [B<-in filename>]
14 [B<-out filename>]
15 [B<-certfile filename>]
16 [B<-nocrl>]
17
18 =head1 DESCRIPTION
19
20 The B<crl2pkcs7> command takes an optional CRL and one or more
21 certificates and converts them into a PKCS#7 degenerate "certificates
22 only" structure.
23
24 =head1 COMMAND OPTIONS
25
26 =over 4
27
28 =item B<-inform DER|PEM>
29
30 This specifies the CRL input format. B<DER> format is DER encoded CRL
31 structure.B<PEM> (the default) is a base64 encoded version of
32 the DER form with header and footer lines.
33
34 =item B<-outform DER|PEM>
35
36 This specifies the PKCS#7 structure output format. B<DER> format is DER
37 encoded PKCS#7 structure.B<PEM> (the default) is a base64 encoded version of
38 the DER form with header and footer lines.
39
40 =item B<-in filename>
41
42 This specifies the input filename to read a CRL from or standard input if this
43 option is not specified.
44
45 =item B<-out filename>
46
47 specifies the output filename to write the PKCS#7 structure to or standard
48 output by default.
49
50 =item B<-certfile filename>
51
52 specifies a filename containing one or more certificates in B<PEM> format.
53 All certificates in the file will be added to the PKCS#7 structure. This
54 option can be used more than once to read certificates form multiple
55 files.
56
57 =item B<-nocrl>
58
59 normally a CRL is included in the output file. With this option no CRL is
60 included in the output file and a CRL is not read from the input file.
61
62 =back
63
64 =head1 EXAMPLES
65
66 Create a PKCS#7 structure from a certificate and CRL:
67
68  openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
69
70 Creates a PKCS#7 structure in DER format with no CRL from several
71 different certificates:
72
73  openssl crl2pkcs7 -nocrl -certfile newcert.pem 
74         -certfile demoCA/cacert.pem -outform DER -out p7.der
75
76 =head1 NOTES
77
78 The output file is a PKCS#7 signed data structure containing no signers and
79 just certificates and an optional CRL.
80
81 This utility can be used to send certificates and CAs to Netscape as part of
82 the certificate enrollment process. This involves sending the DER encoded output
83 as MIME type application/x-x509-user-cert.
84
85 The B<PEM> encoded form with the header and footer lines removed can be used to
86 install user certificates and CAs in MSIE using the Xenroll control.
87
88 =head1 SEE ALSO
89
90 L<pkcs7(1)|pkcs7(1)>
91
92 =cut