6 crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates
10 B<openssl> B<crl2pkcs7>
16 [B<-certfile filename>]
21 The B<crl2pkcs7> 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 DER|PEM>
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.
39 =item B<-outform DER|PEM>
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.
47 This specifies the input filename to read a CRL from or standard input if this
48 option is not specified.
50 =item B<-out filename>
52 Specifies the output filename to write the PKCS#7 structure to or standard
55 =item B<-certfile filename>
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
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.
71 Create a PKCS#7 structure from a certificate and CRL:
73 openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
75 Creates a PKCS#7 structure in DER format with no CRL from several
76 different certificates:
78 openssl crl2pkcs7 -nocrl -certfile newcert.pem
79 -certfile demoCA/cacert.pem -outform DER -out p7.der
83 The output file is a PKCS#7 signed data structure containing no signers and
84 just certificates and an optional CRL.
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.
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.
99 Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
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>.