2
0

openssl-pkcs7.pod.in 2.2 KB

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