4 {- join("\n", @autowarntext) -}
10 openssl-pkcs7 - PKCS#7 command
16 [B<-inform> B<DER>|B<PEM>]
17 [B<-outform> B<DER>|B<PEM>]
25 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
29 This command processes PKCS#7 files. Note that it only understands PKCS#7
30 v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
31 described in IETF RFC 2630.
39 Print out a usage message.
41 =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
43 The input and formats; the default is B<PEM>.
44 See L<openssl-format-options(1)> for details.
46 The data is a PKCS#7 Version 1.5 structure.
48 =item B<-in> I<filename>
50 This specifies the input filename to read from or standard input if this
51 option is not specified.
53 =item B<-out> I<filename>
55 Specifies the output filename to write to or standard output by
60 Print out the full PKCS7 object.
64 Prints out any certificates or CRLs contained in the file. They are
65 preceded by their subject and issuer names in one line format.
69 When used with -print_certs, prints out just the PEM-encoded
70 certificates without any other output.
74 Prints out certificate details in full rather than just subject and
79 Don't output the encoded version of the PKCS#7 structure (or certificates
80 if B<-print_certs> is set).
82 {- $OpenSSL::safe::opt_engine_item -}
84 {- $OpenSSL::safe::opt_provider_item -}
90 Convert a PKCS#7 file from PEM to DER:
92 openssl pkcs7 -in file.pem -outform DER -out file.der
94 Output all certificates in a file:
96 openssl pkcs7 -in file.pem -print_certs -out certs.pem
101 L<openssl-crl2pkcs7(1)>
105 The B<-engine> option was deprecated in OpenSSL 3.0.
109 Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
111 Licensed under the Apache License 2.0 (the "License"). You may not use
112 this file except in compliance with the License. You can obtain a copy
113 in the file LICENSE in the source distribution or at
114 L<https://www.openssl.org/source/license.html>.