String file
) Sets the chain of X509 certificates served by SecureServer
when making secure connections, including the server certificate.
file
is an PEM file containing X509 certificates, starting with
the root authority and intermediate authorities forming the signed
chain to the server certificate, and ending with the server certificate.
The private key for the server certificate is set by usePrivateKey.
Source
/**
* Sets the chain of X509 certificates served by [SecureServer]
* when making secure connections, including the server certificate.
* [file] is an PEM file containing X509 certificates, starting with
* the root authority and intermediate authorities forming the signed
* chain to the server certificate, and ending with the server certificate.
* The private key for the server certificate is set by [usePrivateKey].
*/
void useCertificateChain(String file);