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())
}Content copied to clipboard
Return
This builder for chaining.
Parameters
rootCertsPem
PEM-encoded root CA certificates for validating the server's certificate.