addTrustedCertificate

fun addTrustedCertificate(certificate: X509Certificate): <Error class: unknown class>

Add a trusted root certificate to use when authenticating a peer. Peers must provide a chain of certificates whose root is one of these.