Sets the chain of X509 certificates served by SecureServer
when making secure connections, including the server certificate.
file
is a PEM or PKCS12 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. For
PKCS12 files, password
is the password for the file. For PEM files,
password
is ignored.
Source
void useCertificateChainSync(String file, {String password});