Debian Codegraph @

upstream/debian-unstable/man1/openssl-pkcs7.1ssl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "OPENSSL-PKCS7 1SSL"
58 .TH OPENSSL-PKCS7 1SSL 2026-04-07 3.6.2 OpenSSL
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 openssl\-pkcs7 \- PKCS#7 command
65 .SH SYNOPSIS
66 .IX Header "SYNOPSIS"
67 \&\fBopenssl\fR \fBpkcs7\fR
68 [\fB\-help\fR]
69 [\fB\-inform\fR \fBDER\fR|\fBPEM\fR]
70 [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
71 [\fB\-in\fR \fIfilename\fR]
72 [\fB\-out\fR \fIfilename\fR]
73 [\fB\-print\fR]
74 [\fB\-print_certs\fR]
75 [\fB\-quiet\fR]
76 [\fB\-text\fR]
77 [\fB\-noout\fR]
78 [\fB\-engine\fR \fIid\fR]
79 [\fB\-provider\fR \fIname\fR]
80 [\fB\-provider\-path\fR \fIpath\fR]
81 [\fB\-provparam\fR \fI[name:]key=value\fR]
82 [\fB\-propquery\fR \fIpropq\fR]
83 .SH DESCRIPTION
84 .IX Header "DESCRIPTION"
85 This command processes PKCS#7 files. Note that it only understands PKCS#7
86 v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
87 described in IETF RFC 2630.
88 .SH OPTIONS
89 .IX Header "OPTIONS"
90 .IP \fB\-help\fR 4
91 .IX Item "-help"
92 Print out a usage message.
93 .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR, \fB\-outform\fR \fBDER\fR|\fBPEM\fR" 4
94 .IX Item "-inform DER|PEM, -outform DER|PEM"
95 The input and formats; the default is \fBPEM\fR.
96 See \fBopenssl\-format\-options\fR\|(1) for details.
97 .Sp
98 The data is a PKCS#7 Version 1.5 structure.
99 .IP "\fB\-in\fR \fIfilename\fR" 4
100 .IX Item "-in filename"
101 This specifies the input filename to read from or standard input if this
102 option is not specified.
103 .IP "\fB\-out\fR \fIfilename\fR" 4
104 .IX Item "-out filename"
105 Specifies the output filename to write to or standard output by
106 default.
107 .IP \fB\-print\fR 4
108 .IX Item "-print"
109 Print out the full PKCS7 object.
110 .IP \fB\-print_certs\fR 4
111 .IX Item "-print_certs"
112 Prints out any certificates or CRLs contained in the file. They are
113 preceded by their subject and issuer names in one line format.
114 .IP \fB\-quiet\fR 4
115 .IX Item "-quiet"
116 When used with \-print_certs, prints out just the PEM-encoded
117 certificates without any other output.
118 .IP \fB\-text\fR 4
119 .IX Item "-text"
120 Prints out certificate details in full rather than just subject and
121 issuer names.
122 .IP \fB\-noout\fR 4
123 .IX Item "-noout"
124 Don't output the encoded version of the PKCS#7 structure (or certificates
125 if \fB\-print_certs\fR is set).
126 .IP "\fB\-engine\fR \fIid\fR" 4
127 .IX Item "-engine id"
128 See "Engine Options" in \fBopenssl\fR\|(1).
129 This option is deprecated.
130 .IP "\fB\-provider\fR \fIname\fR" 4
131 .IX Item "-provider name"
132 .PD 0
133 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
134 .IX Item "-provider-path path"
135 .IP "\fB\-provparam\fR \fI[name:]key=value\fR" 4
136 .IX Item "-provparam [name:]key=value"
137 .IP "\fB\-propquery\fR \fIpropq\fR" 4
138 .IX Item "-propquery propq"
139 .PD
140 See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
141 .SH EXAMPLES
142 .IX Header "EXAMPLES"
143 Convert a PKCS#7 file from PEM to DER:
144 .PP
145 .Vb 1
146 \& openssl pkcs7 \-in file.pem \-outform DER \-out file.der
147 .Ve
148 .PP
149 Output all certificates in a file:
150 .PP
151 .Vb 1
152 \& openssl pkcs7 \-in file.pem \-print_certs \-out certs.pem
153 .Ve
154 .SH "SEE ALSO"
155 .IX Header "SEE ALSO"
156 \&\fBopenssl\fR\|(1),
157 \&\fBopenssl\-crl2pkcs7\fR\|(1)
158 .SH HISTORY
159 .IX Header "HISTORY"
160 The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
161 .SH COPYRIGHT
162 .IX Header "COPYRIGHT"
163 Copyright 2000\-2022 The OpenSSL Project Authors. All Rights Reserved.
164 .PP
165 Licensed under the Apache License 2.0 (the "License"). You may not use
166 this file except in compliance with the License. You can obtain a copy
167 in the file LICENSE in the source distribution or at
168 <https://www.openssl.org/source/license.html>.