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