2
0

pkcs7.pod 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. =pod
  2. =head1 NAME
  3. pkcs7 - PKCS#7 utility
  4. =head1 SYNOPSIS
  5. B<openssl> B<pkcs7>
  6. [B<-inform PEM|DER>]
  7. [B<-outform PEM|DER>]
  8. [B<-in filename>]
  9. [B<-out filename>]
  10. [B<-print_certs>]
  11. [B<-text>]
  12. [B<-noout>]
  13. [B<-engine id>]
  14. =head1 DESCRIPTION
  15. The B<pkcs7> command processes PKCS#7 files in DER or PEM format.
  16. =head1 COMMAND OPTIONS
  17. =over 4
  18. =item B<-inform DER|PEM>
  19. This specifies the input format. B<DER> format is DER encoded PKCS#7
  20. v1.5 structure.B<PEM> (the default) is a base64 encoded version of
  21. the DER form with header and footer lines.
  22. =item B<-outform DER|PEM>
  23. This specifies the output format, the options have the same meaning as the
  24. B<-inform> option.
  25. =item B<-in filename>
  26. This specifies the input filename to read from or standard input if this
  27. option is not specified.
  28. =item B<-out filename>
  29. specifies the output filename to write to or standard output by
  30. default.
  31. =item B<-print_certs>
  32. prints out any certificates or CRLs contained in the file. They are
  33. preceded by their subject and issuer names in one line format.
  34. =item B<-text>
  35. prints out certificates details in full rather than just subject and
  36. issuer names.
  37. =item B<-noout>
  38. don't output the encoded version of the PKCS#7 structure (or certificates
  39. is B<-print_certs> is set).
  40. =item B<-engine id>
  41. specifying an engine (by its unique B<id> string) will cause B<pkcs7>
  42. to attempt to obtain a functional reference to the specified engine,
  43. thus initialising it if needed. The engine will then be set as the default
  44. for all available algorithms.
  45. =back
  46. =head1 EXAMPLES
  47. Convert a PKCS#7 file from PEM to DER:
  48. openssl pkcs7 -in file.pem -outform DER -out file.der
  49. Output all certificates in a file:
  50. openssl pkcs7 -in file.pem -print_certs -out certs.pem
  51. =head1 NOTES
  52. The PEM PKCS#7 format uses the header and footer lines:
  53. -----BEGIN PKCS7-----
  54. -----END PKCS7-----
  55. For compatibility with some CAs it will also accept:
  56. -----BEGIN CERTIFICATE-----
  57. -----END CERTIFICATE-----
  58. =head1 RESTRICTIONS
  59. There is no option to print out all the fields of a PKCS#7 file.
  60. This PKCS#7 routines only understand PKCS#7 v 1.5 as specified in RFC2315 they
  61. cannot currently parse, for example, the new CMS as described in RFC2630.
  62. =head1 SEE ALSO
  63. L<crl2pkcs7(1)|crl2pkcs7(1)>
  64. =cut