> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TLS 1.3 and post-quantum key exchange

> Connect to the Corti API with TLS 1.3 and hybrid post-quantum key exchange, and verify what your client negotiates.

Corti API endpoints support TLS 1.3 with hybrid post-quantum key exchange, which protects the confidentiality of the traffic you send even if quantum computers one day break classical key exchange. Use TLS 1.3 for your integrations. This page explains what to use, why it matters, and how to verify what your client actually negotiates.

> [!WARNING]
>
> TLS 1.2 is deprecated. Corti has not announced a shutdown date yet. Review your integrations now, before the date is set.

## What Corti supports

* **Protocol:** TLS 1.3 on all Corti API hostnames, including all `wss://` WebSocket endpoints.
* **Key exchange:** `X25519MLKEM768` (RFC 10024) whenever your client offers it. If your client does not offer the hybrid group, the connection falls back to a classical key exchange group such as `X25519`.
* **Cipher suites:** the standard TLS 1.3 AEAD suites, such as `TLS_AES_256_GCM_SHA384`.

> [!NOTE]
>
> In TLS 1.3, the cipher suite selects the symmetric encryption and hash, while the key exchange group determines how the session keys are agreed. Post-quantum security comes from the key exchange group, not the cipher suite. `X25519MLKEM768` combines the classical X25519 elliptic-curve key exchange with ML-KEM-768 (NIST FIPS 203). The shared secret remains protected as long as either component remains secure.

## Why post-quantum key exchange

A cryptographically relevant quantum computer does not exist today, but the data you send to the Corti API often stays sensitive for decades. Clinical notes, transcripts, and extracted facts recorded now could be decrypted years later by an adversary who stored the traffic: this is known as *harvest now, decrypt later*. Classical key exchange alone provides no protection against that scenario.

Hybrid key exchange addresses it. With `X25519MLKEM768`, an attacker must break both X25519 and ML-KEM-768 to recover the session keys, so your traffic is protected even if quantum computers eventually break the classical half. Hybrid key exchange protects the confidentiality of recorded session traffic against later quantum attacks on classical key exchange; the initial handshake messages, such as the ClientHello and ServerHello, remain visible to whoever records the connection. It does not change authentication: server authentication still uses the existing certificate chain.

## Verify what your connection negotiates

Use OpenSSL 3.5 or later, the first version that offers the hybrid group by default. The following command makes an ordinary, certificate-validated connection without forcing a group, so it shows what this OpenSSL client negotiates with this hostname on your network path:

```bash title="OpenSSL" theme={null}
# Replace these with your values
ENVIRONMENT="<eu-or-us>"
HOST="api.${ENVIRONMENT}.corti.app"

openssl s_client -connect "${HOST}:443" -servername "${HOST}" -verify_hostname "${HOST}" -verify_return_error -brief </dev/null
```

The result is specific to this client, hostname, and network path; your application can negotiate differently. Look for both `TLSv1.3` and `X25519MLKEM768` in the output:

```bash theme={null}
Protocol version: TLSv1.3
Negotiated TLS1.3 group: X25519MLKEM768
```

To test whether an endpoint supports the hybrid group regardless of client defaults, offer only that group, keeping the hostname and certificate checks from the command above. A successful handshake that reports both `TLSv1.3` and `X25519MLKEM768` confirms server support, but it does not show what your application negotiates by default:

```bash title="OpenSSL" theme={null}
# Replace these with your values
ENVIRONMENT="<eu-or-us>"
HOST="api.${ENVIRONMENT}.corti.app"

openssl s_client -connect "${HOST}:443" -servername "${HOST}" -verify_hostname "${HOST}" -verify_return_error -tls1_3 -groups X25519MLKEM768 -brief </dev/null
```

To check with cURL, use cURL 8.5.0 or later linked against OpenSSL 3.5 or later, so that the connection line includes the key exchange group. Inspect the third field:

```bash title="cURL" theme={null}
# Replace these with your values
ENVIRONMENT="<eu-or-us>"

curl -sv "https://api.${ENVIRONMENT}.corti.app" -o /dev/null 2>&1 | grep -i "SSL connection"
# SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256 / X25519MLKEM768 / RSASSA-PSS
```

