openssl-pkcs7.pod.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 -}
  19. {- $OpenSSL::safe::opt_provider_synopsis -}
  20. =for openssl ifdef engine
  21. =head1 DESCRIPTION
  22. This command processes PKCS#7 files. Note that it only understands PKCS#7
  23. v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
  24. described in IETF RFC 2630.
  25. =head1 OPTIONS
  26. =over 4
  27. =item B<-help>
  28. Print out a usage message.
  29. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  30. The input and formats; the default is B<PEM>.
  31. See L<openssl(1)/Format Options> for details.
  32. The data is a PKCS#7 Version 1.5 structure.
  33. =item B<-in> I<filename>
  34. This specifies the input filename to read from or standard input if this
  35. option is not specified.
  36. =item B<-out> I<filename>
  37. Specifies the output filename to write to or standard output by
  38. default.
  39. =item B<-print>
  40. Print out the full PKCS7 object.
  41. =item B<-print_certs>
  42. Prints out any certificates or CRLs contained in the file. They are
  43. preceded by their subject and issuer names in one line format.
  44. =item B<-text>
  45. Prints out certificate details in full rather than just subject and
  46. issuer names.
  47. =item B<-noout>
  48. Don't output the encoded version of the PKCS#7 structure (or certificates
  49. if B<-print_certs> is set).
  50. {- $OpenSSL::safe::opt_engine_item -}
  51. {- $OpenSSL::safe::opt_provider_item -}
  52. =back
  53. =head1 EXAMPLES
  54. Convert a PKCS#7 file from PEM to DER:
  55. openssl pkcs7 -in file.pem -outform DER -out file.der
  56. Output all certificates in a file:
  57. openssl pkcs7 -in file.pem -print_certs -out certs.pem
  58. =head1 SEE ALSO
  59. L<openssl(1)>,
  60. L<openssl-crl2pkcs7(1)>
  61. =head1 HISTORY
  62. The B<-engine> option was deprecated in OpenSSL 3.0.
  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