1CRL2PKCS7(1) OpenSSL CRL2PKCS7(1)
2
3
4
6 crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates.
7
9 openssl crl2pkcs7 [-inform PEM⎪DER] [-outform PEM⎪DER] [-in filename]
10 [-out filename] [-certfile filename] [-nocrl]
11
13 The crl2pkcs7 command takes an optional CRL and one or more certifi‐
14 cates and converts them into a PKCS#7 degenerate "certificates only"
15 structure.
16
18 -inform DER⎪PEM
19 This specifies the CRL input format. DER format is DER encoded CRL
20 structure.PEM (the default) is a base64 encoded version of the DER
21 form with header and footer lines.
22
23 -outform DER⎪PEM
24 This specifies the PKCS#7 structure output format. DER format is
25 DER encoded PKCS#7 structure.PEM (the default) is a base64 encoded
26 version of the DER form with header and footer lines.
27
28 -in filename
29 This specifies the input filename to read a CRL from or standard
30 input if this option is not specified.
31
32 -out filename
33 specifies the output filename to write the PKCS#7 structure to or
34 standard output by default.
35
36 -certfile filename
37 specifies a filename containing one or more certificates in PEM
38 format. All certificates in the file will be added to the PKCS#7
39 structure. This option can be used more than once to read certifi‐
40 cates form multiple files.
41
42 -nocrl
43 normally a CRL is included in the output file. With this option no
44 CRL is included in the output file and a CRL is not read from the
45 input file.
46
48 Create a PKCS#7 structure from a certificate and CRL:
49
50 openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
51
52 Creates a PKCS#7 structure in DER format with no CRL from several dif‐
53 ferent certificates:
54
55 openssl crl2pkcs7 -nocrl -certfile newcert.pem
56 -certfile demoCA/cacert.pem -outform DER -out p7.der
57
59 The output file is a PKCS#7 signed data structure containing no signers
60 and just certificates and an optional CRL.
61
62 This utility can be used to send certificates and CAs to Netscape as
63 part of the certificate enrollment process. This involves sending the
64 DER encoded output as MIME type application/x-x509-user-cert.
65
66 The PEM encoded form with the header and footer lines removed can be
67 used to install user certificates and CAs in MSIE using the Xenroll
68 control.
69
71 pkcs7(1)
72
73
74
750.9.8b 2002-07-09 CRL2PKCS7(1)