buildClientTlsContext

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

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

Every path is optional; see clientTlsContextBuilder for what each one does.

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; when empty, the JVM's default trust store is used

Throws

if SSL context creation fails