pkcs7.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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>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="#NOTES">NOTES</a></li>
  17. <li><a href="#RESTRICTIONS">RESTRICTIONS</a></li>
  18. <li><a href="#SEE-ALSO">SEE ALSO</a></li>
  19. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  20. </ul>
  21. <h1 id="NAME">NAME</h1>
  22. <p>openssl-pkcs7, pkcs7 - PKCS#7 utility</p>
  23. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  24. <p><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>]</p>
  25. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  26. <p>The <b>pkcs7</b> command processes PKCS#7 files in DER or PEM format.</p>
  27. <h1 id="OPTIONS">OPTIONS</h1>
  28. <dl>
  29. <dt id="help"><b>-help</b></dt>
  30. <dd>
  31. <p>Print out a usage message.</p>
  32. </dd>
  33. <dt id="inform-DER-PEM"><b>-inform DER|PEM</b></dt>
  34. <dd>
  35. <p>This specifies the input format. <b>DER</b> format is DER encoded PKCS#7 v1.5 structure.<b>PEM</b> (the default) is a base64 encoded version of the DER form with header and footer lines.</p>
  36. </dd>
  37. <dt id="outform-DER-PEM"><b>-outform DER|PEM</b></dt>
  38. <dd>
  39. <p>This specifies the output format, the options have the same meaning and default as the <b>-inform</b> option.</p>
  40. </dd>
  41. <dt id="in-filename"><b>-in filename</b></dt>
  42. <dd>
  43. <p>This specifies the input filename to read from or standard input if this option is not specified.</p>
  44. </dd>
  45. <dt id="out-filename"><b>-out filename</b></dt>
  46. <dd>
  47. <p>Specifies the output filename to write to or standard output by default.</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="text"><b>-text</b></dt>
  54. <dd>
  55. <p>Prints out certificates details in full rather than just subject and issuer names.</p>
  56. </dd>
  57. <dt id="noout"><b>-noout</b></dt>
  58. <dd>
  59. <p>Don&#39;t output the encoded version of the PKCS#7 structure (or certificates is <b>-print_certs</b> is set).</p>
  60. </dd>
  61. <dt id="engine-id"><b>-engine id</b></dt>
  62. <dd>
  63. <p>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.</p>
  64. </dd>
  65. </dl>
  66. <h1 id="EXAMPLES">EXAMPLES</h1>
  67. <p>Convert a PKCS#7 file from PEM to DER:</p>
  68. <pre><code> openssl pkcs7 -in file.pem -outform DER -out file.der</code></pre>
  69. <p>Output all certificates in a file:</p>
  70. <pre><code> openssl pkcs7 -in file.pem -print_certs -out certs.pem</code></pre>
  71. <h1 id="NOTES">NOTES</h1>
  72. <p>The PEM PKCS#7 format uses the header and footer lines:</p>
  73. <pre><code> -----BEGIN PKCS7-----
  74. -----END PKCS7-----</code></pre>
  75. <p>For compatibility with some CAs it will also accept:</p>
  76. <pre><code> -----BEGIN CERTIFICATE-----
  77. -----END CERTIFICATE-----</code></pre>
  78. <h1 id="RESTRICTIONS">RESTRICTIONS</h1>
  79. <p>There is no option to print out all the fields of a PKCS#7 file.</p>
  80. <p>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.</p>
  81. <h1 id="SEE-ALSO">SEE ALSO</h1>
  82. <p><a href="../man1/crl2pkcs7.html">crl2pkcs7(1)</a></p>
  83. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  84. <p>Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.</p>
  85. <p>Licensed under the OpenSSL license (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>
  86. </body>
  87. </html>