openssl-crl2pkcs7.pod.in 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. =pod
  2. {- OpenSSL::safe::output_do_not_edit_headers(); -}
  3. =head1 NAME
  4. openssl-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> B<DER>|B<PEM>]
  9. [B<-outform> B<DER>|B<PEM>]
  10. [B<-in> I<filename>]
  11. [B<-out> I<filename>]
  12. [B<-certfile> I<filename>]
  13. [B<-nocrl>]
  14. {- $OpenSSL::safe::opt_provider_synopsis -}
  15. =head1 DESCRIPTION
  16. This command takes an optional CRL and one or more
  17. certificates and converts them into a PKCS#7 degenerate "certificates
  18. only" structure.
  19. =head1 OPTIONS
  20. =over 4
  21. =item B<-help>
  22. Print out a usage message.
  23. =item B<-inform> B<DER>|B<PEM>
  24. The input format of the CRL; the default is B<PEM>.
  25. See L<openssl-format-options(1)> for details.
  26. =item B<-outform> B<DER>|B<PEM>
  27. The output format of the PKCS#7 object; the default is B<PEM>.
  28. See L<openssl-format-options(1)> for details.
  29. =item B<-in> I<filename>
  30. This specifies the input filename to read a CRL from or standard input if this
  31. option is not specified.
  32. =item B<-out> I<filename>
  33. Specifies the output filename to write the PKCS#7 structure to or standard
  34. output by default.
  35. =item B<-certfile> I<filename>
  36. Specifies a filename containing one or more certificates in B<PEM> format.
  37. All certificates in the file will be added to the PKCS#7 structure. This
  38. option can be used more than once to read certificates form multiple
  39. files.
  40. =item B<-nocrl>
  41. Normally a CRL is included in the output file. With this option no CRL is
  42. included in the output file and a CRL is not read from the input file.
  43. {- $OpenSSL::safe::opt_provider_item -}
  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 command 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<openssl(1)>,
  62. L<openssl-pkcs7(1)>
  63. =head1 COPYRIGHT
  64. Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
  65. Licensed under the Apache License 2.0 (the "License"). You may not use
  66. this file except in compliance with the License. You can obtain a copy
  67. in the file LICENSE in the source distribution or at
  68. L<https://www.openssl.org/source/license.html>.
  69. =cut