buildServerTlsContext
fun buildServerTlsContext(certChainFilePath: String, privateKeyFilePath: String, trustCertCollectionFilePath: String = ""): TlsContext
Builds a complete server-side TlsContext ready for use with a gRPC server.
Return
a TlsContext containing the built SslContext
Parameters
certChainFilePath
path to the server certificate chain file (required)
privateKeyFilePath
path to the server private key file (required)
trustCertCollectionFilePath
path to the trusted client CA certificates (enables mutual auth)
Throws
if SSL context creation fails