Deprecate the EC curve type specific functions in 1.2.0
[openssl.git] / doc / man1 / 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<-help>]
12 [B<-inform PEM|DER>]
13 [B<-outform PEM|DER>]
14 [B<-in filename>]
15 [B<-out filename>]
16 [B<-certfile filename>]
17 [B<-nocrl>]
18
19 =head1 DESCRIPTION
20
21 The B<crl2pkcs7> command takes an optional CRL and one or more
22 certificates and converts them into a PKCS#7 degenerate "certificates
23 only" structure.
24
25 =head1 OPTIONS
26
27 =over 4
28
29 =item B<-help>
30
31 Print out a usage message.
32
33 =item B<-inform DER|PEM>
34
35 This specifies the CRL input format. B<DER> format is DER encoded CRL
36 structure.B<PEM> (the default) is a base64 encoded version of
37 the DER form with header and footer lines. The default format is PEM.
38
39 =item B<-outform DER|PEM>
40
41 This specifies the PKCS#7 structure output format. B<DER> format is DER
42 encoded PKCS#7 structure.B<PEM> (the default) is a base64 encoded version of
43 the DER form with header and footer lines. The default format is PEM.
44
45 =item B<-in filename>
46
47 This specifies the input filename to read a CRL from or standard input if this
48 option is not specified.
49
50 =item B<-out filename>
51
52 Specifies the output filename to write the PKCS#7 structure to or standard
53 output by default.
54
55 =item B<-certfile filename>
56
57 Specifies a filename containing one or more certificates in B<PEM> format.
58 All certificates in the file will be added to the PKCS#7 structure. This
59 option can be used more than once to read certificates form multiple
60 files.
61
62 =item B<-nocrl>
63
64 Normally a CRL is included in the output file. With this option no CRL is
65 included in the output file and a CRL is not read from the input file.
66
67 =back
68
69 =head1 EXAMPLES
70
71 Create a PKCS#7 structure from a certificate and CRL:
72
73  openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
74
75 Creates a PKCS#7 structure in DER format with no CRL from several
76 different certificates:
77
78  openssl crl2pkcs7 -nocrl -certfile newcert.pem
79         -certfile demoCA/cacert.pem -outform DER -out p7.der
80
81 =head1 NOTES
82
83 The output file is a PKCS#7 signed data structure containing no signers and
84 just certificates and an optional CRL.
85
86 This utility can be used to send certificates and CAs to Netscape as part of
87 the certificate enrollment process. This involves sending the DER encoded output
88 as MIME type application/x-x509-user-cert.
89
90 The B<PEM> encoded form with the header and footer lines removed can be used to
91 install user certificates and CAs in MSIE using the Xenroll control.
92
93 =head1 SEE ALSO
94
95 L<pkcs7(1)>
96
97 =head1 COPYRIGHT
98
99 Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
100
101 Licensed under the OpenSSL license (the "License").  You may not use
102 this file except in compliance with the License.  You can obtain a copy
103 in the file LICENSE in the source distribution or at
104 L<https://www.openssl.org/source/license.html>.
105
106 =cut