In a browser, open DevTools, go to the **Security** tab, and inspect a connection to a Corti API origin such as `api.eu.corti.app`. Reloading this documentation page would show this site's connection instead of the API's. The connection details show the protocol version and the key exchange group.

## Client runtime requirements

The Corti SDKs and web components use the TLS stack of the platform they run on, so there is no application code to change. The table below shows which runtime versions support the hybrid group and where you need to enable it. Capability alone does not guarantee that a specific connection negotiates it: a pinned group list, an enterprise policy, or an older system library can change the result, so verify what your connection actually negotiates with the commands above.

| Runtime | Hybrid key exchange from | Notes |
| :- | :- | :- |
| Chrome, Edge | 131+ (desktop) | Enabled by default. On iOS, both use WebKit and need iOS 26. |
| Firefox | 132+ on desktop, 145+ on Android | Enabled by default. |
| Safari | 26+, or iOS 26 | Depends on the OS version, not the browser alone. |
| Node.js | 24.5+, or 22.20+ | Official builds bundle OpenSSL 3.5. Distro builds linked against an older system OpenSSL do not offer the hybrid group; check `process.versions.openssl`. |
| .NET | .NET 10+ | Linux: OpenSSL 3.5+. Windows: Windows 11 24H2+ with the 2026 Schannel updates; the group must be enabled explicitly. macOS: opt in to Network.framework for TLS 1.3. See the note below. |
| Python | Any recent version | Depends on the linked OpenSSL (3.5+); check `ssl.OPENSSL_VERSION`. |
| cURL | 8.5.0+ linked against OpenSSL 3.5+ | Negotiation needs OpenSSL 3.5+; the group only appears in the verbose output from cURL 8.5.0. Check the OpenSSL version in the `curl --version` output. |

As a rule, anything linked against OpenSSL 3.5 or later offers the hybrid group by default, unless it explicitly overrides the group list.

> [!NOTE]
>
> On Windows, Schannel supports the hybrid group only from the 2026 updates for Windows 11 24H2 and later, and the group is disabled by default. Enable it with `Enable-TlsEccCurve -Name "X25519_MLKEM768"` in PowerShell, or with the equivalent Group Policy setting. On macOS, .NET uses Secure Transport, which does not support TLS 1.3. Opt in to Network.framework with `AppContext.SetSwitch("System.Net.Security.UseNetworkFramework", true)` or the `DOTNET_SYSTEM_NET_SECURITY_USENETWORKFRAMEWORK=1` environment variable; the hybrid group additionally requires macOS 26.

## If you route traffic through a proxy

Customers who front the Corti API with their own proxy must use TLS 1.3 on both the client-to-proxy and the proxy-to-Corti connections, because the proxy decrypts traffic between them:

* TLS termination creates two independent connections: from the client to your proxy, and from your proxy to Corti. Configure and verify each leg separately; a secure handshake on one leg says nothing about the other.
* On the client-to-proxy leg, your proxy is the TLS server. If your nginx configuration pins the accepted groups with `ssl_ecdh_curve`, put `?X25519MLKEM768` first in the list. The `?` prefix marks the group as optional so nginx still starts when its OpenSSL does not implement ML-KEM; the prefix itself requires OpenSSL 3.3 or later.
* On the proxy-to-Corti leg, your proxy is the TLS client, and `ssl_ecdh_curve` does not apply. Build nginx against OpenSSL 3.5+ (check with `nginx -V`) and its upstream connections offer the OpenSSL default groups, which include the hybrid group. To pin an explicit upstream group list, use `proxy_ssl_conf_command Groups "X25519MLKEM768:X25519";`.
* The hybrid key share adds about 1.2 KB to the ClientHello. Some legacy firewalls and middleboxes reject oversized ClientHellos. Update or reconfigure them before they break connections.

For proxy setup details, see the [JavaScript SDK proxy guide](https://docs.corti.ai/sdk/js/proxy.md) or the [Corti Assistant proxy guide](https://docs.corti.ai/assistant/proxy).

## Related guides

* [Security best practices](https://docs.corti.ai/authentication/security_best_practices.md): keeping credentials and tokens safe.
* [Authentication overview](https://docs.corti.ai/authentication/overview.md): OAuth 2.0 client credentials and access tokens.
* [Environments & Tenants](https://docs.corti.ai/authentication/environments_tenants.md): base URLs for each environment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.