openssl-pkcs7.pod.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. =pod
  2. =begin comment
  3. {- join("\n", @autowarntext) -}
  4. =end comment
  5. =head1 NAME
  6. openssl-pkcs7 - PKCS#7 utility
  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. =for openssl ifdef engine
  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(1)/Format Options> 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<-text>
  44. Prints out certificate details in full rather than just subject and
  45. issuer names.
  46. =item B<-noout>
  47. Don't output the encoded version of the PKCS#7 structure (or certificates
  48. if B<-print_certs> is set).
  49. {- $OpenSSL::safe::opt_engine_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 COPYRIGHT
  60. Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
  61. Licensed under the Apache License 2.0 (the "License"). You may not use
  62. this file except in compliance with the License. You can obtain a copy
  63. in the file LICENSE in the source distribution or at
  64. L<https://www.openssl.org/source/license.html>.
  65. =cut