01e93acf1be44e8dff289958fa2fde4efb2edd2a
[openssl.git] / doc / man1 / cms.pod
1 =pod
2
3 =head1 NAME
4
5 cms - CMS utility
6
7 =head1 SYNOPSIS
8
9 B<openssl> B<cms>
10 [B<-help>]
11 [B<-encrypt>]
12 [B<-decrypt>]
13 [B<-sign>]
14 [B<-verify>]
15 [B<-cmsout>]
16 [B<-resign>]
17 [B<-data_create>]
18 [B<-data_out>]
19 [B<-digest_create>]
20 [B<-digest_verify>]
21 [B<-compress>]
22 [B<-uncompress>]
23 [B<-EncryptedData_encrypt>]
24 [B<-sign_receipt>]
25 [B<-verify_receipt receipt>]
26 [B<-in filename>]
27 [B<-inform SMIME|PEM|DER>]
28 [B<-rctform SMIME|PEM|DER>]
29 [B<-out filename>]
30 [B<-outform SMIME|PEM|DER>]
31 [B<-stream -indef -noindef>]
32 [B<-noindef>]
33 [B<-content filename>]
34 [B<-text>]
35 [B<-noout>]
36 [B<-print>]
37 [B<-CAfile file>]
38 [B<-CApath dir>]
39 [B<-no-CAfile>]
40 [B<-no-CApath>]
41 [B<-attime timestamp>]
42 [B<-check_ss_sig>]
43 [B<-crl_check>]
44 [B<-crl_check_all>]
45 [B<-explicit_policy>]
46 [B<-extended_crl>]
47 [B<-ignore_critical>]
48 [B<-inhibit_any>]
49 [B<-inhibit_map>]
50 [B<-no_check_time>]
51 [B<-partial_chain>]
52 [B<-policy arg>]
53 [B<-policy_check>]
54 [B<-policy_print>]
55 [B<-purpose purpose>]
56 [B<-suiteB_128>]
57 [B<-suiteB_128_only>]
58 [B<-suiteB_192>]
59 [B<-trusted_first>]
60 [B<-no_alt_chains>]
61 [B<-use_deltas>]
62 [B<-auth_level num>]
63 [B<-verify_depth num>]
64 [B<-verify_email email>]
65 [B<-verify_hostname hostname>]
66 [B<-verify_ip ip>]
67 [B<-verify_name name>]
68 [B<-x509_strict>]
69 [B<-md digest>]
70 [B<-I<cipher>>]
71 [B<-nointern>]
72 [B<-noverify>]
73 [B<-nocerts>]
74 [B<-noattr>]
75 [B<-nosmimecap>]
76 [B<-binary>]
77 [B<-crlfeol>]
78 [B<-asciicrlf>]
79 [B<-nodetach>]
80 [B<-certfile file>]
81 [B<-certsout file>]
82 [B<-signer file>]
83 [B<-recip file>]
84 [B<-keyid>]
85 [B<-receipt_request_all -receipt_request_first>]
86 [B<-receipt_request_from emailaddress>]
87 [B<-receipt_request_to emailaddress>]
88 [B<-receipt_request_print>]
89 [B<-secretkey key>]
90 [B<-secretkeyid id>]
91 [B<-econtent_type type>]
92 [B<-inkey file>]
93 [B<-keyopt name:parameter>]
94 [B<-passin arg>]
95 [B<-rand file...>]
96 [B<-writerand file>]
97 [B<cert.pem...>]
98 [B<-to addr>]
99 [B<-from addr>]
100 [B<-subject subj>]
101 [cert.pem]...
102
103 =head1 DESCRIPTION
104
105 The B<cms> command handles S/MIME v3.1 mail. It can encrypt, decrypt, sign and
106 verify, compress and uncompress S/MIME messages.
107
108 =head1 OPTIONS
109
110 There are fourteen operation options that set the type of operation to be
111 performed. The meaning of the other options varies according to the operation
112 type.
113
114 =over 4
115
116 =item B<-help>
117
118 Print out a usage message.
119
120 =item B<-encrypt>
121
122 Encrypt mail for the given recipient certificates. Input file is the message
123 to be encrypted. The output file is the encrypted mail in MIME format. The
124 actual CMS type is <B>EnvelopedData<B>.
125
126 Note that no revocation check is done for the recipient cert, so if that
127 key has been compromised, others may be able to decrypt the text.
128
129 =item B<-decrypt>
130
131 Decrypt mail using the supplied certificate and private key. Expects an
132 encrypted mail message in MIME format for the input file. The decrypted mail
133 is written to the output file.
134
135 =item B<-debug_decrypt>
136
137 This option sets the B<CMS_DEBUG_DECRYPT> flag. This option should be used
138 with caution: see the notes section below.
139
140 =item B<-sign>
141
142 Sign mail using the supplied certificate and private key. Input file is
143 the message to be signed. The signed message in MIME format is written
144 to the output file.
145
146 =item B<-verify>
147
148 Verify signed mail. Expects a signed mail message on input and outputs
149 the signed data. Both clear text and opaque signing is supported.
150
151 =item B<-cmsout>
152
153 Takes an input message and writes out a PEM encoded CMS structure.
154
155 =item B<-resign>
156
157 Resign a message: take an existing message and one or more new signers.
158
159 =item B<-data_create>
160
161 Create a CMS B<Data> type.
162
163 =item B<-data_out>
164
165 B<Data> type and output the content.
166
167 =item B<-digest_create>
168
169 Create a CMS B<DigestedData> type.
170
171 =item B<-digest_verify>
172
173 Verify a CMS B<DigestedData> type and output the content.
174
175 =item B<-compress>
176
177 Create a CMS B<CompressedData> type. OpenSSL must be compiled with B<zlib>
178 support for this option to work, otherwise it will output an error.
179
180 =item B<-uncompress>
181
182 Uncompress a CMS B<CompressedData> type and output the content. OpenSSL must be
183 compiled with B<zlib> support for this option to work, otherwise it will
184 output an error.
185
186 =item B<-EncryptedData_encrypt>
187
188 Encrypt content using supplied symmetric key and algorithm using a CMS
189 B<EncryptedData> type and output the content.
190
191 =item B<-sign_receipt>
192
193 Generate and output a signed receipt for the supplied message. The input
194 message B<must> contain a signed receipt request. Functionality is otherwise
195 similar to the B<-sign> operation.
196
197 =item B<-verify_receipt receipt>
198
199 Verify a signed receipt in filename B<receipt>. The input message B<must>
200 contain the original receipt request. Functionality is otherwise similar
201 to the B<-verify> operation.
202
203 =item B<-in filename>
204
205 The input message to be encrypted or signed or the message to be decrypted
206 or verified.
207
208 =item B<-inform SMIME|PEM|DER>
209
210 This specifies the input format for the CMS structure. The default
211 is B<SMIME> which reads an S/MIME format message. B<PEM> and B<DER>
212 format change this to expect PEM and DER format CMS structures
213 instead. This currently only affects the input format of the CMS
214 structure, if no CMS structure is being input (for example with
215 B<-encrypt> or B<-sign>) this option has no effect.
216
217 =item B<-rctform SMIME|PEM|DER>
218
219 Specify the format for a signed receipt for use with the B<-receipt_verify>
220 operation.
221
222 =item B<-out filename>
223
224 The message text that has been decrypted or verified or the output MIME
225 format message that has been signed or verified.
226
227 =item B<-outform SMIME|PEM|DER>
228
229 This specifies the output format for the CMS structure. The default
230 is B<SMIME> which writes an S/MIME format message. B<PEM> and B<DER>
231 format change this to write PEM and DER format CMS structures
232 instead. This currently only affects the output format of the CMS
233 structure, if no CMS structure is being output (for example with
234 B<-verify> or B<-decrypt>) this option has no effect.
235
236 =item B<-stream -indef -noindef>
237
238 The B<-stream> and B<-indef> options are equivalent and enable streaming I/O
239 for encoding operations. This permits single pass processing of data without
240 the need to hold the entire contents in memory, potentially supporting very
241 large files. Streaming is automatically set for S/MIME signing with detached
242 data if the output format is B<SMIME> it is currently off by default for all
243 other operations.
244
245 =item B<-noindef>
246
247 Disable streaming I/O where it would produce and indefinite length constructed
248 encoding. This option currently has no effect. In future streaming will be
249 enabled by default on all relevant operations and this option will disable it.
250
251 =item B<-content filename>
252
253 This specifies a file containing the detached content, this is only
254 useful with the B<-verify> command. This is only usable if the CMS
255 structure is using the detached signature form where the content is
256 not included. This option will override any content if the input format
257 is S/MIME and it uses the multipart/signed MIME content type.
258
259 =item B<-text>
260
261 This option adds plain text (text/plain) MIME headers to the supplied
262 message if encrypting or signing. If decrypting or verifying it strips
263 off text headers: if the decrypted or verified message is not of MIME
264 type text/plain then an error occurs.
265
266 =item B<-noout>
267
268 For the B<-cmsout> operation do not output the parsed CMS structure. This
269 is useful when combined with the B<-print> option or if the syntax of the CMS
270 structure is being checked.
271
272 =item B<-print>
273
274 For the B<-cmsout> operation print out all fields of the CMS structure. This
275 is mainly useful for testing purposes.
276
277 =item B<-CAfile file>
278
279 A file containing trusted CA certificates, only used with B<-verify>.
280
281 =item B<-CApath dir>
282
283 A directory containing trusted CA certificates, only used with
284 B<-verify>. This directory must be a standard certificate directory: that
285 is a hash of each subject name (using B<x509 -hash>) should be linked
286 to each certificate.
287
288 =item B<-no-CAfile>
289
290 Do not load the trusted CA certificates from the default file location
291
292 =item B<-no-CApath>
293
294 Do not load the trusted CA certificates from the default directory location
295
296 =item B<-md digest>
297
298 Digest algorithm to use when signing or resigning. If not present then the
299 default digest algorithm for the signing key will be used (usually SHA1).
300
301 =item B<-I<cipher>>
302
303 The encryption algorithm to use. For example triple DES (168 bits) - B<-des3>
304 or 256 bit AES - B<-aes256>. Any standard algorithm name (as used by the
305 EVP_get_cipherbyname() function) can also be used preceded by a dash, for
306 example B<-aes-128-cbc>. See L<B<enc>|enc(1)> for a list of ciphers
307 supported by your version of OpenSSL.
308
309 If not specified triple DES is used. Only used with B<-encrypt> and
310 B<-EncryptedData_create> commands.
311
312 =item B<-nointern>
313
314 When verifying a message normally certificates (if any) included in
315 the message are searched for the signing certificate. With this option
316 only the certificates specified in the B<-certfile> option are used.
317 The supplied certificates can still be used as untrusted CAs however.
318
319 =item B<-noverify>
320
321 Do not verify the signers certificate of a signed message.
322
323 =item B<-nocerts>
324
325 When signing a message the signer's certificate is normally included
326 with this option it is excluded. This will reduce the size of the
327 signed message but the verifier must have a copy of the signers certificate
328 available locally (passed using the B<-certfile> option for example).
329
330 =item B<-noattr>
331
332 Normally when a message is signed a set of attributes are included which
333 include the signing time and supported symmetric algorithms. With this
334 option they are not included.
335
336 =item B<-nosmimecap>
337
338 Exclude the list of supported algorithms from signed attributes, other options
339 such as signing time and content type are still included.
340
341 =item B<-binary>
342
343 Normally the input message is converted to "canonical" format which is
344 effectively using CR and LF as end of line: as required by the S/MIME
345 specification. When this option is present no translation occurs. This
346 is useful when handling binary data which may not be in MIME format.
347
348 =item B<-crlfeol>
349
350 Normally the output file uses a single B<LF> as end of line. When this
351 option is present B<CRLF> is used instead.
352
353 =item B<-asciicrlf>
354
355 When signing use ASCII CRLF format canonicalisation. This strips trailing
356 whitespace from all lines, deletes trailing blank lines at EOF and sets
357 the encapsulated content type. This option is normally used with detached
358 content and an output signature format of DER. This option is not normally
359 needed when verifying as it is enabled automatically if the encapsulated
360 content format is detected.
361
362 =item B<-nodetach>
363
364 When signing a message use opaque signing: this form is more resistant
365 to translation by mail relays but it cannot be read by mail agents that
366 do not support S/MIME.  Without this option cleartext signing with
367 the MIME type multipart/signed is used.
368
369 =item B<-certfile file>
370
371 Allows additional certificates to be specified. When signing these will
372 be included with the message. When verifying these will be searched for
373 the signers certificates. The certificates should be in PEM format.
374
375 =item B<-certsout file>
376
377 Any certificates contained in the message are written to B<file>.
378
379 =item B<-signer file>
380
381 A signing certificate when signing or resigning a message, this option can be
382 used multiple times if more than one signer is required. If a message is being
383 verified then the signers certificates will be written to this file if the
384 verification was successful.
385
386 =item B<-recip file>
387
388 When decrypting a message this specifies the recipients certificate. The
389 certificate must match one of the recipients of the message or an error
390 occurs.
391
392 When encrypting a message this option may be used multiple times to specify
393 each recipient. This form B<must> be used if customised parameters are
394 required (for example to specify RSA-OAEP).
395
396 =item B<-keyid>
397
398 Use subject key identifier to identify certificates instead of issuer name and
399 serial number. The supplied certificate B<must> include a subject key
400 identifier extension. Supported by B<-sign> and B<-encrypt> options.
401
402 =item B<-receipt_request_all -receipt_request_first>
403
404 For B<-sign> option include a signed receipt request. Indicate requests should
405 be provided by all recipient or first tier recipients (those mailed directly
406 and not from a mailing list). Ignored it B<-receipt_request_from> is included.
407
408 =item B<-receipt_request_from emailaddress>
409
410 For B<-sign> option include a signed receipt request. Add an explicit email
411 address where receipts should be supplied.
412
413 =item B<-receipt_request_to emailaddress>
414
415 Add an explicit email address where signed receipts should be sent to. This
416 option B<must> but supplied if a signed receipt it requested.
417
418 =item B<-receipt_request_print>
419
420 For the B<-verify> operation print out the contents of any signed receipt
421 requests.
422
423 =item B<-secretkey key>
424
425 Specify symmetric key to use. The key must be supplied in hex format and be
426 consistent with the algorithm used. Supported by the B<-EncryptedData_encrypt>
427 B<-EncryptedData_decrypt>, B<-encrypt> and B<-decrypt> options. When used
428 with B<-encrypt> or B<-decrypt> the supplied key is used to wrap or unwrap the
429 content encryption key using an AES key in the B<KEKRecipientInfo> type.
430
431 =item B<-secretkeyid id>
432
433 The key identifier for the supplied symmetric key for B<KEKRecipientInfo> type.
434 This option B<must> be present if the B<-secretkey> option is used with
435 B<-encrypt>. With B<-decrypt> operations the B<id> is used to locate the
436 relevant key if it is not supplied then an attempt is used to decrypt any
437 B<KEKRecipientInfo> structures.
438
439 =item B<-econtent_type type>
440
441 Set the encapsulated content type to B<type> if not supplied the B<Data> type
442 is used. The B<type> argument can be any valid OID name in either text or
443 numerical format.
444
445 =item B<-inkey file>
446
447 The private key to use when signing or decrypting. This must match the
448 corresponding certificate. If this option is not specified then the
449 private key must be included in the certificate file specified with
450 the B<-recip> or B<-signer> file. When signing this option can be used
451 multiple times to specify successive keys.
452
453 =item B<-keyopt name:opt>
454
455 For signing and encryption this option can be used multiple times to
456 set customised parameters for the preceding key or certificate. It can
457 currently be used to set RSA-PSS for signing, RSA-OAEP for encryption
458 or to modify default parameters for ECDH.
459
460 =item B<-passin arg>
461
462 The private key password source. For more information about the format of B<arg>
463 see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)>.
464
465 =item B<-rand file...>
466
467 A file or files containing random data used to seed the random number
468 generator.
469 Multiple files can be specified separated by an OS-dependent character.
470 The separator is B<;> for MS-Windows, B<,> for OpenVMS, and B<:> for
471 all others.
472
473 =item [B<-writerand file>]
474
475 Writes random data to the specified I<file> upon exit.
476 This can be used with a subsequent B<-rand> flag.
477
478 =item B<cert.pem...>
479
480 One or more certificates of message recipients: used when encrypting
481 a message.
482
483 =item B<-to, -from, -subject>
484
485 The relevant mail headers. These are included outside the signed
486 portion of a message so they may be included manually. If signing
487 then many S/MIME mail clients check the signers certificate's email
488 address matches that specified in the From: address.
489
490 =item B<-attime>, B<-check_ss_sig>, B<-crl_check>, B<-crl_check_all>,
491 B<-explicit_policy>, B<-extended_crl>, B<-ignore_critical>, B<-inhibit_any>,
492 B<-inhibit_map>, B<-no_alt_chains>, B<-no_check_time>, B<-partial_chain>, B<-policy>,
493 B<-policy_check>, B<-policy_print>, B<-purpose>, B<-suiteB_128>,
494 B<-suiteB_128_only>, B<-suiteB_192>, B<-trusted_first>, B<-use_deltas>,
495 B<-auth_level>, B<-verify_depth>, B<-verify_email>, B<-verify_hostname>,
496 B<-verify_ip>, B<-verify_name>, B<-x509_strict>
497
498 Set various certificate chain validation options. See the
499 L<verify(1)> manual page for details.
500
501 =back
502
503 =head1 NOTES
504
505 The MIME message must be sent without any blank lines between the
506 headers and the output. Some mail programs will automatically add
507 a blank line. Piping the mail directly to sendmail is one way to
508 achieve the correct format.
509
510 The supplied message to be signed or encrypted must include the
511 necessary MIME headers or many S/MIME clients won't display it
512 properly (if at all). You can use the B<-text> option to automatically
513 add plain text headers.
514
515 A "signed and encrypted" message is one where a signed message is
516 then encrypted. This can be produced by encrypting an already signed
517 message: see the examples section.
518
519 This version of the program only allows one signer per message but it
520 will verify multiple signers on received messages. Some S/MIME clients
521 choke if a message contains multiple signers. It is possible to sign
522 messages "in parallel" by signing an already signed message.
523
524 The options B<-encrypt> and B<-decrypt> reflect common usage in S/MIME
525 clients. Strictly speaking these process CMS enveloped data: CMS
526 encrypted data is used for other purposes.
527
528 The B<-resign> option uses an existing message digest when adding a new
529 signer. This means that attributes must be present in at least one existing
530 signer using the same message digest or this operation will fail.
531
532 The B<-stream> and B<-indef> options enable streaming I/O support.
533 As a result the encoding is BER using indefinite length constructed encoding
534 and no longer DER. Streaming is supported for the B<-encrypt> operation and the
535 B<-sign> operation if the content is not detached.
536
537 Streaming is always used for the B<-sign> operation with detached data but
538 since the content is no longer part of the CMS structure the encoding
539 remains DER.
540
541 If the B<-decrypt> option is used without a recipient certificate then an
542 attempt is made to locate the recipient by trying each potential recipient
543 in turn using the supplied private key. To thwart the MMA attack
544 (Bleichenbacher's attack on PKCS #1 v1.5 RSA padding) all recipients are
545 tried whether they succeed or not and if no recipients match the message
546 is "decrypted" using a random key which will typically output garbage.
547 The B<-debug_decrypt> option can be used to disable the MMA attack protection
548 and return an error if no recipient can be found: this option should be used
549 with caution. For a fuller description see L<CMS_decrypt(3)>).
550
551 =head1 EXIT CODES
552
553 =over 4
554
555 =item Z<>0
556
557 The operation was completely successfully.
558
559 =item Z<>1
560
561 An error occurred parsing the command options.
562
563 =item Z<>2
564
565 One of the input files could not be read.
566
567 =item Z<>3
568
569 An error occurred creating the CMS file or when reading the MIME
570 message.
571
572 =item Z<>4
573
574 An error occurred decrypting or verifying the message.
575
576 =item Z<>5
577
578 The message was verified correctly but an error occurred writing out
579 the signers certificates.
580
581 =back
582
583 =head1 COMPATIBILITY WITH PKCS#7 format.
584
585 The B<smime> utility can only process the older B<PKCS#7> format. The B<cms>
586 utility supports Cryptographic Message Syntax format. Use of some features
587 will result in messages which cannot be processed by applications which only
588 support the older format. These are detailed below.
589
590 The use of the B<-keyid> option with B<-sign> or B<-encrypt>.
591
592 The B<-outform PEM> option uses different headers.
593
594 The B<-compress> option.
595
596 The B<-secretkey> option when used with B<-encrypt>.
597
598 The use of PSS with B<-sign>.
599
600 The use of OAEP or non-RSA keys with B<-encrypt>.
601
602 Additionally the B<-EncryptedData_create> and B<-data_create> type cannot
603 be processed by the older B<smime> command.
604
605 =head1 EXAMPLES
606
607 Create a cleartext signed message:
608
609  openssl cms -sign -in message.txt -text -out mail.msg \
610         -signer mycert.pem
611
612 Create an opaque signed message
613
614  openssl cms -sign -in message.txt -text -out mail.msg -nodetach \
615         -signer mycert.pem
616
617 Create a signed message, include some additional certificates and
618 read the private key from another file:
619
620  openssl cms -sign -in in.txt -text -out mail.msg \
621         -signer mycert.pem -inkey mykey.pem -certfile mycerts.pem
622
623 Create a signed message with two signers, use key identifier:
624
625  openssl cms -sign -in message.txt -text -out mail.msg \
626         -signer mycert.pem -signer othercert.pem -keyid
627
628 Send a signed message under Unix directly to sendmail, including headers:
629
630  openssl cms -sign -in in.txt -text -signer mycert.pem \
631         -from steve@openssl.org -to someone@somewhere \
632         -subject "Signed message" | sendmail someone@somewhere
633
634 Verify a message and extract the signer's certificate if successful:
635
636  openssl cms -verify -in mail.msg -signer user.pem -out signedtext.txt
637
638 Send encrypted mail using triple DES:
639
640  openssl cms -encrypt -in in.txt -from steve@openssl.org \
641         -to someone@somewhere -subject "Encrypted message" \
642         -des3 user.pem -out mail.msg
643
644 Sign and encrypt mail:
645
646  openssl cms -sign -in ml.txt -signer my.pem -text \
647         | openssl cms -encrypt -out mail.msg \
648         -from steve@openssl.org -to someone@somewhere \
649         -subject "Signed and Encrypted message" -des3 user.pem
650
651 Note: the encryption command does not include the B<-text> option because the
652 message being encrypted already has MIME headers.
653
654 Decrypt mail:
655
656  openssl cms -decrypt -in mail.msg -recip mycert.pem -inkey key.pem
657
658 The output from Netscape form signing is a PKCS#7 structure with the
659 detached signature format. You can use this program to verify the
660 signature by line wrapping the base64 encoded structure and surrounding
661 it with:
662
663  -----BEGIN PKCS7-----
664  -----END PKCS7-----
665
666 and using the command,
667
668  openssl cms -verify -inform PEM -in signature.pem -content content.txt
669
670 alternatively you can base64 decode the signature and use
671
672  openssl cms -verify -inform DER -in signature.der -content content.txt
673
674 Create an encrypted message using 128 bit Camellia:
675
676  openssl cms -encrypt -in plain.txt -camellia128 -out mail.msg cert.pem
677
678 Add a signer to an existing message:
679
680  openssl cms -resign -in mail.msg -signer newsign.pem -out mail2.msg
681
682 Sign mail using RSA-PSS:
683
684  openssl cms -sign -in message.txt -text -out mail.msg \
685         -signer mycert.pem -keyopt rsa_padding_mode:pss
686
687 Create encrypted mail using RSA-OAEP:
688
689  openssl cms -encrypt -in plain.txt -out mail.msg \
690         -recip cert.pem -keyopt rsa_padding_mode:oaep
691
692 Use SHA256 KDF with an ECDH certificate:
693
694  openssl cms -encrypt -in plain.txt -out mail.msg \
695         -recip ecdhcert.pem -keyopt ecdh_kdf_md:sha256
696
697 =head1 BUGS
698
699 The MIME parser isn't very clever: it seems to handle most messages that I've
700 thrown at it but it may choke on others.
701
702 The code currently will only write out the signer's certificate to a file: if
703 the signer has a separate encryption certificate this must be manually
704 extracted. There should be some heuristic that determines the correct
705 encryption certificate.
706
707 Ideally a database should be maintained of a certificates for each email
708 address.
709
710 The code doesn't currently take note of the permitted symmetric encryption
711 algorithms as supplied in the SMIMECapabilities signed attribute. this means the
712 user has to manually include the correct encryption algorithm. It should store
713 the list of permitted ciphers in a database and only use those.
714
715 No revocation checking is done on the signer's certificate.
716
717 =head1 HISTORY
718
719 The use of multiple B<-signer> options and the B<-resign> command were first
720 added in OpenSSL 1.0.0
721
722 The B<keyopt> option was first added in OpenSSL 1.1.0
723
724 The use of B<-recip> to specify the recipient when encrypting mail was first
725 added to OpenSSL 1.1.0
726
727 Support for RSA-OAEP and RSA-PSS was first added to OpenSSL 1.1.0.
728
729 The use of non-RSA keys with B<-encrypt> and B<-decrypt> was first added
730 to OpenSSL 1.1.0.
731
732 The -no_alt_chains options was first added to OpenSSL 1.1.0.
733
734 =head1 COPYRIGHT
735
736 Copyright 2008-2017 The OpenSSL Project Authors. All Rights Reserved.
737
738 Licensed under the OpenSSL license (the "License").  You may not use
739 this file except in compliance with the License.  You can obtain a copy
740 in the file LICENSE in the source distribution or at
741 L<https://www.openssl.org/source/license.html>.
742
743 =cut