203 lines
4.4 KiB
HTML
203 lines
4.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PKCS7</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PKCS7</H1>
|
|
Section: OpenSSL (1SSL)<BR>Updated: 2021-03-22<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
openssl-pkcs7, pkcs7 - PKCS#7 utility
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
<B>openssl</B> <B>pkcs7</B>
|
|
[<B>-help</B>]
|
|
[<B>-inform PEM|DER</B>]
|
|
[<B>-outform PEM|DER</B>]
|
|
[<B>-in filename</B>]
|
|
[<B>-out filename</B>]
|
|
[<B>-print_certs</B>]
|
|
[<B>-text</B>]
|
|
[<B>-noout</B>]
|
|
[<B>-engine id</B>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
The <B>pkcs7</B> command processes PKCS#7 files in <FONT SIZE="-1">DER</FONT> or <FONT SIZE="-1">PEM</FONT> format.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-help</B><DD>
|
|
|
|
|
|
Print out a usage message.
|
|
<DT id="2"><B>-inform DER|PEM</B><DD>
|
|
|
|
|
|
This specifies the input format. <B></B><FONT SIZE="-1"><B>DER</B></FONT><B></B> format is <FONT SIZE="-1">DER</FONT> encoded PKCS#7
|
|
v1.5 structure.<B></B><FONT SIZE="-1"><B>PEM</B></FONT><B></B> (the default) is a base64 encoded version of
|
|
the <FONT SIZE="-1">DER</FONT> form with header and footer lines.
|
|
<DT id="3"><B>-outform DER|PEM</B><DD>
|
|
|
|
|
|
This specifies the output format, the options have the same meaning and default
|
|
as the <B>-inform</B> option.
|
|
<DT id="4"><B>-in filename</B><DD>
|
|
|
|
|
|
This specifies the input filename to read from or standard input if this
|
|
option is not specified.
|
|
<DT id="5"><B>-out filename</B><DD>
|
|
|
|
|
|
Specifies the output filename to write to or standard output by
|
|
default.
|
|
<DT id="6"><B>-print_certs</B><DD>
|
|
|
|
|
|
Prints out any certificates or CRLs contained in the file. They are
|
|
preceded by their subject and issuer names in one line format.
|
|
<DT id="7"><B>-text</B><DD>
|
|
|
|
|
|
Prints out certificates details in full rather than just subject and
|
|
issuer names.
|
|
<DT id="8"><B>-noout</B><DD>
|
|
|
|
|
|
Don't output the encoded version of the PKCS#7 structure (or certificates
|
|
is <B>-print_certs</B> is set).
|
|
<DT id="9"><B>-engine id</B><DD>
|
|
|
|
|
|
Specifying an engine (by its unique <B>id</B> string) will cause <B>pkcs7</B>
|
|
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.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
|
|
|
|
Convert a PKCS#7 file from <FONT SIZE="-1">PEM</FONT> to <FONT SIZE="-1">DER:</FONT>
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
openssl pkcs7 -in file.pem -outform DER -out file.der
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
Output all certificates in a file:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
openssl pkcs7 -in file.pem -print_certs -out certs.pem
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
|
|
|
|
The <FONT SIZE="-1">PEM</FONT> PKCS#7 format uses the header and footer lines:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
-----BEGIN PKCS7-----
|
|
-----END PKCS7-----
|
|
|
|
</PRE>
|
|
|
|
|
|
<P>
|
|
|
|
For compatibility with some CAs it will also accept:
|
|
<P>
|
|
|
|
|
|
|
|
<PRE>
|
|
-----BEGIN CERTIFICATE-----
|
|
-----END CERTIFICATE-----
|
|
|
|
</PRE>
|
|
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>RESTRICTIONS</H2>
|
|
|
|
|
|
|
|
There is no option to print out all the fields of a PKCS#7 file.
|
|
<P>
|
|
|
|
This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in <FONT SIZE="-1">RFC2315</FONT> they
|
|
cannot currently parse, for example, the new <FONT SIZE="-1">CMS</FONT> as described in <FONT SIZE="-1">RFC2630.</FONT>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+crl2pkcs7">crl2pkcs7</A></B>(1)
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
|
|
|
|
Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
|
|
<P>
|
|
|
|
Licensed under the OpenSSL license (the ``License''). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file <FONT SIZE="-1">LICENSE</FONT> in the source distribution or at
|
|
<<A HREF="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</A>>.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">EXAMPLES</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">NOTES</A><DD>
|
|
<DT id="16"><A HREF="#lbAH">RESTRICTIONS</A><DD>
|
|
<DT id="17"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="18"><A HREF="#lbAJ">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:23 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|