1PKCS7(1)                            OpenSSL                           PKCS7(1)
2
3
4

NAME

6       openssl-pkcs7, pkcs7 - PKCS#7 utility
7

SYNOPSIS

9       openssl pkcs7 [-help] [-inform PEM|DER] [-outform PEM|DER] [-in
10       filename] [-out filename] [-print_certs] [-text] [-noout] [-engine id]
11

DESCRIPTION

13       The pkcs7 command processes PKCS#7 files in DER or PEM format.
14

OPTIONS

16       -help
17           Print out a usage message.
18
19       -inform DER|PEM
20           This specifies the input format. DER format is DER encoded PKCS#7
21           v1.5 structure.PEM (the default) is a base64 encoded version of the
22           DER form with header and footer lines.
23
24       -outform DER|PEM
25           This specifies the output format, the options have the same meaning
26           and default as the -inform option.
27
28       -in filename
29           This specifies the input filename to read from or standard input if
30           this option is not specified.
31
32       -out filename
33           Specifies the output filename to write to or standard output by
34           default.
35
36       -print_certs
37           Prints out any certificates or CRLs contained in the file. They are
38           preceded by their subject and issuer names in one line format.
39
40       -text
41           Prints out certificates details in full rather than just subject
42           and issuer names.
43
44       -noout
45           Don't output the encoded version of the PKCS#7 structure (or
46           certificates is -print_certs is set).
47
48       -engine id
49           Specifying an engine (by its unique id string) will cause pkcs7 to
50           attempt to obtain a functional reference to the specified engine,
51           thus initialising it if needed. The engine will then be set as the
52           default for all available algorithms.
53

EXAMPLES

55       Convert a PKCS#7 file from PEM to DER:
56
57        openssl pkcs7 -in file.pem -outform DER -out file.der
58
59       Output all certificates in a file:
60
61        openssl pkcs7 -in file.pem -print_certs -out certs.pem
62

NOTES

64       The PEM PKCS#7 format uses the header and footer lines:
65
66        -----BEGIN PKCS7-----
67        -----END PKCS7-----
68
69       For compatibility with some CAs it will also accept:
70
71        -----BEGIN CERTIFICATE-----
72        -----END CERTIFICATE-----
73

RESTRICTIONS

75       There is no option to print out all the fields of a PKCS#7 file.
76
77       This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in
78       RFC2315 they cannot currently parse, for example, the new CMS as
79       described in RFC2630.
80

SEE ALSO

82       crl2pkcs7(1)
83
85       Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
86
87       Licensed under the OpenSSL license (the "License").  You may not use
88       this file except in compliance with the License.  You can obtain a copy
89       in the file LICENSE in the source distribution or at
90       <https://www.openssl.org/source/license.html>.
91
92
93
941.1.1g                            2020-04-23                          PKCS7(1)
Impressum