18 The B<pkcs7> command processes PKCS#7 files in DER or PEM format.
20 =head1 COMMAND OPTIONS
24 =item B<-inform DER|PEM>
26 This specifies the input format. B<DER> format is DER encoded PKCS#7
27 v1.5 structure.B<PEM> (the default) is a base64 encoded version of
28 the DER form with header and footer lines.
30 =item B<-outform DER|PEM>
32 This specifies the output format, the options have the same meaning as the
37 This specifies the input filename to read from or standard input if this
38 option is not specified.
40 =item B<-out filename>
42 specifies the output filename to write to or standard output by
47 prints out any certificates or CRLs contained in the file. They are
48 preceded by their subject and issuer names in one line format.
54 Convert a PKCS#7 file from PEM to DER:
56 openssl pkcs7 -in file.pem -outform DER -out file.der
58 Output all certificates in a file:
60 openssl pkcs7 -in file.pem -print_certs -out certs.pem
64 There is no option to print out all the fields of a PKCS#7 file.
66 This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in RFC2315 they
67 cannot currently parse, for example, the new CMS as described in RFC2630.