openssl-pkcs7.pod 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. =pod
  2. =head1 NAME
  3. openssl-pkcs7 - PKCS#7 utility
  4. =head1 SYNOPSIS
  5. B<openssl> B<pkcs7>
  6. [B<-help>]
  7. [B<-inform> B<DER>|B<PEM>]
  8. [B<-outform> B<DER>|B<PEM>]
  9. [B<-in> I<filename>]
  10. [B<-out> I<filename>]
  11. [B<-print_certs>]
  12. [B<-text>]
  13. [B<-noout>]
  14. [B<-engine> I<id>]
  15. =for openssl ifdef engine
  16. =head1 DESCRIPTION
  17. This command processes PKCS#7 files. Note that it only understands PKCS#7
  18. v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
  19. described in IETF RFC 2630.
  20. There is no option to print out all the fields of a PKCS#7 file.
  21. =head1 OPTIONS
  22. =over 4
  23. =item B<-help>
  24. Print out a usage message.
  25. =item B<-inform> B<DER>|B<PEM>, B<-outform> B<DER>|B<PEM>
  26. The input and formats; the default is B<PEM>.
  27. See L<openssl(1)/Format Options> for details.
  28. The data is a PKCS#7 Version 1.5 structure.
  29. =item B<-in> I<filename>
  30. This specifies the input filename to read from or standard input if this
  31. option is not specified.
  32. =item B<-out> I<filename>
  33. Specifies the output filename to write to or standard output by
  34. default.
  35. =item B<-print_certs>
  36. Prints out any certificates or CRLs contained in the file. They are
  37. preceded by their subject and issuer names in one line format.
  38. =item B<-text>
  39. Prints out certificates details in full rather than just subject and
  40. issuer names.
  41. =item B<-noout>
  42. Don't output the encoded version of the PKCS#7 structure (or certificates
  43. is B<-print_certs> is set).
  44. =item B<-engine> I<id>
  45. Specifying an engine (by its unique I<id> string) will cause this command
  46. to attempt to obtain a functional reference to the specified engine,
  47. thus initialising it if needed. The engine will then be set as the default
  48. for all available algorithms.
  49. =back
  50. =head1 EXAMPLES
  51. Convert a PKCS#7 file from PEM to DER:
  52. openssl pkcs7 -in file.pem -outform DER -out file.der
  53. Output all certificates in a file:
  54. openssl pkcs7 -in file.pem -print_certs -out certs.pem
  55. =head1 SEE ALSO
  56. L<openssl(1)>,
  57. L<openssl-crl2pkcs7(1)>
  58. =head1 COPYRIGHT
  59. Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
  60. Licensed under the Apache License 2.0 (the "License"). You may not use
  61. this file except in compliance with the License. You can obtain a copy
  62. in the file LICENSE in the source distribution or at
  63. L<https://www.openssl.org/source/license.html>.
  64. =cut