openssl-pkcs7.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>openssl-pkcs7</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <link rev="made" href="mailto:root@localhost" />
  8. </head>
  9. <body>
  10. <ul id="index">
  11. <li><a href="#NAME">NAME</a></li>
  12. <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  13. <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  14. <li><a href="#OPTIONS">OPTIONS</a></li>
  15. <li><a href="#EXAMPLES">EXAMPLES</a></li>
  16. <li><a href="#SEE-ALSO">SEE ALSO</a></li>
  17. <li><a href="#HISTORY">HISTORY</a></li>
  18. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  19. </ul>
  20. <h1 id="NAME">NAME</h1>
  21. <p>openssl-pkcs7 - PKCS#7 command</p>
  22. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  23. <p><b>openssl</b> <b>pkcs7</b> [<b>-help</b>] [<b>-inform</b> <b>DER</b>|<b>PEM</b>] [<b>-outform</b> <b>DER</b>|<b>PEM</b>] [<b>-in</b> <i>filename</i>] [<b>-out</b> <i>filename</i>] [<b>-print</b>] [<b>-print_certs</b>] [<b>-quiet</b>] [<b>-text</b>] [<b>-noout</b>] [<b>-engine</b> <i>id</i>] [<b>-provider</b> <i>name</i>] [<b>-provider-path</b> <i>path</i>] [<b>-propquery</b> <i>propq</i>]</p>
  24. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  25. <p>This command processes PKCS#7 files. Note that it only understands PKCS#7 v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as described in IETF RFC 2630.</p>
  26. <h1 id="OPTIONS">OPTIONS</h1>
  27. <dl>
  28. <dt id="help"><b>-help</b></dt>
  29. <dd>
  30. <p>Print out a usage message.</p>
  31. </dd>
  32. <dt id="inform-DER-PEM--outform-DER-PEM"><b>-inform</b> <b>DER</b>|<b>PEM</b>, <b>-outform</b> <b>DER</b>|<b>PEM</b></dt>
  33. <dd>
  34. <p>The input and formats; the default is <b>PEM</b>. See <a href="../man1/openssl-format-options.html">openssl-format-options(1)</a> for details.</p>
  35. <p>The data is a PKCS#7 Version 1.5 structure.</p>
  36. </dd>
  37. <dt id="in-filename"><b>-in</b> <i>filename</i></dt>
  38. <dd>
  39. <p>This specifies the input filename to read from or standard input if this option is not specified.</p>
  40. </dd>
  41. <dt id="out-filename"><b>-out</b> <i>filename</i></dt>
  42. <dd>
  43. <p>Specifies the output filename to write to or standard output by default.</p>
  44. </dd>
  45. <dt id="print"><b>-print</b></dt>
  46. <dd>
  47. <p>Print out the full PKCS7 object.</p>
  48. </dd>
  49. <dt id="print_certs"><b>-print_certs</b></dt>
  50. <dd>
  51. <p>Prints out any certificates or CRLs contained in the file. They are preceded by their subject and issuer names in one line format.</p>
  52. </dd>
  53. <dt id="quiet"><b>-quiet</b></dt>
  54. <dd>
  55. <p>When used with -print_certs, prints out just the PEM-encoded certificates without any other output.</p>
  56. </dd>
  57. <dt id="text"><b>-text</b></dt>
  58. <dd>
  59. <p>Prints out certificate details in full rather than just subject and issuer names.</p>
  60. </dd>
  61. <dt id="noout"><b>-noout</b></dt>
  62. <dd>
  63. <p>Don&#39;t output the encoded version of the PKCS#7 structure (or certificates if <b>-print_certs</b> is set).</p>
  64. </dd>
  65. <dt id="engine-id"><b>-engine</b> <i>id</i></dt>
  66. <dd>
  67. <p>See <a href="../man1/openssl.html">&quot;Engine Options&quot; in openssl(1)</a>. This option is deprecated.</p>
  68. </dd>
  69. <dt id="provider-name"><b>-provider</b> <i>name</i></dt>
  70. <dd>
  71. </dd>
  72. <dt id="provider-path-path"><b>-provider-path</b> <i>path</i></dt>
  73. <dd>
  74. </dd>
  75. <dt id="propquery-propq"><b>-propquery</b> <i>propq</i></dt>
  76. <dd>
  77. <p>See <a href="../man1/openssl.html">&quot;Provider Options&quot; in openssl(1)</a>, <a href="../man7/provider.html">provider(7)</a>, and <a href="../man7/property.html">property(7)</a>.</p>
  78. </dd>
  79. </dl>
  80. <h1 id="EXAMPLES">EXAMPLES</h1>
  81. <p>Convert a PKCS#7 file from PEM to DER:</p>
  82. <pre><code>openssl pkcs7 -in file.pem -outform DER -out file.der</code></pre>
  83. <p>Output all certificates in a file:</p>
  84. <pre><code>openssl pkcs7 -in file.pem -print_certs -out certs.pem</code></pre>
  85. <h1 id="SEE-ALSO">SEE ALSO</h1>
  86. <p><a href="../man1/openssl.html">openssl(1)</a>, <a href="../man1/openssl-crl2pkcs7.html">openssl-crl2pkcs7(1)</a></p>
  87. <h1 id="HISTORY">HISTORY</h1>
  88. <p>The <b>-engine</b> option was deprecated in OpenSSL 3.0.</p>
  89. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  90. <p>Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.</p>
  91. <p>Licensed under the Apache License 2.0 (the &quot;License&quot;). 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 at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
  92. </body>
  93. </html>