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