23 The B<pkcs7> command processes PKCS#7 files in DER or PEM format.
31 Print out a usage message.
33 =item B<-inform DER|PEM>
35 This specifies the input format. B<DER> format is DER encoded PKCS#7
36 v1.5 structure.B<PEM> (the default) is a base64 encoded version of
37 the DER form with header and footer lines.
39 =item B<-outform DER|PEM>
41 This specifies the output format, the options have the same meaning and default
42 as the B<-inform> option.
46 This specifies the input filename to read from or standard input if this
47 option is not specified.
49 =item B<-out filename>
51 Specifies the output filename to write to or standard output by
56 Prints out any certificates or CRLs contained in the file. They are
57 preceded by their subject and issuer names in one line format.
61 Prints out certificates details in full rather than just subject and
66 Don't output the encoded version of the PKCS#7 structure (or certificates
67 is B<-print_certs> is set).
71 Specifying an engine (by its unique B<id> string) will cause B<pkcs7>
72 to attempt to obtain a functional reference to the specified engine,
73 thus initialising it if needed. The engine will then be set as the default
74 for all available algorithms.
80 Convert a PKCS#7 file from PEM to DER:
82 openssl pkcs7 -in file.pem -outform DER -out file.der
84 Output all certificates in a file:
86 openssl pkcs7 -in file.pem -print_certs -out certs.pem
90 The PEM PKCS#7 format uses the header and footer lines:
95 For compatibility with some CAs it will also accept:
97 -----BEGIN CERTIFICATE-----
98 -----END CERTIFICATE-----
102 There is no option to print out all the fields of a PKCS#7 file.
104 This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in RFC2315 they
105 cannot currently parse, for example, the new CMS as described in RFC2630.
113 Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
115 Licensed under the OpenSSL license (the "License"). You may not use
116 this file except in compliance with the License. You can obtain a copy
117 in the file LICENSE in the source distribution or at
118 L<https://www.openssl.org/source/license.html>.