buildClientTlsContext

fun buildClientTlsContext(certChainFilePath: String = "", privateKeyFilePath: String = "", trustCertCollectionFilePath: String = ""): TlsContext

Builds a complete client-side TlsContext ready for use with a gRPC channel.

Return

a TlsContext containing the built SslContext

Parameters

certChainFilePath

path to the client certificate chain file (for mutual auth)

privateKeyFilePath

path to the client private key file (for mutual auth)

trustCertCollectionFilePath

path to the trusted CA certificates file (required)

Throws

if SSL context creation fails