Use this guide to configure TLS in LangSmith. Start by mounting internal certificate authorities (CAs) so your deployment trusts the right roots system‑wide, for database or external service calls. You can then configure Playground-specific mTLS for communicating securely with supported model providers. This page covers:Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
- Mounting internal certificate authorities (CAs) system-wide to enable TLS for database connections and Playground model calls
- Using Playground-specific TLS settings to provide client certs/keys for mTLS with supported model providers
Mount internal CAs for TLS
You must use Helm chart version 0.11.9 or later to mount internal CAs using the configuration below.
- Create a file containing all CAs required for TLS with databases and external services. If your deployment is communicating directly to
beacon.langchain.comwithout a proxy, make sure to include a public trusted CA. All certs should be concatenated in this file with an empty line in between. - Create a Kubernetes secret with a key containing the contents of this file.
- If using custom CA for TLS with your databases and other external services, provide the following values to your LangSmith helm chart:
Helm
- Make sure to use TLS supported connection strings:
- Postgres: Add
?sslmode=verify-full&sslrootcert=systemto the end. - Redis: Use
rediss://instead ofredis://as the prefix.
- Postgres: Add
Use custom TLS certificates for model providers
This feature is currently only available for the following model providers:
- Azure OpenAI
- OpenAI
- Custom (our custom model server). Refer to the custom model server documentation for more information.
- [Optional]
LANGSMITH_PLAYGROUND_TLS_KEY: The private key in PEM format. This must be a file path (for a mounted volume). This is usually only necessary for mutual TLS authentication. - [Optional]
LANGSMITH_PLAYGROUND_TLS_CERT: The certificate in PEM format. This must be a file path (for a mounted volume). This is usually only necessary for mutual TLS authentication. - [Optional]
LANGSMITH_PLAYGROUND_TLS_CA: The custom certificate authority (CA) certificate in PEM format. This must be a file path (for a mounted volume). Use this to mount CAs only if you’re using a helm version below0.11.9; otherwise, use the Mount internal CAs for TLS section above.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

