openssl-pkcs7.1ossl 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "OPENSSL-PKCS7 1ossl"
  58. .TH OPENSSL-PKCS7 1ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. openssl\-pkcs7 \- PKCS#7 command
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl\fR \fBpkcs7\fR
  68. [\fB\-help\fR]
  69. [\fB\-inform\fR \fBDER\fR|\fBPEM\fR]
  70. [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
  71. [\fB\-in\fR \fIfilename\fR]
  72. [\fB\-out\fR \fIfilename\fR]
  73. [\fB\-print\fR]
  74. [\fB\-print_certs\fR]
  75. [\fB\-quiet\fR]
  76. [\fB\-text\fR]
  77. [\fB\-noout\fR]
  78. [\fB\-engine\fR \fIid\fR]
  79. [\fB\-provider\fR \fIname\fR]
  80. [\fB\-provider\-path\fR \fIpath\fR]
  81. [\fB\-propquery\fR \fIpropq\fR]
  82. .SH DESCRIPTION
  83. .IX Header "DESCRIPTION"
  84. This command processes PKCS#7 files. Note that it only understands PKCS#7
  85. v 1.5 as specified in IETF RFC 2315. It cannot currently parse CMS as
  86. described in IETF RFC 2630.
  87. .SH OPTIONS
  88. .IX Header "OPTIONS"
  89. .IP \fB\-help\fR 4
  90. .IX Item "-help"
  91. Print out a usage message.
  92. .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR, \fB\-outform\fR \fBDER\fR|\fBPEM\fR" 4
  93. .IX Item "-inform DER|PEM, -outform DER|PEM"
  94. The input and formats; the default is \fBPEM\fR.
  95. See \fBopenssl\-format\-options\fR\|(1) for details.
  96. .Sp
  97. The data is a PKCS#7 Version 1.5 structure.
  98. .IP "\fB\-in\fR \fIfilename\fR" 4
  99. .IX Item "-in filename"
  100. This specifies the input filename to read from or standard input if this
  101. option is not specified.
  102. .IP "\fB\-out\fR \fIfilename\fR" 4
  103. .IX Item "-out filename"
  104. Specifies the output filename to write to or standard output by
  105. default.
  106. .IP \fB\-print\fR 4
  107. .IX Item "-print"
  108. Print out the full PKCS7 object.
  109. .IP \fB\-print_certs\fR 4
  110. .IX Item "-print_certs"
  111. Prints out any certificates or CRLs contained in the file. They are
  112. preceded by their subject and issuer names in one line format.
  113. .IP \fB\-quiet\fR 4
  114. .IX Item "-quiet"
  115. When used with \-print_certs, prints out just the PEM-encoded
  116. certificates without any other output.
  117. .IP \fB\-text\fR 4
  118. .IX Item "-text"
  119. Prints out certificate details in full rather than just subject and
  120. issuer names.
  121. .IP \fB\-noout\fR 4
  122. .IX Item "-noout"
  123. Don't output the encoded version of the PKCS#7 structure (or certificates
  124. if \fB\-print_certs\fR is set).
  125. .IP "\fB\-engine\fR \fIid\fR" 4
  126. .IX Item "-engine id"
  127. See "Engine Options" in \fBopenssl\fR\|(1).
  128. This option is deprecated.
  129. .IP "\fB\-provider\fR \fIname\fR" 4
  130. .IX Item "-provider name"
  131. .PD 0
  132. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  133. .IX Item "-provider-path path"
  134. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  135. .IX Item "-propquery propq"
  136. .PD
  137. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  138. .SH EXAMPLES
  139. .IX Header "EXAMPLES"
  140. Convert a PKCS#7 file from PEM to DER:
  141. .PP
  142. .Vb 1
  143. \& openssl pkcs7 \-in file.pem \-outform DER \-out file.der
  144. .Ve
  145. .PP
  146. Output all certificates in a file:
  147. .PP
  148. .Vb 1
  149. \& openssl pkcs7 \-in file.pem \-print_certs \-out certs.pem
  150. .Ve
  151. .SH "SEE ALSO"
  152. .IX Header "SEE ALSO"
  153. \&\fBopenssl\fR\|(1),
  154. \&\fBopenssl\-crl2pkcs7\fR\|(1)
  155. .SH HISTORY
  156. .IX Header "HISTORY"
  157. The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
  158. .SH COPYRIGHT
  159. .IX Header "COPYRIGHT"
  160. Copyright 2000\-2022 The OpenSSL Project Authors. All Rights Reserved.
  161. .PP
  162. Licensed under the Apache License 2.0 (the "License"). You may not use
  163. this file except in compliance with the License. You can obtain a copy
  164. in the file LICENSE in the source distribution or at
  165. <https://www.openssl.org/source/license.html>.