Skip to main content

Transport Layer Security (TLS)

All communication to and from the API endpoints take place using an encrypted communication channel (TLS). gRPC handles configuration of the TLS channel using channel credentials, and you should refer to their documentation.

The code snippets below show how to configure channel credentials using the default set of root certificates installed on your system, which is usually sufficient.

NettyChannelBuilder
.forAddress("serving.vectara.io", 443)
.sslContext(GrpcSslContexts.forClient()
.trustManager(null) // load root certificates from the default location
.build())
.build();