Update copyright year
[openssl.git] / doc / man1 / openssl-pkcs7.pod.in
1 =pod
2
3 =begin comment
4 {- join("\n", @autowarntext) -}
5
6 =end comment
7
8 =head1 NAME
9
10 openssl-pkcs7 - PKCS#7 command
11
12 =head1 SYNOPSIS
13
14 B<openssl> B<pkcs7>
15 [B<-help>]
16 [B<-inform> B<DER>|B<PEM>]
17 [B<-outform> B<DER>|B<PEM>]
18 [B<-in> I<filename>]
19 [B<-out> I<filename>]
20 [B<-print>]
21 [B<-print_certs>]
22 [B<-text>]
23 [B<-noout>]
24 {- $OpenSSL::safe::opt_engine_synopsis -}
25 {- $OpenSSL::safe::opt_provider_synopsis -}
26
27 =for openssl ifdef engine
28
29 =head1 DESCRIPTION
30
31 This command processes PKCS#7 files.  Note that it only understands PKCS#7
32 v 1.5 as specified in IETF RFC 2315.  It cannot currently parse CMS as
33 described in IETF RFC 2630.
34
35 =head1 OPTIONS
36
37 =over 4
38
39 =item B<-help>
40
41 Print out a usage message.
42
43 =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
44
45 The input and formats; the default is B<PEM>.
46 See L<openssl(1)/Format Options> for details.
47
48 The data is a PKCS#7 Version 1.5 structure.
49
50 =item B<-in> I<filename>
51
52 This specifies the input filename to read from or standard input if this
53 option is not specified.
54
55 =item B<-out> I<filename>
56
57 Specifies the output filename to write to or standard output by
58 default.
59
60 =item B<-print>
61
62 Print out the full PKCS7 object.
63
64 =item B<-print_certs>
65
66 Prints out any certificates or CRLs contained in the file. They are
67 preceded by their subject and issuer names in one line format.
68
69 =item B<-text>
70
71 Prints out certificate details in full rather than just subject and
72 issuer names.
73
74 =item B<-noout>
75
76 Don't output the encoded version of the PKCS#7 structure (or certificates
77 if B<-print_certs> is set).
78
79 {- $OpenSSL::safe::opt_engine_item -}
80
81 {- $OpenSSL::safe::opt_provider_item -}
82
83 =back
84
85 =head1 EXAMPLES
86
87 Convert a PKCS#7 file from PEM to DER:
88
89  openssl pkcs7 -in file.pem -outform DER -out file.der
90
91 Output all certificates in a file:
92
93  openssl pkcs7 -in file.pem -print_certs -out certs.pem
94
95 =head1 SEE ALSO
96
97 L<openssl(1)>,
98 L<openssl-crl2pkcs7(1)>
99
100 =head1 COPYRIGHT
101
102 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
103
104 Licensed under the Apache License 2.0 (the "License").  You may not use
105 this file except in compliance with the License.  You can obtain a copy
106 in the file LICENSE in the source distribution or at
107 L<https://www.openssl.org/source/license.html>.
108
109 =cut