void setTrustedCertificatesBytes(List<int> certBytes, {String password})

Sets the set of trusted X509 certificates used by SecureSocket client connections, when connecting to a secure server.

Like setTrustedCertificates but takes the contents of the file.

iOS note: On iOS, this call takes only the bytes for a single DER encoded X509 certificate. It may be called multiple times to add multiple trusted certificates to the context. A DER encoded certificate can be obtained from a PEM encoded certificate by using the openssl tool:

$ openssl x509 -outform der -in cert.pem -out cert.der

Source

void setTrustedCertificatesBytes(List<int> certBytes, {String password});