openssl-cms.1ossl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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-CMS 1ossl"
  58. .TH OPENSSL-CMS 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\-cms \- CMS command
  65. .SH SYNOPSIS
  66. .IX Header "SYNOPSIS"
  67. \&\fBopenssl\fR \fBcms\fR
  68. [\fB\-help\fR]
  69. .PP
  70. General options:
  71. .PP
  72. [\fB\-in\fR \fIfilename\fR]
  73. [\fB\-out\fR \fIfilename\fR]
  74. [\fB\-config\fR \fIconfigfile\fR]
  75. .PP
  76. Operation options:
  77. .PP
  78. [\fB\-encrypt\fR]
  79. [\fB\-decrypt\fR]
  80. [\fB\-sign\fR]
  81. [\fB\-verify\fR]
  82. [\fB\-resign\fR]
  83. [\fB\-sign_receipt\fR]
  84. [\fB\-verify_receipt\fR \fIreceipt\fR]
  85. [\fB\-digest\fR \fIdigest\fR]
  86. [\fB\-digest_create\fR]
  87. [\fB\-digest_verify\fR]
  88. [\fB\-compress\fR]
  89. [\fB\-uncompress\fR]
  90. [\fB\-EncryptedData_encrypt\fR]
  91. [\fB\-EncryptedData_decrypt\fR]
  92. [\fB\-data_create\fR]
  93. [\fB\-data_out\fR]
  94. [\fB\-cmsout\fR]
  95. .PP
  96. File format options:
  97. .PP
  98. [\fB\-inform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR]
  99. [\fB\-outform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR]
  100. [\fB\-rctform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR]
  101. [\fB\-stream\fR]
  102. [\fB\-indef\fR]
  103. [\fB\-noindef\fR]
  104. [\fB\-binary\fR]
  105. [\fB\-crlfeol\fR]
  106. [\fB\-asciicrlf\fR]
  107. .PP
  108. Keys and password options:
  109. .PP
  110. [\fB\-pwri_password\fR \fIpassword\fR]
  111. [\fB\-secretkey\fR \fIkey\fR]
  112. [\fB\-secretkeyid\fR \fIid\fR]
  113. [\fB\-inkey\fR \fIfilename\fR|\fIuri\fR]
  114. [\fB\-passin\fR \fIarg\fR]
  115. [\fB\-keyopt\fR \fIname\fR:\fIparameter\fR]
  116. [\fB\-keyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR]
  117. [\fB\-engine\fR \fIid\fR]
  118. [\fB\-provider\fR \fIname\fR]
  119. [\fB\-provider\-path\fR \fIpath\fR]
  120. [\fB\-propquery\fR \fIpropq\fR]
  121. [\fB\-rand\fR \fIfiles\fR]
  122. [\fB\-writerand\fR \fIfile\fR]
  123. .PP
  124. Encryption options:
  125. .PP
  126. [\fB\-originator\fR \fIfile\fR]
  127. [\fB\-recip\fR \fIfile\fR]
  128. [\fIrecipient-cert\fR ...]
  129. [\fB\-\fR\f(BIcipher\fR]
  130. [\fB\-wrap\fR \fIcipher\fR]
  131. [\fB\-aes128\-wrap\fR]
  132. [\fB\-aes192\-wrap\fR]
  133. [\fB\-aes256\-wrap\fR]
  134. [\fB\-des3\-wrap\fR]
  135. [\fB\-debug_decrypt\fR]
  136. .PP
  137. Signing options:
  138. .PP
  139. [\fB\-md\fR \fIdigest\fR]
  140. [\fB\-signer\fR \fIfile\fR]
  141. [\fB\-certfile\fR \fIfile\fR]
  142. [\fB\-cades\fR]
  143. [\fB\-nodetach\fR]
  144. [\fB\-nocerts\fR]
  145. [\fB\-noattr\fR]
  146. [\fB\-nosmimecap\fR]
  147. [\fB\-receipt_request_all\fR]
  148. [\fB\-receipt_request_first\fR]
  149. [\fB\-receipt_request_from\fR \fIemailaddress\fR]
  150. [\fB\-receipt_request_to\fR \fIemailaddress\fR]
  151. .PP
  152. Verification options:
  153. .PP
  154. [\fB\-signer\fR \fIfile\fR]
  155. [\fB\-content\fR \fIfilename\fR]
  156. [\fB\-no_content_verify\fR]
  157. [\fB\-no_attr_verify\fR]
  158. [\fB\-nosigs\fR]
  159. [\fB\-noverify\fR]
  160. [\fB\-nointern\fR]
  161. [\fB\-cades\fR]
  162. [\fB\-verify_retcode\fR]
  163. [\fB\-CAfile\fR \fIfile\fR]
  164. [\fB\-no\-CAfile\fR]
  165. [\fB\-CApath\fR \fIdir\fR]
  166. [\fB\-no\-CApath\fR]
  167. [\fB\-CAstore\fR \fIuri\fR]
  168. [\fB\-no\-CAstore\fR]
  169. .PP
  170. Output options:
  171. .PP
  172. [\fB\-keyid\fR]
  173. [\fB\-econtent_type\fR \fItype\fR]
  174. [\fB\-text\fR]
  175. [\fB\-certsout\fR \fIfile\fR]
  176. [\fB\-to\fR \fIaddr\fR]
  177. [\fB\-from\fR \fIaddr\fR]
  178. [\fB\-subject\fR \fIsubj\fR]
  179. .PP
  180. Printing options:
  181. .PP
  182. [\fB\-noout\fR]
  183. [\fB\-print\fR]
  184. [\fB\-nameopt\fR \fIoption\fR]
  185. [\fB\-receipt_request_print\fR]
  186. .PP
  187. Validation options:
  188. .PP
  189. [\fB\-allow_proxy_certs\fR]
  190. [\fB\-attime\fR \fItimestamp\fR]
  191. [\fB\-no_check_time\fR]
  192. [\fB\-check_ss_sig\fR]
  193. [\fB\-crl_check\fR]
  194. [\fB\-crl_check_all\fR]
  195. [\fB\-explicit_policy\fR]
  196. [\fB\-extended_crl\fR]
  197. [\fB\-ignore_critical\fR]
  198. [\fB\-inhibit_any\fR]
  199. [\fB\-inhibit_map\fR]
  200. [\fB\-partial_chain\fR]
  201. [\fB\-policy\fR \fIarg\fR]
  202. [\fB\-policy_check\fR]
  203. [\fB\-policy_print\fR]
  204. [\fB\-purpose\fR \fIpurpose\fR]
  205. [\fB\-suiteB_128\fR]
  206. [\fB\-suiteB_128_only\fR]
  207. [\fB\-suiteB_192\fR]
  208. [\fB\-trusted_first\fR]
  209. [\fB\-no_alt_chains\fR]
  210. [\fB\-use_deltas\fR]
  211. [\fB\-auth_level\fR \fInum\fR]
  212. [\fB\-verify_depth\fR \fInum\fR]
  213. [\fB\-verify_email\fR \fIemail\fR]
  214. [\fB\-verify_hostname\fR \fIhostname\fR]
  215. [\fB\-verify_ip\fR \fIip\fR]
  216. [\fB\-verify_name\fR \fIname\fR]
  217. [\fB\-x509_strict\fR]
  218. [\fB\-issuer_checks\fR]
  219. .SH DESCRIPTION
  220. .IX Header "DESCRIPTION"
  221. This command handles data in CMS format such as S/MIME v3.1 email messages.
  222. It can encrypt, decrypt, sign, verify, compress, uncompress, and print messages.
  223. .SH OPTIONS
  224. .IX Header "OPTIONS"
  225. There are a number of operation options that set the type of operation to be
  226. performed: encrypt, decrypt, sign, verify, resign, sign_receipt, verify_receipt,
  227. digest_create, digest_verify, compress, uncompress,
  228. EncryptedData_encrypt, EncryptedData_decrypt, data_create, data_out, or cmsout.
  229. The relevance of the other options depends on the operation type
  230. and their meaning may vary according to it.
  231. .IP \fB\-help\fR 4
  232. .IX Item "-help"
  233. Print out a usage message.
  234. .SS "General options"
  235. .IX Subsection "General options"
  236. .IP "\fB\-in\fR \fIfilename\fR" 4
  237. .IX Item "-in filename"
  238. The input message to be encrypted or signed or the message to be decrypted
  239. or verified.
  240. .IP "\fB\-out\fR \fIfilename\fR" 4
  241. .IX Item "-out filename"
  242. The message text that has been decrypted or verified or the output MIME
  243. format message that has been signed or verified.
  244. .IP "\fB\-config\fR \fIconfigfile\fR" 4
  245. .IX Item "-config configfile"
  246. See "Configuration Option" in \fBopenssl\fR\|(1).
  247. .SS "Operation options"
  248. .IX Subsection "Operation options"
  249. .IP \fB\-encrypt\fR 4
  250. .IX Item "-encrypt"
  251. Encrypt data for the given recipient certificates. Input file is the message
  252. to be encrypted. The output file is the encrypted data in MIME format. The
  253. actual CMS type is \fBEnvelopedData\fR.
  254. .Sp
  255. Note that no revocation check is done for the recipient cert, so if that
  256. key has been compromised, others may be able to decrypt the text.
  257. .IP \fB\-decrypt\fR 4
  258. .IX Item "-decrypt"
  259. Decrypt data using the supplied certificate and private key. Expects
  260. encrypted datain MIME format for the input file. The decrypted data
  261. is written to the output file.
  262. .IP \fB\-sign\fR 4
  263. .IX Item "-sign"
  264. Sign data using the supplied certificate and private key. Input file is
  265. the message to be signed. The signed data in MIME format is written
  266. to the output file.
  267. .IP \fB\-verify\fR 4
  268. .IX Item "-verify"
  269. Verify signed data. Expects a signed data on input and outputs
  270. the signed data. Both clear text and opaque signing is supported.
  271. .IP \fB\-resign\fR 4
  272. .IX Item "-resign"
  273. Resign a message: take an existing message and one or more new signers.
  274. .IP \fB\-sign_receipt\fR 4
  275. .IX Item "-sign_receipt"
  276. Generate and output a signed receipt for the supplied message. The input
  277. message \fBmust\fR contain a signed receipt request. Functionality is otherwise
  278. similar to the \fB\-sign\fR operation.
  279. .IP "\fB\-verify_receipt\fR \fIreceipt\fR" 4
  280. .IX Item "-verify_receipt receipt"
  281. Verify a signed receipt in filename \fBreceipt\fR. The input message \fBmust\fR
  282. contain the original receipt request. Functionality is otherwise similar
  283. to the \fB\-verify\fR operation.
  284. .IP "\fB\-digest\fR \fIdigest\fR" 4
  285. .IX Item "-digest digest"
  286. When used with \fB\-sign\fR, provides the digest in hexadecimal form instead of
  287. computing it from the original message content. Cannot be combined with \fB\-in\fR
  288. or \fB\-nodetach\fR.
  289. .Sp
  290. This operation is the CMS equivalent of \fBopenssl\-pkeyutl\fR\|(1) signing.
  291. When signing a pre-computed digest, the security relies on the digest and its
  292. computation from the original message being trusted.
  293. .IP \fB\-digest_create\fR 4
  294. .IX Item "-digest_create"
  295. Create a CMS \fBDigestedData\fR type.
  296. .IP \fB\-digest_verify\fR 4
  297. .IX Item "-digest_verify"
  298. Verify a CMS \fBDigestedData\fR type and output the content.
  299. .IP \fB\-compress\fR 4
  300. .IX Item "-compress"
  301. Create a CMS \fBCompressedData\fR type. OpenSSL must be compiled with \fBzlib\fR
  302. support for this option to work, otherwise it will output an error.
  303. .IP \fB\-uncompress\fR 4
  304. .IX Item "-uncompress"
  305. Uncompress a CMS \fBCompressedData\fR type and output the content. OpenSSL must be
  306. compiled with \fBzlib\fR support for this option to work, otherwise it will
  307. output an error.
  308. .IP \fB\-EncryptedData_encrypt\fR 4
  309. .IX Item "-EncryptedData_encrypt"
  310. Encrypt content using supplied symmetric key and algorithm using a CMS
  311. \&\fBEncryptedData\fR type and output the content.
  312. .IP \fB\-EncryptedData_decrypt\fR 4
  313. .IX Item "-EncryptedData_decrypt"
  314. Decrypt content using supplied symmetric key and algorithm using a CMS
  315. \&\fBEncryptedData\fR type and output the content.
  316. .IP \fB\-data_create\fR 4
  317. .IX Item "-data_create"
  318. Create a CMS \fBData\fR type.
  319. .IP \fB\-data_out\fR 4
  320. .IX Item "-data_out"
  321. \&\fBData\fR type and output the content.
  322. .IP \fB\-cmsout\fR 4
  323. .IX Item "-cmsout"
  324. Takes an input message and writes out a PEM encoded CMS structure.
  325. .SS "File format options"
  326. .IX Subsection "File format options"
  327. .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR" 4
  328. .IX Item "-inform DER|PEM|SMIME"
  329. The input format of the CMS structure (if one is being read);
  330. the default is \fBSMIME\fR.
  331. See \fBopenssl\-format\-options\fR\|(1) for details.
  332. .IP "\fB\-outform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR" 4
  333. .IX Item "-outform DER|PEM|SMIME"
  334. The output format of the CMS structure (if one is being written);
  335. the default is \fBSMIME\fR.
  336. See \fBopenssl\-format\-options\fR\|(1) for details.
  337. .IP "\fB\-rctform\fR \fBDER\fR|\fBPEM\fR|\fBSMIME\fR" 4
  338. .IX Item "-rctform DER|PEM|SMIME"
  339. The signed receipt format for use with the \fB\-receipt_verify\fR; the default
  340. is \fBSMIME\fR.
  341. See \fBopenssl\-format\-options\fR\|(1) for details.
  342. .IP "\fB\-stream\fR, \fB\-indef\fR" 4
  343. .IX Item "-stream, -indef"
  344. The \fB\-stream\fR and \fB\-indef\fR options are equivalent and enable streaming I/O
  345. for encoding operations. This permits single pass processing of data without
  346. the need to hold the entire contents in memory, potentially supporting very
  347. large files. Streaming is automatically set for S/MIME signing with detached
  348. data if the output format is \fBSMIME\fR it is currently off by default for all
  349. other operations.
  350. .IP \fB\-noindef\fR 4
  351. .IX Item "-noindef"
  352. Disable streaming I/O where it would produce and indefinite length constructed
  353. encoding. This option currently has no effect. In future streaming will be
  354. enabled by default on all relevant operations and this option will disable it.
  355. .IP \fB\-binary\fR 4
  356. .IX Item "-binary"
  357. Normally the input message is converted to "canonical" format which is
  358. effectively using CR and LF as end of line: as required by the S/MIME
  359. specification. When this option is present no translation occurs. This
  360. is useful when handling binary data which may not be in MIME format.
  361. .IP \fB\-crlfeol\fR 4
  362. .IX Item "-crlfeol"
  363. Normally the output file uses a single \fBLF\fR as end of line. When this
  364. option is present \fBCRLF\fR is used instead.
  365. .IP \fB\-asciicrlf\fR 4
  366. .IX Item "-asciicrlf"
  367. When signing use ASCII CRLF format canonicalisation. This strips trailing
  368. whitespace from all lines, deletes trailing blank lines at EOF and sets
  369. the encapsulated content type. This option is normally used with detached
  370. content and an output signature format of DER. This option is not normally
  371. needed when verifying as it is enabled automatically if the encapsulated
  372. content format is detected.
  373. .SS "Keys and password options"
  374. .IX Subsection "Keys and password options"
  375. .IP "\fB\-pwri_password\fR \fIpassword\fR" 4
  376. .IX Item "-pwri_password password"
  377. Specify password for recipient.
  378. .IP "\fB\-secretkey\fR \fIkey\fR" 4
  379. .IX Item "-secretkey key"
  380. Specify symmetric key to use. The key must be supplied in hex format and be
  381. consistent with the algorithm used. Supported by the \fB\-EncryptedData_encrypt\fR
  382. \&\fB\-EncryptedData_decrypt\fR, \fB\-encrypt\fR and \fB\-decrypt\fR options. When used
  383. with \fB\-encrypt\fR or \fB\-decrypt\fR the supplied key is used to wrap or unwrap the
  384. content encryption key using an AES key in the \fBKEKRecipientInfo\fR type.
  385. .IP "\fB\-secretkeyid\fR \fIid\fR" 4
  386. .IX Item "-secretkeyid id"
  387. The key identifier for the supplied symmetric key for \fBKEKRecipientInfo\fR type.
  388. This option \fBmust\fR be present if the \fB\-secretkey\fR option is used with
  389. \&\fB\-encrypt\fR. With \fB\-decrypt\fR operations the \fIid\fR is used to locate the
  390. relevant key if it is not supplied then an attempt is used to decrypt any
  391. \&\fBKEKRecipientInfo\fR structures.
  392. .IP "\fB\-inkey\fR \fIfilename\fR|\fIuri\fR" 4
  393. .IX Item "-inkey filename|uri"
  394. The private key to use when signing or decrypting. This must match the
  395. corresponding certificate. If this option is not specified then the
  396. private key must be included in the certificate file specified with
  397. the \fB\-recip\fR or \fB\-signer\fR file. When signing this option can be used
  398. multiple times to specify successive keys.
  399. .IP "\fB\-passin\fR \fIarg\fR" 4
  400. .IX Item "-passin arg"
  401. The private key password source. For more information about the format of \fBarg\fR
  402. see \fBopenssl\-passphrase\-options\fR\|(1).
  403. .IP "\fB\-keyopt\fR \fIname\fR:\fIparameter\fR" 4
  404. .IX Item "-keyopt name:parameter"
  405. For signing and encryption this option can be used multiple times to
  406. set customised parameters for the preceding key or certificate. It can
  407. currently be used to set RSA-PSS for signing, RSA-OAEP for encryption
  408. or to modify default parameters for ECDH.
  409. .IP "\fB\-keyform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR" 4
  410. .IX Item "-keyform DER|PEM|P12|ENGINE"
  411. The format of the private key file; unspecified by default.
  412. See \fBopenssl\-format\-options\fR\|(1) for details.
  413. .IP "\fB\-engine\fR \fIid\fR" 4
  414. .IX Item "-engine id"
  415. See "Engine Options" in \fBopenssl\fR\|(1).
  416. This option is deprecated.
  417. .IP "\fB\-provider\fR \fIname\fR" 4
  418. .IX Item "-provider name"
  419. .PD 0
  420. .IP "\fB\-provider\-path\fR \fIpath\fR" 4
  421. .IX Item "-provider-path path"
  422. .IP "\fB\-propquery\fR \fIpropq\fR" 4
  423. .IX Item "-propquery propq"
  424. .PD
  425. See "Provider Options" in \fBopenssl\fR\|(1), \fBprovider\fR\|(7), and \fBproperty\fR\|(7).
  426. .IP "\fB\-rand\fR \fIfiles\fR, \fB\-writerand\fR \fIfile\fR" 4
  427. .IX Item "-rand files, -writerand file"
  428. See "Random State Options" in \fBopenssl\fR\|(1) for details.
  429. .SS "Encryption and decryption options"
  430. .IX Subsection "Encryption and decryption options"
  431. .IP "\fB\-originator\fR \fIfile\fR" 4
  432. .IX Item "-originator file"
  433. A certificate of the originator of the encrypted message. Necessary for
  434. decryption when Key Agreement is in use for a shared key.
  435. .IP "\fB\-recip\fR \fIfile\fR" 4
  436. .IX Item "-recip file"
  437. When decrypting a message this specifies the certificate of the recipient.
  438. The certificate must match one of the recipients of the message.
  439. .Sp
  440. When encrypting a message this option may be used multiple times to specify
  441. each recipient. This form \fBmust\fR be used if customised parameters are
  442. required (for example to specify RSA-OAEP).
  443. .Sp
  444. Only certificates carrying RSA, Diffie-Hellman or EC keys are supported by this
  445. option.
  446. .IP "\fIrecipient-cert\fR ..." 4
  447. .IX Item "recipient-cert ..."
  448. This is an alternative to using the \fB\-recip\fR option when encrypting a message.
  449. One or more certificate filenames may be given.
  450. .IP \fB\-\fR\f(BIcipher\fR 4
  451. .IX Item "-cipher"
  452. The encryption algorithm to use. For example triple DES (168 bits) \- \fB\-des3\fR
  453. or 256 bit AES \- \fB\-aes256\fR. Any standard algorithm name (as used by the
  454. \&\fBEVP_get_cipherbyname()\fR function) can also be used preceded by a dash, for
  455. example \fB\-aes\-128\-cbc\fR. See \fBopenssl\-enc\fR\|(1) for a list of ciphers
  456. supported by your version of OpenSSL.
  457. .Sp
  458. Currently the AES variants with GCM mode are the only supported AEAD
  459. algorithms.
  460. .Sp
  461. If not specified triple DES is used. Only used with \fB\-encrypt\fR and
  462. \&\fB\-EncryptedData_create\fR commands.
  463. .IP "\fB\-wrap\fR \fIcipher\fR" 4
  464. .IX Item "-wrap cipher"
  465. Cipher algorithm to use for key wrap when encrypting the message using Key
  466. Agreement for key transport. The algorithm specified should be suitable for key
  467. wrap.
  468. .IP "\fB\-aes128\-wrap\fR, \fB\-aes192\-wrap\fR, \fB\-aes256\-wrap\fR, \fB\-des3\-wrap\fR" 4
  469. .IX Item "-aes128-wrap, -aes192-wrap, -aes256-wrap, -des3-wrap"
  470. Use AES128, AES192, AES256, or 3DES\-EDE, respectively, to wrap key.
  471. Depending on the OpenSSL build options used, \fB\-des3\-wrap\fR may not be supported.
  472. .IP \fB\-debug_decrypt\fR 4
  473. .IX Item "-debug_decrypt"
  474. This option sets the \fBCMS_DEBUG_DECRYPT\fR flag. This option should be used
  475. with caution: see the notes section below.
  476. .SS "Signing options"
  477. .IX Subsection "Signing options"
  478. .IP "\fB\-md\fR \fIdigest\fR" 4
  479. .IX Item "-md digest"
  480. Digest algorithm to use when signing or resigning. If not present then the
  481. default digest algorithm for the signing key will be used (usually SHA1).
  482. .IP "\fB\-signer\fR \fIfile\fR" 4
  483. .IX Item "-signer file"
  484. A signing certificate. When signing or resigning a message, this option can be
  485. used multiple times if more than one signer is required.
  486. .IP "\fB\-certfile\fR \fIfile\fR" 4
  487. .IX Item "-certfile file"
  488. Allows additional certificates to be specified. When signing these will
  489. be included with the message. When verifying, these will be searched for
  490. signer certificates and will be used for chain building.
  491. .Sp
  492. The input can be in PEM, DER, or PKCS#12 format.
  493. .IP \fB\-cades\fR 4
  494. .IX Item "-cades"
  495. When used with \fB\-sign\fR,
  496. add an ESS signingCertificate or ESS signingCertificateV2 signed-attribute
  497. to the SignerInfo, in order to make the signature comply with the requirements
  498. for a CAdES Basic Electronic Signature (CAdES-BES).
  499. .IP \fB\-nodetach\fR 4
  500. .IX Item "-nodetach"
  501. When signing a message use opaque signing: this form is more resistant
  502. to translation by mail relays but it cannot be read by mail agents that
  503. do not support S/MIME. Without this option cleartext signing with
  504. the MIME type multipart/signed is used.
  505. .IP \fB\-nocerts\fR 4
  506. .IX Item "-nocerts"
  507. When signing a message the signer's certificate is normally included
  508. with this option it is excluded. This will reduce the size of the
  509. signed message but the verifier must have a copy of the signers certificate
  510. available locally (passed using the \fB\-certfile\fR option for example).
  511. .IP \fB\-noattr\fR 4
  512. .IX Item "-noattr"
  513. Normally when a message is signed a set of attributes are included which
  514. include the signing time and supported symmetric algorithms. With this
  515. option they are not included.
  516. .IP \fB\-nosmimecap\fR 4
  517. .IX Item "-nosmimecap"
  518. Exclude the list of supported algorithms from signed attributes, other options
  519. such as signing time and content type are still included.
  520. .IP "\fB\-receipt_request_all\fR, \fB\-receipt_request_first\fR" 4
  521. .IX Item "-receipt_request_all, -receipt_request_first"
  522. For \fB\-sign\fR option include a signed receipt request. Indicate requests should
  523. be provided by all recipient or first tier recipients (those mailed directly
  524. and not from a mailing list). Ignored it \fB\-receipt_request_from\fR is included.
  525. .IP "\fB\-receipt_request_from\fR \fIemailaddress\fR" 4
  526. .IX Item "-receipt_request_from emailaddress"
  527. For \fB\-sign\fR option include a signed receipt request. Add an explicit email
  528. address where receipts should be supplied.
  529. .IP "\fB\-receipt_request_to\fR \fIemailaddress\fR" 4
  530. .IX Item "-receipt_request_to emailaddress"
  531. Add an explicit email address where signed receipts should be sent to. This
  532. option \fBmust\fR but supplied if a signed receipt is requested.
  533. .SS "Verification options"
  534. .IX Subsection "Verification options"
  535. .IP "\fB\-signer\fR \fIfile\fR" 4
  536. .IX Item "-signer file"
  537. If a message has been verified successfully then the signers certificate(s)
  538. will be written to this file if the verification was successful.
  539. .IP "\fB\-content\fR \fIfilename\fR" 4
  540. .IX Item "-content filename"
  541. This specifies a file containing the detached content for operations taking
  542. S/MIME input, such as the \fB\-verify\fR command. This is only usable if the CMS
  543. structure is using the detached signature form where the content is
  544. not included. This option will override any content if the input format
  545. is S/MIME and it uses the multipart/signed MIME content type.
  546. .IP \fB\-no_content_verify\fR 4
  547. .IX Item "-no_content_verify"
  548. Do not verify signed content signatures.
  549. .IP \fB\-no_attr_verify\fR 4
  550. .IX Item "-no_attr_verify"
  551. Do not verify signed attribute signatures.
  552. .IP \fB\-nosigs\fR 4
  553. .IX Item "-nosigs"
  554. Don't verify message signature.
  555. .IP \fB\-noverify\fR 4
  556. .IX Item "-noverify"
  557. Do not verify the signers certificate of a signed message.
  558. .IP \fB\-nointern\fR 4
  559. .IX Item "-nointern"
  560. When verifying a message normally certificates (if any) included in
  561. the message are searched for the signing certificate. With this option
  562. only the certificates specified in the \fB\-certfile\fR option are used.
  563. The supplied certificates can still be used as untrusted CAs however.
  564. .IP \fB\-cades\fR 4
  565. .IX Item "-cades"
  566. When used with \fB\-verify\fR, require and check signer certificate digest.
  567. See the NOTES section for more details.
  568. .IP \fB\-verify_retcode\fR 4
  569. .IX Item "-verify_retcode"
  570. Exit nonzero on verification failure.
  571. .IP "\fB\-CAfile\fR \fIfile\fR, \fB\-no\-CAfile\fR, \fB\-CApath\fR \fIdir\fR, \fB\-no\-CApath\fR, \fB\-CAstore\fR \fIuri\fR, \fB\-no\-CAstore\fR" 4
  572. .IX Item "-CAfile file, -no-CAfile, -CApath dir, -no-CApath, -CAstore uri, -no-CAstore"
  573. See "Trusted Certificate Options" in \fBopenssl\-verification\-options\fR\|(1) for details.
  574. .SS "Output options"
  575. .IX Subsection "Output options"
  576. .IP \fB\-keyid\fR 4
  577. .IX Item "-keyid"
  578. Use subject key identifier to identify certificates instead of issuer name and
  579. serial number. The supplied certificate \fBmust\fR include a subject key
  580. identifier extension. Supported by \fB\-sign\fR and \fB\-encrypt\fR options.
  581. .IP "\fB\-econtent_type\fR \fItype\fR" 4
  582. .IX Item "-econtent_type type"
  583. Set the encapsulated content type to \fItype\fR if not supplied the \fBData\fR type
  584. is used. The \fItype\fR argument can be any valid OID name in either text or
  585. numerical format.
  586. .IP \fB\-text\fR 4
  587. .IX Item "-text"
  588. This option adds plain text (text/plain) MIME headers to the supplied
  589. message if encrypting or signing. If decrypting or verifying it strips
  590. off text headers: if the decrypted or verified message is not of MIME
  591. type text/plain then an error occurs.
  592. .IP "\fB\-certsout\fR \fIfile\fR" 4
  593. .IX Item "-certsout file"
  594. Any certificates contained in the input message are written to \fIfile\fR.
  595. .IP "\fB\-to\fR, \fB\-from\fR, \fB\-subject\fR" 4
  596. .IX Item "-to, -from, -subject"
  597. The relevant email headers. These are included outside the signed
  598. portion of a message so they may be included manually. If signing
  599. then many S/MIME mail clients check the signers certificate's email
  600. address matches that specified in the From: address.
  601. .SS "Printing options"
  602. .IX Subsection "Printing options"
  603. .IP \fB\-noout\fR 4
  604. .IX Item "-noout"
  605. For the \fB\-cmsout\fR operation do not output the parsed CMS structure.
  606. This is useful if the syntax of the CMS structure is being checked.
  607. .IP \fB\-print\fR 4
  608. .IX Item "-print"
  609. For the \fB\-cmsout\fR operation print out all fields of the CMS structure.
  610. This implies \fB\-noout\fR.
  611. This is mainly useful for testing purposes.
  612. .IP "\fB\-nameopt\fR \fIoption\fR" 4
  613. .IX Item "-nameopt option"
  614. For the \fB\-cmsout\fR operation when \fB\-print\fR option is in use, specifies
  615. printing options for string fields. For most cases \fButf8\fR is reasonable value.
  616. See \fBopenssl\-namedisplay\-options\fR\|(1) for details.
  617. .IP \fB\-receipt_request_print\fR 4
  618. .IX Item "-receipt_request_print"
  619. For the \fB\-verify\fR operation print out the contents of any signed receipt
  620. requests.
  621. .SS "Validation options"
  622. .IX Subsection "Validation options"
  623. .IP "\fB\-allow_proxy_certs\fR, \fB\-attime\fR, \fB\-no_check_time\fR, \fB\-check_ss_sig\fR, \fB\-crl_check\fR, \fB\-crl_check_all\fR, \fB\-explicit_policy\fR, \fB\-extended_crl\fR, \fB\-ignore_critical\fR, \fB\-inhibit_any\fR, \fB\-inhibit_map\fR, \fB\-no_alt_chains\fR, \fB\-partial_chain\fR, \fB\-policy\fR, \fB\-policy_check\fR, \fB\-policy_print\fR, \fB\-purpose\fR, \fB\-suiteB_128\fR, \fB\-suiteB_128_only\fR, \fB\-suiteB_192\fR, \fB\-trusted_first\fR, \fB\-use_deltas\fR, \fB\-auth_level\fR, \fB\-verify_depth\fR, \fB\-verify_email\fR, \fB\-verify_hostname\fR, \fB\-verify_ip\fR, \fB\-verify_name\fR, \fB\-x509_strict\fR \fB\-issuer_checks\fR" 4
  624. .IX Item "-allow_proxy_certs, -attime, -no_check_time, -check_ss_sig, -crl_check, -crl_check_all, -explicit_policy, -extended_crl, -ignore_critical, -inhibit_any, -inhibit_map, -no_alt_chains, -partial_chain, -policy, -policy_check, -policy_print, -purpose, -suiteB_128, -suiteB_128_only, -suiteB_192, -trusted_first, -use_deltas, -auth_level, -verify_depth, -verify_email, -verify_hostname, -verify_ip, -verify_name, -x509_strict -issuer_checks"
  625. Set various options of certificate chain verification.
  626. See "Verification Options" in \fBopenssl\-verification\-options\fR\|(1) for details.
  627. .Sp
  628. Any validation errors cause the command to exit.
  629. .SH NOTES
  630. .IX Header "NOTES"
  631. The MIME message must be sent without any blank lines between the
  632. headers and the output. Some mail programs will automatically add
  633. a blank line. Piping the mail directly to sendmail is one way to
  634. achieve the correct format.
  635. .PP
  636. The supplied message to be signed or encrypted must include the
  637. necessary MIME headers or many S/MIME clients won't display it
  638. properly (if at all). You can use the \fB\-text\fR option to automatically
  639. add plain text headers.
  640. .PP
  641. A "signed and encrypted" message is one where a signed message is
  642. then encrypted. This can be produced by encrypting an already signed
  643. message: see the examples section.
  644. .PP
  645. This version of the program only allows one signer per message but it
  646. will verify multiple signers on received messages. Some S/MIME clients
  647. choke if a message contains multiple signers. It is possible to sign
  648. messages "in parallel" by signing an already signed message.
  649. .PP
  650. The options \fB\-encrypt\fR and \fB\-decrypt\fR reflect common usage in S/MIME
  651. clients. Strictly speaking these process CMS enveloped data: CMS
  652. encrypted data is used for other purposes.
  653. .PP
  654. The \fB\-resign\fR option uses an existing message digest when adding a new
  655. signer. This means that attributes must be present in at least one existing
  656. signer using the same message digest or this operation will fail.
  657. .PP
  658. The \fB\-stream\fR and \fB\-indef\fR options enable streaming I/O support.
  659. As a result the encoding is BER using indefinite length constructed encoding
  660. and no longer DER. Streaming is supported for the \fB\-encrypt\fR operation and the
  661. \&\fB\-sign\fR operation if the content is not detached.
  662. .PP
  663. Streaming is always used for the \fB\-sign\fR operation with detached data but
  664. since the content is no longer part of the CMS structure the encoding
  665. remains DER.
  666. .PP
  667. If the \fB\-decrypt\fR option is used without a recipient certificate then an
  668. attempt is made to locate the recipient by trying each potential recipient
  669. in turn using the supplied private key. To thwart the MMA attack
  670. (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) all recipients are
  671. tried whether they succeed or not and if no recipients match the message
  672. is "decrypted" using a random key which will typically output garbage.
  673. The \fB\-debug_decrypt\fR option can be used to disable the MMA attack protection
  674. and return an error if no recipient can be found: this option should be used
  675. with caution. For a fuller description see \fBCMS_decrypt\fR\|(3)).
  676. .SH "CADES BASIC ELECTRONIC SIGNATURE (CADES-BES)"
  677. .IX Header "CADES BASIC ELECTRONIC SIGNATURE (CADES-BES)"
  678. A CAdES Basic Electronic Signature (CAdES-BES),
  679. as defined in the European Standard ETSI EN 319 122\-1 V1.1.1, contains:
  680. .IP \(bu 4
  681. The signed user data as defined in CMS (RFC 3852);
  682. .IP \(bu 4
  683. Content-type of the EncapsulatedContentInfo value being signed;
  684. .IP \(bu 4
  685. Message-digest of the eContent OCTET STRING within encapContentInfo being signed;
  686. .IP \(bu 4
  687. An ESS signingCertificate or ESS signingCertificateV2 attribute,
  688. as defined in Enhanced Security Services (ESS), RFC 2634 and RFC 5035.
  689. An ESS signingCertificate attribute only allows for SHA\-1 as digest algorithm.
  690. An ESS signingCertificateV2 attribute allows for any digest algorithm.
  691. .IP \(bu 4
  692. The digital signature value computed on the user data and, when present, on the signed attributes.
  693. .Sp
  694. NOTE that the \fB\-cades\fR option applies to the \fB\-sign\fR or \fB\-verify\fR operations.
  695. With this option, the \fB\-verify\fR operation also requires that the
  696. signingCertificate attribute is present and checks that the given identifiers
  697. match the verification trust chain built during the verification process.
  698. .SH "EXIT CODES"
  699. .IX Header "EXIT CODES"
  700. .IP 0 4
  701. The operation was completely successfully.
  702. .IP 1 4
  703. .IX Item "1"
  704. An error occurred parsing the command options.
  705. .IP 2 4
  706. .IX Item "2"
  707. One of the input files could not be read.
  708. .IP 3 4
  709. .IX Item "3"
  710. An error occurred creating the CMS file or when reading the MIME
  711. message.
  712. .IP 4 4
  713. .IX Item "4"
  714. An error occurred decrypting or verifying the message.
  715. .IP 5 4
  716. .IX Item "5"
  717. The message was verified correctly but an error occurred writing out
  718. the signers certificates.
  719. .SH "COMPATIBILITY WITH PKCS#7 FORMAT"
  720. .IX Header "COMPATIBILITY WITH PKCS#7 FORMAT"
  721. \&\fBopenssl\-smime\fR\|(1) can only process the older \fBPKCS#7\fR format.
  722. \&\fBopenssl cms\fR supports Cryptographic Message Syntax format.
  723. Use of some features will result in messages which cannot be processed by
  724. applications which only support the older format. These are detailed below.
  725. .PP
  726. The use of the \fB\-keyid\fR option with \fB\-sign\fR or \fB\-encrypt\fR.
  727. .PP
  728. The \fB\-outform\fR \fIPEM\fR option uses different headers.
  729. .PP
  730. The \fB\-compress\fR option.
  731. .PP
  732. The \fB\-secretkey\fR option when used with \fB\-encrypt\fR.
  733. .PP
  734. The use of PSS with \fB\-sign\fR.
  735. .PP
  736. The use of OAEP or non-RSA keys with \fB\-encrypt\fR.
  737. .PP
  738. Additionally the \fB\-EncryptedData_create\fR and \fB\-data_create\fR type cannot
  739. be processed by the older \fBopenssl\-smime\fR\|(1) command.
  740. .SH EXAMPLES
  741. .IX Header "EXAMPLES"
  742. Create a cleartext signed message:
  743. .PP
  744. .Vb 2
  745. \& openssl cms \-sign \-in message.txt \-text \-out mail.msg \e
  746. \& \-signer mycert.pem
  747. .Ve
  748. .PP
  749. Create an opaque signed message
  750. .PP
  751. .Vb 2
  752. \& openssl cms \-sign \-in message.txt \-text \-out mail.msg \-nodetach \e
  753. \& \-signer mycert.pem
  754. .Ve
  755. .PP
  756. Create a signed message, include some additional certificates and
  757. read the private key from another file:
  758. .PP
  759. .Vb 2
  760. \& openssl cms \-sign \-in in.txt \-text \-out mail.msg \e
  761. \& \-signer mycert.pem \-inkey mykey.pem \-certfile mycerts.pem
  762. .Ve
  763. .PP
  764. Create a signed message with two signers, use key identifier:
  765. .PP
  766. .Vb 2
  767. \& openssl cms \-sign \-in message.txt \-text \-out mail.msg \e
  768. \& \-signer mycert.pem \-signer othercert.pem \-keyid
  769. .Ve
  770. .PP
  771. Send a signed message under Unix directly to sendmail, including headers:
  772. .PP
  773. .Vb 3
  774. \& openssl cms \-sign \-in in.txt \-text \-signer mycert.pem \e
  775. \& \-from steve@openssl.org \-to someone@somewhere \e
  776. \& \-subject "Signed message" | sendmail someone@somewhere
  777. .Ve
  778. .PP
  779. Verify a message and extract the signer's certificate if successful:
  780. .PP
  781. .Vb 1
  782. \& openssl cms \-verify \-in mail.msg \-signer user.pem \-out signedtext.txt
  783. .Ve
  784. .PP
  785. Send encrypted mail using triple DES:
  786. .PP
  787. .Vb 3
  788. \& openssl cms \-encrypt \-in in.txt \-from steve@openssl.org \e
  789. \& \-to someone@somewhere \-subject "Encrypted message" \e
  790. \& \-des3 user.pem \-out mail.msg
  791. .Ve
  792. .PP
  793. Sign and encrypt mail:
  794. .PP
  795. .Vb 4
  796. \& openssl cms \-sign \-in ml.txt \-signer my.pem \-text \e
  797. \& | openssl cms \-encrypt \-out mail.msg \e
  798. \& \-from steve@openssl.org \-to someone@somewhere \e
  799. \& \-subject "Signed and Encrypted message" \-des3 user.pem
  800. .Ve
  801. .PP
  802. Note: the encryption command does not include the \fB\-text\fR option because the
  803. message being encrypted already has MIME headers.
  804. .PP
  805. Decrypt a message:
  806. .PP
  807. .Vb 1
  808. \& openssl cms \-decrypt \-in mail.msg \-recip mycert.pem \-inkey key.pem
  809. .Ve
  810. .PP
  811. The output from Netscape form signing is a PKCS#7 structure with the
  812. detached signature format. You can use this program to verify the
  813. signature by line wrapping the base64 encoded structure and surrounding
  814. it with:
  815. .PP
  816. .Vb 2
  817. \& \-\-\-\-\-BEGIN PKCS7\-\-\-\-\-
  818. \& \-\-\-\-\-END PKCS7\-\-\-\-\-
  819. .Ve
  820. .PP
  821. and using the command,
  822. .PP
  823. .Vb 1
  824. \& openssl cms \-verify \-inform PEM \-in signature.pem \-content content.txt
  825. .Ve
  826. .PP
  827. alternatively you can base64 decode the signature and use
  828. .PP
  829. .Vb 1
  830. \& openssl cms \-verify \-inform DER \-in signature.der \-content content.txt
  831. .Ve
  832. .PP
  833. Create an encrypted message using 128 bit Camellia:
  834. .PP
  835. .Vb 1
  836. \& openssl cms \-encrypt \-in plain.txt \-camellia128 \-out mail.msg cert.pem
  837. .Ve
  838. .PP
  839. Add a signer to an existing message:
  840. .PP
  841. .Vb 1
  842. \& openssl cms \-resign \-in mail.msg \-signer newsign.pem \-out mail2.msg
  843. .Ve
  844. .PP
  845. Sign a message using RSA-PSS:
  846. .PP
  847. .Vb 2
  848. \& openssl cms \-sign \-in message.txt \-text \-out mail.msg \e
  849. \& \-signer mycert.pem \-keyopt rsa_padding_mode:pss
  850. .Ve
  851. .PP
  852. Create an encrypted message using RSA-OAEP:
  853. .PP
  854. .Vb 2
  855. \& openssl cms \-encrypt \-in plain.txt \-out mail.msg \e
  856. \& \-recip cert.pem \-keyopt rsa_padding_mode:oaep
  857. .Ve
  858. .PP
  859. Use SHA256 KDF with an ECDH certificate:
  860. .PP
  861. .Vb 2
  862. \& openssl cms \-encrypt \-in plain.txt \-out mail.msg \e
  863. \& \-recip ecdhcert.pem \-keyopt ecdh_kdf_md:sha256
  864. .Ve
  865. .PP
  866. Print CMS signed binary data in human-readable form:
  867. .PP
  868. openssl cms \-in signed.cms \-binary \-inform DER \-cmsout \-print
  869. .SH BUGS
  870. .IX Header "BUGS"
  871. The MIME parser isn't very clever: it seems to handle most messages that I've
  872. thrown at it but it may choke on others.
  873. .PP
  874. The code currently will only write out the signer's certificate to a file: if
  875. the signer has a separate encryption certificate this must be manually
  876. extracted. There should be some heuristic that determines the correct
  877. encryption certificate.
  878. .PP
  879. Ideally a database should be maintained of a certificates for each email
  880. address.
  881. .PP
  882. The code doesn't currently take note of the permitted symmetric encryption
  883. algorithms as supplied in the SMIMECapabilities signed attribute. this means the
  884. user has to manually include the correct encryption algorithm. It should store
  885. the list of permitted ciphers in a database and only use those.
  886. .PP
  887. No revocation checking is done on the signer's certificate.
  888. .SH "SEE ALSO"
  889. .IX Header "SEE ALSO"
  890. \&\fBossl_store\-file\fR\|(7)
  891. .SH HISTORY
  892. .IX Header "HISTORY"
  893. The use of multiple \fB\-signer\fR options and the \fB\-resign\fR command were first
  894. added in OpenSSL 1.0.0.
  895. .PP
  896. The \fB\-keyopt\fR option was added in OpenSSL 1.0.2.
  897. .PP
  898. Support for RSA-OAEP and RSA-PSS was added in OpenSSL 1.0.2.
  899. .PP
  900. The use of non-RSA keys with \fB\-encrypt\fR and \fB\-decrypt\fR
  901. was added in OpenSSL 1.0.2.
  902. .PP
  903. The \-no_alt_chains option was added in OpenSSL 1.0.2b.
  904. .PP
  905. The \fB\-nameopt\fR option was added in OpenSSL 3.0.0.
  906. .PP
  907. The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
  908. .PP
  909. The \fB\-digest\fR option was added in OpenSSL 3.2.
  910. .SH COPYRIGHT
  911. .IX Header "COPYRIGHT"
  912. Copyright 2008\-2024 The OpenSSL Project Authors. All Rights Reserved.
  913. .PP
  914. Licensed under the Apache License 2.0 (the "License"). You may not use
  915. this file except in compliance with the License. You can obtain a copy
  916. in the file LICENSE in the source distribution or at
  917. <https://www.openssl.org/source/license.html>.