pkcs7(1ssl)


NAME

   pkcs7 - PKCS#7 utility

SYNOPSIS

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

DESCRIPTION

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

COMMAND OPTIONS

   -inform DER|PEM
       This specifies the input format. DER format is DER encoded PKCS#7
       v1.5 structure.PEM (the default) is a base64 encoded version of the
       DER form with header and footer lines.

   -outform DER|PEM
       This specifies the output format, the options have the same meaning
       as the -inform option.

   -in filename
       This specifies the input filename to read from or standard input if
       this option is not specified.

   -out filename
       specifies the output filename to write to or standard output by
       default.

   -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.

   -text
       prints out certificates details in full rather than just subject
       and issuer names.

   -noout
       don't output the encoded version of the PKCS#7 structure (or
       certificates is -print_certs is set).

   -engine id
       specifying an engine (by its unique id string) will cause pkcs7 to
       attempt to obtain a functional reference to the specified engine,
       thus initialising it if needed. The engine will then be set as the
       default for all available algorithms.

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

NOTES

   The PEM PKCS#7 format uses the header and footer lines:

    -----BEGIN PKCS7-----

    -----END PKCS7-----
   For compatibility with some CAs it will also accept:

    -----BEGIN CERTIFICATE-----

    -----END CERTIFICATE-----

RESTRICTIONS

   There is no option to print out all the fields of a PKCS#7 file.

   This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in
   RFC2315 they cannot currently parse, for example, the new CMS as
   described in RFC2630.

SEE ALSO

   crl2pkcs7(1)


More Linux Commands

manpages/sigwaitinfo.2.html
sigwaitinfo(2) - synchronously wait for queued signals......
sigwaitinfo() suspends execution of the calling thread until one of the signals in set is pending (If one of the signals in set is already pending for the calli

manpages/pcre32_exec.3.html
pcre32_exec(3) Perl-compatible regular expressions..........
This function matches a compiled regular expression against a given subject string, using a matching algorithm that is similar to Perls. It returns offsets to c

manpages/controlchan.8.html
controlchan(8) - channel-fed control message handler........
Controlchan removes the responsibility for handling control messages (except cancels) from innd(8) and instead processes them from a channel or file feed. To re

manpages/iscsid.8.html
iscsid(8) Open-iSCSI daemon (Admin - Linux man page)........
The iscsid implements the control path of iSCSI protocol, plus some management facilities. For example, the daemon could be configured to automatically re-start

manpages/ber_bvarray_free.3.html
ber_bvarray_free(3) - OpenLDAP LBER types and allocation fun
The following are the basic types and structures defined for use with the Lightweight BER library. ber_int_t is a signed integer of at least 32 bits. It is comm

manpages/basename.1.html
basename(1) - strip directory and suffix from filenames.....
Print NAME with any leading directory components removed. If specified, also remove a trailing SUFFIX. Mandatory arguments to long options are mandatory for sho

manpages/terms.5.html
terms(5) - database of blessed terminals for xtermset.......
The terms database is a file whichs tells xtermset which terminals are controllable. terms is usually located in /usr/share/xtermset and it is an ASCII file. A

manpages/sem_post.3.html
sem_post(3) - unlock a semaphore (Library - Linux man page)
sem_post() increments (unlocks) the semaphore pointed to by sem. If the semaphores value consequently becomes greater than zero, then another process or thread

manpages/init.1.html
init(1) - systemd System and Service Manager (Man Page).....
systemd is a system and service manager for Linux operating systems. When run as first process on boot (as PID 1), it acts as init system that brings up and mai

manpages/zdiff.1.html
zdiff(1) - compare compressed files - Linux manual page.....
Zcmp and zdiff are used to invoke the cmp or the diff program on files compressed via gzip. All options specified are passed directly to cmp or diff. If only fi

manpages/crypt_r.3.html
crypt_r(3) - password hashing (Library - Linux man page)....
The crypt, crypt_r, crypt_rn, and crypt_ra functions calculate a cryptographic hash function of key with one of a number of supported methods as requested with

manpages/pax11publish.1.html
pax11publish(1) - PulseAudio X11 Credential Utility.........
The pax11publish utility can be used to dump or manipulate the PulseAudio server credentials that can be stored as properties on the X11 root window. Please not





We can't live, work or learn in freedom unless the software we use is free.