-chainfile command-line option (pr3287)

Gives the name of a certificate chain file to provided to the host during TLS negotiation. The file contains a PEM-format certificate, optionally followed by any intermediate certificates used to sign it, and the CA (root) certificate.

The private key for the certificate is specified by the -keyfile command-line option. If the -chainfile command-line option is specified, it overrides the -certfile command-line option.

This option exists only on platforms that use OpenSSL to implement TLS.

Syntax

 * -chainfile filename
 * Use the client certificate chain contained in filename.

Examples
-chainfile /home/bob/mychain.pem