crl2pkcs7.pod 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. =pod
  2. =head1 NAME
  3. openssl-crl2pkcs7,
  4. crl2pkcs7 - Create a PKCS#7 structure from a CRL and certificates
  5. =head1 SYNOPSIS
  6. B<openssl> B<crl2pkcs7>
  7. [B<-help>]
  8. [B<-inform PEM|DER>]
  9. [B<-outform PEM|DER>]
  10. [B<-in filename>]
  11. [B<-out filename>]
  12. [B<-certfile filename>]
  13. [B<-nocrl>]
  14. =head1 DESCRIPTION
  15. The B<crl2pkcs7> command takes an optional CRL and one or more
  16. certificates and converts them into a PKCS#7 degenerate "certificates
  17. only" structure.
  18. =head1 OPTIONS
  19. =over 4
  20. =item B<-help>
  21. Print out a usage message.
  22. =item B<-inform DER|PEM>
  23. This specifies the CRL input format. B<DER> format is DER encoded CRL
  24. structure.B<PEM> (the default) is a base64 encoded version of
  25. the DER form with header and footer lines. The default format is PEM.
  26. =item B<-outform DER|PEM>
  27. This specifies the PKCS#7 structure output format. B<DER> format is DER
  28. encoded PKCS#7 structure.B<PEM> (the default) is a base64 encoded version of
  29. the DER form with header and footer lines. The default format is PEM.
  30. =item B<-in filename>
  31. This specifies the input filename to read a CRL from or standard input if this
  32. option is not specified.
  33. =item B<-out filename>
  34. Specifies the output filename to write the PKCS#7 structure to or standard
  35. output by default.
  36. =item B<-certfile filename>
  37. Specifies a filename containing one or more certificates in B<PEM> format.
  38. All certificates in the file will be added to the PKCS#7 structure. This
  39. option can be used more than once to read certificates form multiple
  40. files.
  41. =item B<-nocrl>
  42. Normally a CRL is included in the output file. With this option no CRL is
  43. included in the output file and a CRL is not read from the input file.
  44. =back
  45. =head1 EXAMPLES
  46. Create a PKCS#7 structure from a certificate and CRL:
  47. openssl crl2pkcs7 -in crl.pem -certfile cert.pem -out p7.pem
  48. Creates a PKCS#7 structure in DER format with no CRL from several
  49. different certificates:
  50. openssl crl2pkcs7 -nocrl -certfile newcert.pem
  51. -certfile demoCA/cacert.pem -outform DER -out p7.der
  52. =head1 NOTES
  53. The output file is a PKCS#7 signed data structure containing no signers and
  54. just certificates and an optional CRL.
  55. This utility can be used to send certificates and CAs to Netscape as part of
  56. the certificate enrollment process. This involves sending the DER encoded output
  57. as MIME type application/x-x509-user-cert.
  58. The B<PEM> encoded form with the header and footer lines removed can be used to
  59. install user certificates and CAs in MSIE using the Xenroll control.
  60. =head1 SEE ALSO
  61. L<pkcs7(1)>
  62. =head1 COPYRIGHT
  63. Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
  64. Licensed under the Apache License 2.0 (the "License"). You may not use
  65. this file except in compliance with the License. You can obtain a copy
  66. in the file LICENSE in the source distribution or at
  67. L<https://www.openssl.org/source/license.html>.
  68. =cut