trustManager

Available in a dev version: 0․11․0-grpc-186

How to configure

Configures the trust manager with root CA certificates for server authentication.

The trust manager validates the server's certificate chain. The provided root certificates are used to verify that the server's certificate is signed by a trusted CA.

If not specified, the system's default trust store is used.

Example

TlsClientCredentials {
trustManager("""
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJAKl...
-----END CERTIFICATE-----
""".trimIndent())
}

Return

This builder for chaining.

Parameters

rootCertsPem

PEM-encoded root CA certificates for validating the server's certificate.

See also