SYNOPSIS
openssl pkcs7
[
DESCRIPTION
The pkcs7 command processes PKCS#7 files in DER or PEM format.
Options
-help -
Print out a usage message.
-inform DER|PEM-outform DER|PEM-
The input and output formats; the default is PEM. See openssl-format-options for details.
-in filename-
specifies the input file name to read from or standard input if this option is not specified.
-out filename-
specifies the output file name to write to or standard output by default.
-print -
Print out the full PKCS7 object.
-print_certs -
prints out any certificates or CRLs contained in the file. They are preceded by their subject and issuer names in one line format.
-quiet -
When used with
-print_certs , prints out just the PEM-encoded certificates without any other output. -text -
prints out certificates details in full rather than just subject and issuer names.
-noout -
does not output the encoded version of the PKCS#7 structure (or certificates is
-print_certs is set). -engine id-
See Engine Options in openssl for details. This option is deprecated.
-provider name-provider-path path-propquery propq-
See Provider Options in openssl for details.
EXAMPLES
Convert a PKCS#7 file from PEM to DER:
openssl pkcs7 -in file.pem -outform DER -out file.der
Output all certificates in a file:
openssl pkcs7 -in file.pem -print_certs -out certs.pem
COPYRIGHT
Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or here: OpenSSL.
AVAILABILITY
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- openssl crl2pkcs7
PTC MKS Toolkit 10.5 Documentation Build 40.