2 {- OpenSSL::safe::output_do_not_edit_headers(); -}
6 openssl-crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates
10 B<openssl> B<crl2pkcs7>
12 [B<-inform> B<DER>|B<PEM>]
13 [B<-outform> B<DER>|B<PEM>]
16 [B<-certfile> I<filename>]
21 This command takes an optional CRL and one or more
22 certificates and converts them into a PKCS#7 degenerate "certificates
31 Print out a usage message.
33 =item B<-inform> B<DER>|B<PEM>
35 The input format of the CRL; the default is B<PEM>.
36 See L<openssl(1)/Format Options> for details.
38 =item B<-outform> B<DER>|B<PEM>
40 The output format of the PKCS#7 object; the default is B<PEM>.
41 See L<openssl(1)/Format Options> for details.
43 =item B<-in> I<filename>
45 This specifies the input filename to read a CRL from or standard input if this
46 option is not specified.
48 =item B<-out> I<filename>
50 Specifies the output filename to write the PKCS#7 structure to or standard
53 =item B<-certfile> I<filename>
55 Specifies a filename containing one or more certificates in B<PEM> format.
56 All certificates in the file will be added to the PKCS#7 structure. This
57 option can be used more than once to read certificates form multiple
62 Normally a CRL is included in the output file. With this option no CRL is
63 included in the output file and a CRL is not read from the input file.
69 Create a PKCS#7 structure from a certificate and CRL:
71 openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
73 Creates a PKCS#7 structure in DER format with no CRL from several
74 different certificates:
76 openssl crl2pkcs7 -nocrl -certfile newcert.pem
77 -certfile demoCA/cacert.pem -outform DER -out p7.der
81 The output file is a PKCS#7 signed data structure containing no signers and
82 just certificates and an optional CRL.
84 This command can be used to send certificates and CAs to Netscape as part of
85 the certificate enrollment process. This involves sending the DER encoded output
86 as MIME type application/x-x509-user-cert.
88 The B<PEM> encoded form with the header and footer lines removed can be used to
89 install user certificates and CAs in MSIE using the Xenroll control.
98 Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
100 Licensed under the Apache License 2.0 (the "License"). You may not use
101 this file except in compliance with the License. You can obtain a copy
102 in the file LICENSE in the source distribution or at
103 L<https://www.openssl.org/source/license.html>.