2
0

openssl-pkcs7.pod.in 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. =pod
  2. =begin comment
  3. {- join("\n", @autowarntext) -}
  4. =end comment
  5. =head1 NAME
  6. openssl-pkcs7 - PKCS#7 command
  7. =head1 SYNOPSIS
  8. B<openssl> B<pkcs7>
  9. [B<-help>]
  10. [B<-inform> B<DER>|B<PEM>]
  11. [B<-outform> B<DER>|B<PEM>]
  12. [B<-in> I<filename>]
  13. [B<-out> I<filename>]
  14. [B<-print>]
  15. [B<-print_certs>]
  16. [B<-quiet>]
  17. [B<-text>]
  18. [B<-noout>]
  19. {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
  20. =head1 DESCRIPTION
  21. This command processes PKCS#7 files. Note that it only understands PKCS#7
  22. v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
  23. described in IETF RFC 2630.
  24. =head1 OPTIONS
  25. =over 4
  26. =item B<-help>
  27. Print out a usage message.
  28. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  29. The input and formats; the default is B<PEM>.
  30. See L<openssl-format-options(1)> for details.
  31. The data is a PKCS#7 Version 1.5 structure.
  32. =item B<-in> I<filename>
  33. This specifies the input filename to read from or standard input if this
  34. option is not specified.
  35. =item B<-out> I<filename>
  36. Specifies the output filename to write to or standard output by
  37. default.
  38. =item B<-print>
  39. Print out the full PKCS7 object.
  40. =item B<-print_certs>
  41. Prints out any certificates or CRLs contained in the file. They are
  42. preceded by their subject and issuer names in one line format.
  43. =item B<-quiet>
  44. When used with -print_certs, prints out just the PEM-encoded
  45. certificates without any other output.
  46. =item B<-text>
  47. Prints out certificate details in full rather than just subject and
  48. issuer names.
  49. =item B<-noout>
  50. Don't output the encoded version of the PKCS#7 structure (or certificates
  51. if B<-print_certs> is set).
  52. {- $OpenSSL::safe::opt_engine_item -}
  53. {- $OpenSSL::safe::opt_provider_item -}
  54. =back
  55. =head1 EXAMPLES
  56. Convert a PKCS#7 file from PEM to DER:
  57. openssl pkcs7 -in file.pem -outform DER -out file.der
  58. Output all certificates in a file:
  59. openssl pkcs7 -in file.pem -print_certs -out certs.pem
  60. =head1 SEE ALSO
  61. L<openssl(1)>,
  62. L<openssl-crl2pkcs7(1)>
  63. =head1 HISTORY
  64. The B<-engine> option was deprecated in OpenSSL 3.0.
  65. =head1 COPYRIGHT
  66. Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
  67. Licensed under the Apache License 2.0 (the "License"). You may not use
  68. this file except in compliance with the License. You can obtain a copy
  69. in the file LICENSE in the source distribution or at
  70. L<https://www.openssl.org/source/license.html>.
  71. =cut