openssl-crl.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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-crl</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="#BUGS">BUGS</a></li>
  17. <li><a href="#SEE-ALSO">SEE ALSO</a></li>
  18. <li><a href="#HISTORY">HISTORY</a></li>
  19. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  20. </ul>
  21. <h1 id="NAME">NAME</h1>
  22. <p>openssl-crl - CRL command</p>
  23. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  24. <p><b>openssl</b> <b>crl</b> [<b>-help</b>] [<b>-inform</b> <b>DER</b>|<b>PEM</b>] [<b>-outform</b> <b>DER</b>|<b>PEM</b>] [<b>-key</b> <i>filename</i>] [<b>-keyform</b> <b>DER</b>|<b>PEM</b>|<b>P12</b>] [<b>-dateopt</b>] [<b>-text</b>] [<b>-in</b> <i>filename</i>] [<b>-out</b> <i>filename</i>] [<b>-gendelta</b> <i>filename</i>] [<b>-badsig</b>] [<b>-verify</b>] [<b>-noout</b>] [<b>-hash</b>] [<b>-hash_old</b>] [<b>-fingerprint</b>] [<b>-crlnumber</b>] [<b>-issuer</b>] [<b>-lastupdate</b>] [<b>-nextupdate</b>] [<b>-nameopt</b> <i>option</i>] [<b>-CAfile</b> <i>file</i>] [<b>-no-CAfile</b>] [<b>-CApath</b> <i>dir</i>] [<b>-no-CApath</b>] [<b>-CAstore</b> <i>uri</i>] [<b>-no-CAstore</b>] [<b>-provider</b> <i>name</i>] [<b>-provider-path</b> <i>path</i>] [<b>-propquery</b> <i>propq</i>]</p>
  25. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  26. <p>This command processes CRL 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</b> <b>DER</b>|<b>PEM</b></dt>
  34. <dd>
  35. <p>The CRL input format; unspecified by default. See <a href="../man1/openssl-format-options.html">openssl-format-options(1)</a> for details.</p>
  36. </dd>
  37. <dt id="outform-DER-PEM"><b>-outform</b> <b>DER</b>|<b>PEM</b></dt>
  38. <dd>
  39. <p>The CRL output format; the default is <b>PEM</b>. See <a href="../man1/openssl-format-options.html">openssl-format-options(1)</a> for details.</p>
  40. </dd>
  41. <dt id="key-filename"><b>-key</b> <i>filename</i></dt>
  42. <dd>
  43. <p>The private key to be used to sign the CRL.</p>
  44. </dd>
  45. <dt id="keyform-DER-PEM-P12"><b>-keyform</b> <b>DER</b>|<b>PEM</b>|<b>P12</b></dt>
  46. <dd>
  47. <p>The format of the private key file; unspecified by default. See <a href="../man1/openssl-format-options.html">openssl-format-options(1)</a> for details.</p>
  48. </dd>
  49. <dt id="in-filename"><b>-in</b> <i>filename</i></dt>
  50. <dd>
  51. <p>This specifies the input filename to read from or standard input if this option is not specified.</p>
  52. </dd>
  53. <dt id="out-filename"><b>-out</b> <i>filename</i></dt>
  54. <dd>
  55. <p>Specifies the output filename to write to or standard output by default.</p>
  56. </dd>
  57. <dt id="gendelta-filename"><b>-gendelta</b> <i>filename</i></dt>
  58. <dd>
  59. <p>Output a comparison of the main CRL and the one specified here.</p>
  60. </dd>
  61. <dt id="badsig"><b>-badsig</b></dt>
  62. <dd>
  63. <p>Corrupt the signature before writing it; this can be useful for testing.</p>
  64. </dd>
  65. <dt id="dateopt"><b>-dateopt</b></dt>
  66. <dd>
  67. <p>Specify the date output format. Values are: rfc_822 and iso_8601. Defaults to rfc_822.</p>
  68. </dd>
  69. <dt id="text"><b>-text</b></dt>
  70. <dd>
  71. <p>Print out the CRL in text form.</p>
  72. </dd>
  73. <dt id="verify"><b>-verify</b></dt>
  74. <dd>
  75. <p>Verify the signature in the CRL. If the verification fails, the program will immediately exit, i.e. further option processing (e.g. <b>-gendelta</b>) is skipped.</p>
  76. <p>This option is implicitly enabled if any of <b>-CApath</b>, <b>-CAfile</b> or <b>-CAstore</b> is specified.</p>
  77. </dd>
  78. <dt id="noout"><b>-noout</b></dt>
  79. <dd>
  80. <p>Don&#39;t output the encoded version of the CRL.</p>
  81. </dd>
  82. <dt id="fingerprint"><b>-fingerprint</b></dt>
  83. <dd>
  84. <p>Output the fingerprint of the CRL.</p>
  85. </dd>
  86. <dt id="crlnumber"><b>-crlnumber</b></dt>
  87. <dd>
  88. <p>Output the number of the CRL.</p>
  89. </dd>
  90. <dt id="hash"><b>-hash</b></dt>
  91. <dd>
  92. <p>Output a hash of the issuer name. This can be use to lookup CRLs in a directory by issuer name.</p>
  93. </dd>
  94. <dt id="hash_old"><b>-hash_old</b></dt>
  95. <dd>
  96. <p>Outputs the &quot;hash&quot; of the CRL issuer name using the older algorithm as used by OpenSSL before version 1.0.0.</p>
  97. </dd>
  98. <dt id="issuer"><b>-issuer</b></dt>
  99. <dd>
  100. <p>Output the issuer name.</p>
  101. </dd>
  102. <dt id="lastupdate"><b>-lastupdate</b></dt>
  103. <dd>
  104. <p>Output the lastUpdate field.</p>
  105. </dd>
  106. <dt id="nextupdate"><b>-nextupdate</b></dt>
  107. <dd>
  108. <p>Output the nextUpdate field.</p>
  109. </dd>
  110. <dt id="nameopt-option"><b>-nameopt</b> <i>option</i></dt>
  111. <dd>
  112. <p>This specifies how the subject or issuer names are displayed. See <a href="../man1/openssl-namedisplay-options.html">openssl-namedisplay-options(1)</a> for details.</p>
  113. </dd>
  114. <dt id="CAfile-file--no-CAfile--CApath-dir--no-CApath--CAstore-uri--no-CAstore"><b>-CAfile</b> <i>file</i>, <b>-no-CAfile</b>, <b>-CApath</b> <i>dir</i>, <b>-no-CApath</b>, <b>-CAstore</b> <i>uri</i>, <b>-no-CAstore</b></dt>
  115. <dd>
  116. <p>See <a href="../man1/openssl-verification-options.html">&quot;Trusted Certificate Options&quot; in openssl-verification-options(1)</a> for details.</p>
  117. </dd>
  118. <dt id="provider-name"><b>-provider</b> <i>name</i></dt>
  119. <dd>
  120. </dd>
  121. <dt id="provider-path-path"><b>-provider-path</b> <i>path</i></dt>
  122. <dd>
  123. </dd>
  124. <dt id="propquery-propq"><b>-propquery</b> <i>propq</i></dt>
  125. <dd>
  126. <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>
  127. </dd>
  128. </dl>
  129. <h1 id="EXAMPLES">EXAMPLES</h1>
  130. <p>Convert a CRL file from PEM to DER:</p>
  131. <pre><code>openssl crl -in crl.pem -outform DER -out crl.der</code></pre>
  132. <p>Output the text form of a DER encoded certificate:</p>
  133. <pre><code>openssl crl -in crl.der -text -noout</code></pre>
  134. <h1 id="BUGS">BUGS</h1>
  135. <p>Ideally it should be possible to create a CRL using appropriate options and files too.</p>
  136. <h1 id="SEE-ALSO">SEE ALSO</h1>
  137. <p><a href="../man1/openssl.html">openssl(1)</a>, <a href="../man1/openssl-crl2pkcs7.html">openssl-crl2pkcs7(1)</a>, <a href="../man1/openssl-ca.html">openssl-ca(1)</a>, <a href="../man1/openssl-x509.html">openssl-x509(1)</a>, <a href="../man7/ossl_store-file.html">ossl_store-file(7)</a></p>
  138. <h1 id="HISTORY">HISTORY</h1>
  139. <p>Since OpenSSL 3.3, the <b>-verify</b> option will exit with 1 on failure.</p>
  140. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  141. <p>Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.</p>
  142. <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>
  143. </body>
  144. </html>