crl.pod 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. =pod
  2. =head1 NAME
  3. crl - CRL utility
  4. =head1 SYNOPSIS
  5. B<openssl> B<crl>
  6. [B<-inform PEM|DER>]
  7. [B<-outform PEM|DER>]
  8. [B<-text>]
  9. [B<-in filename>]
  10. [B<-out filename>]
  11. [B<-nameopt option>]
  12. [B<-noout>]
  13. [B<-hash>]
  14. [B<-issuer>]
  15. [B<-lastupdate>]
  16. [B<-nextupdate>]
  17. [B<-CAfile file>]
  18. [B<-CApath dir>]
  19. =head1 DESCRIPTION
  20. The B<crl> command processes CRL files in DER or PEM format.
  21. =head1 COMMAND OPTIONS
  22. =over 4
  23. =item B<-inform DER|PEM>
  24. This specifies the input format. B<DER> format is DER encoded CRL
  25. structure. B<PEM> (the default) is a base64 encoded version of
  26. the DER form with header and footer lines.
  27. =item B<-outform DER|PEM>
  28. This specifies the output format, the options have the same meaning as the
  29. B<-inform> option.
  30. =item B<-in filename>
  31. This specifies the input filename to read from or standard input if this
  32. option is not specified.
  33. =item B<-out filename>
  34. specifies the output filename to write to or standard output by
  35. default.
  36. =item B<-text>
  37. print out the CRL in text form.
  38. =item B<-nameopt option>
  39. option which determines how the subject or issuer names are displayed. See
  40. the description of B<-nameopt> in L<x509(1)|x509(1)>.
  41. =item B<-noout>
  42. don't output the encoded version of the CRL.
  43. =item B<-hash>
  44. output a hash of the issuer name. This can be use to lookup CRLs in
  45. a directory by issuer name.
  46. =item B<-hash_old>
  47. outputs the "hash" of the CRL issuer name using the older algorithm
  48. as used by OpenSSL versions before 1.0.0.
  49. =item B<-issuer>
  50. output the issuer name.
  51. =item B<-lastupdate>
  52. output the lastUpdate field.
  53. =item B<-nextupdate>
  54. output the nextUpdate field.
  55. =item B<-CAfile file>
  56. verify the signature on a CRL by looking up the issuing certificate in
  57. B<file>
  58. =item B<-CApath dir>
  59. verify the signature on a CRL by looking up the issuing certificate in
  60. B<dir>. This directory must be a standard certificate directory: that
  61. is a hash of each subject name (using B<x509 -hash>) should be linked
  62. to each certificate.
  63. =back
  64. =head1 NOTES
  65. The PEM CRL format uses the header and footer lines:
  66. -----BEGIN X509 CRL-----
  67. -----END X509 CRL-----
  68. =head1 EXAMPLES
  69. Convert a CRL file from PEM to DER:
  70. openssl crl -in crl.pem -outform DER -out crl.der
  71. Output the text form of a DER encoded certificate:
  72. openssl crl -in crl.der -text -noout
  73. =head1 BUGS
  74. Ideally it should be possible to create a CRL using appropriate options
  75. and files too.
  76. =head1 SEE ALSO
  77. L<crl2pkcs7(1)|crl2pkcs7(1)>, L<ca(1)|ca(1)>, L<x509(1)|x509(1)>
  78. =cut