openssl-crl.pod.in 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-crl - CRL command
  5. =head1 SYNOPSIS
  6. B<openssl> B<crl>
  7. [B<-help>]
  8. [B<-inform> B<DER>|B<PEM>]
  9. [B<-outform> B<DER>|B<PEM>]
  10. [B<-key> I<filename>]
  11. [B<-keyform> B<DER>|B<PEM>|B<P12>]
  12. [B<-dateopt>]
  13. [B<-text>]
  14. [B<-in> I<filename>]
  15. [B<-out> I<filename>]
  16. [B<-gendelta> I<filename>]
  17. [B<-badsig>]
  18. [B<-verify>]
  19. [B<-noout>]
  20. [B<-hash>]
  21. [B<-hash_old>]
  22. [B<-fingerprint>]
  23. [B<-crlnumber>]
  24. [B<-issuer>]
  25. [B<-lastupdate>]
  26. [B<-nextupdate>]
  27. {- $OpenSSL::safe::opt_name_synopsis -}
  28. {- $OpenSSL::safe::opt_trust_synopsis -}
  29. {- $OpenSSL::safe::opt_provider_synopsis -}
  30. =head1 DESCRIPTION
  31. This command processes CRL files in DER or PEM format.
  32. =head1 OPTIONS
  33. =over 4
  34. =item B<-help>
  35. Print out a usage message.
  36. =item B<-inform> B<DER>|B<PEM>
  37. The CRL input format; unspecified by default.
  38. See L<openssl-format-options(1)> for details.
  39. =item B<-outform> B<DER>|B<PEM>
  40. The CRL output format; the default is B<PEM>.
  41. See L<openssl-format-options(1)> for details.
  42. =item B<-key> I<filename>
  43. The private key to be used to sign the CRL.
  44. =item B<-keyform> B<DER>|B<PEM>|B<P12>
  45. The format of the private key file; unspecified by default.
  46. See L<openssl-format-options(1)> for details.
  47. =item B<-in> I<filename>
  48. This specifies the input filename to read from or standard input if this
  49. option is not specified.
  50. =item B<-out> I<filename>
  51. Specifies the output filename to write to or standard output by
  52. default.
  53. =item B<-gendelta> I<filename>
  54. Output a comparison of the main CRL and the one specified here.
  55. =item B<-badsig>
  56. Corrupt the signature before writing it; this can be useful
  57. for testing.
  58. =item B<-dateopt>
  59. Specify the date output format. Values are: rfc_822 and iso_8601.
  60. Defaults to rfc_822.
  61. =item B<-text>
  62. Print out the CRL in text form.
  63. =item B<-verify>
  64. Verify the signature in the CRL. If the verification fails,
  65. the program will immediately exit, i.e. further option processing
  66. (e.g. B<-gendelta>) is skipped.
  67. This option is implicitly enabled if any of B<-CApath>, B<-CAfile>
  68. or B<-CAstore> is specified.
  69. =item B<-noout>
  70. Don't output the encoded version of the CRL.
  71. =item B<-fingerprint>
  72. Output the fingerprint of the CRL.
  73. =item B<-crlnumber>
  74. Output the number of the CRL.
  75. =item B<-hash>
  76. Output a hash of the issuer name. This can be use to lookup CRLs in
  77. a directory by issuer name.
  78. =item B<-hash_old>
  79. Outputs the "hash" of the CRL issuer name using the older algorithm
  80. as used by OpenSSL before version 1.0.0.
  81. =item B<-issuer>
  82. Output the issuer name.
  83. =item B<-lastupdate>
  84. Output the lastUpdate field.
  85. =item B<-nextupdate>
  86. Output the nextUpdate field.
  87. {- $OpenSSL::safe::opt_name_item -}
  88. {- $OpenSSL::safe::opt_trust_item -}
  89. {- $OpenSSL::safe::opt_provider_item -}
  90. =back
  91. =head1 EXAMPLES
  92. Convert a CRL file from PEM to DER:
  93. openssl crl -in crl.pem -outform DER -out crl.der
  94. Output the text form of a DER encoded certificate:
  95. openssl crl -in crl.der -text -noout
  96. =head1 BUGS
  97. Ideally it should be possible to create a CRL using appropriate options
  98. and files too.
  99. =head1 SEE ALSO
  100. L<openssl(1)>,
  101. L<openssl-crl2pkcs7(1)>,
  102. L<openssl-ca(1)>,
  103. L<openssl-x509(1)>,
  104. L<ossl_store-file(7)>
  105. =head1 HISTORY
  106. Since OpenSSL 3.3, the B<-verify> option will exit with 1 on failure.
  107. =head1 COPYRIGHT
  108. Copyright 2000-2024 The OpenSSL Project Authors. All Rights Reserved.
  109. Licensed under the Apache License 2.0 (the "License"). You may not use
  110. this file except in compliance with the License. You can obtain a copy
  111. in the file LICENSE in the source distribution or at
  112. L<https://www.openssl.org/source/license.html>.
  113. =cut