# Post-quantum cryptography in practice: SSH, TLS, Go, PostgreSQL

*Last verified: December 5, 2026.*

On December 2, 2026, the [US NSA](https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662430/nsa-advises-immediate-transition-to-post-quantum-cryptography-to-protect-nation/) and the [UK NCSC](https://www.ncsc.gov.uk/news/ncsc-advises-urgent-action-on-migration-to-post-quantum-cryptography) called for faster migration to post-quantum cryptography (PQC). If you run SSH servers, Kubernetes clusters, or PostgreSQL databases, what can you enable today, what needs upgrading, and what will break?

## TL;DR[​](#tldr "Direct link to TL;DR")

No practical break against modern cryptography at production key sizes has been publicly demonstrated to date. Even so, the agencies are calling for an accelerated migration to post-quantum cryptography.

For those of us running infrastructure, traffic encryption and authentication are two separate problems. Traffic is the immediate concern: encrypted sessions can be recorded today and decrypted years later by a quantum computer. **Upgrade to OpenSSH 9.9+, OpenSSL 3.5+, and binaries built with Go 1.24+ to enable hybrid ML-KEM-768 key exchange for SSH and TLS.** Use JDK 27+ for Java applications that support it. Keep your existing SSH keys, TLS certificates, and CAs until ML-DSA support is more widely available across macOS and Linux.

## What the NSA post-quantum advisory means in practice[​](#what-the-nsa-post-quantum-advisory-means-in-practice "Direct link to What the NSA post-quantum advisory means in practice")

The December 2 advisory cites recent responsible disclosures from frontier AI companies affecting some deployed cryptographic systems, without naming specific algorithms. The NSA urges US government agencies and suppliers responsible for national security systems to migrate to post-quantum cryptography under its [CNSA 2.0 (Commercial National Security Algorithm Suite 2.0) standards](https://www.nsa.gov/Portals/75/documents/CNSA%20Suite%20documents%2009-2026/CSI_CNSA_2.0_FAQ_.pdf): ML-KEM-1024 for key exchange, ML-DSA-87 for digital signatures, and AES-256 for encryption.

What's the timeline? The [UK guidance](https://www.ncsc.gov.uk/guidance/pqc-migration-timelines) calls for a plan by 2028, priority migrations by 2031, and completion by 2035. The [US executive order](https://www.whitehouse.gov/presidential-actions/2026/06/securing-the-nation-against-advanced-cryptographic-attacks/) sets deadlines of 2030 for key exchange and 2031 for signatures on high-value and high-impact federal systems. On December 3, [NIST said](https://www.nist.gov/pqc/nist-statement-implications-recent-research-cryptographic-security) it would soon publish a faster schedule for phasing out quantum-vulnerable algorithms.

## SSH and TLS support by OS[​](#post-quantum-ssh-tls-linux-macos "Direct link to SSH and TLS support by OS")

We build AlmaForge, a self-hosted infrastructure access platform. The Linux entries in the table come from inspecting stock packages and the algorithms they report. We identify live SSH, TLS, and database handshake results where we discuss them.

| OS                                                                                             | SSH                     |                     | TLS (OpenSSL / LibreSSL) |                           |
| ---------------------------------------------------------------------------------------------- | ----------------------- | ------------------- | ------------------------ | ------------------------- |
|                                                                                                | PQ key exchange         | PQ authentication   | Hybrid TLS groups        | PQ certificate signatures |
| Ubuntu 24.04.5 LTS<br />OpenSSH 9.6p1, OpenSSL 3.0.13                                          | `sntrup761`             | No                  | No                       | No                        |
| Debian 12<br />OpenSSH 9.2p1, OpenSSL 3.0.22                                                   | `sntrup761`             | No                  | No                       | No                        |
| AlmaLinux 9.9<br />OpenSSH 9.9p1, OpenSSL 3.5.9 (needs `DEFAULT:PQ`)                           | ML-KEM-768              | No                  | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |
| AlmaLinux 10.3, Rocky Linux 10.3, RHEL UBI 10.3<br />OpenSSH 9.9p1, OpenSSL 3.5.9              | ML-KEM-768, ML-KEM-1024 | No                  | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |
| Debian 13<br />OpenSSH 10.0p2, OpenSSL 3.5.10                                                  | ML-KEM-768              | No                  | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |
| Ubuntu 26.04.1 LTS<br />OpenSSH 10.2p1, OpenSSL 3.5.5                                          | ML-KEM-768              | No                  | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |
| Fedora 45<br />OpenSSH 10.6p1, OpenSSL 4.0.3                                                   | ML-KEM-768, ML-KEM-1024 | ML-DSA-44 + Ed25519 | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |
| macOS 27.2.1 (Apple-supplied tools)<br />`ssh` runs OpenSSH 10.5p1, `curl` uses LibreSSL 3.3.6 | ML-KEM-768              | ML-DSA-44 + Ed25519 | No                       | No                        |
| macOS 27.2.1 (Homebrew)<br />OpenSSL 4.1.0                                                     | n/a                     | n/a                 | ML-KEM-768, ML-KEM-1024  | ML-DSA                    |

Two package versions explain most of the table.

**[OpenSSH 9.9](https://www.openssh.org/txt/release-9.9)** introduced `mlkem768x25519-sha256`. **[OpenSSH 10.0](https://www.openssh.org/txt/release-10.0)** made it the preferred exchange. The older OpenSSH builds on Ubuntu 24.04 LTS and Debian 12 offer `sntrup761x25519-sha512` as their hybrid exchange. The RHEL 10.3 family and Fedora 45 builds in the table also carry downstream support for `mlkem1024nistp384-sha384`.

**OpenSSL 3.5** introduced native [ML-KEM](https://docs.openssl.org/3.5/man3/SSL_CTX_set1_curves/) and [ML-DSA](https://docs.openssl.org/3.5/man7/EVP_PKEY-ML-DSA/), including ML-DSA-44, ML-DSA-65, and ML-DSA-87.

Use a fresh SSH connection to check which key exchange you negotiate.

******Terminal

```bash
ssh -vv -o ControlPath=none user@ssh.example.com true 2>&1 | \
    grep 'kex: algorithm:'
```

A result such as `mlkem768x25519-sha256` or `sntrup761x25519-sha512` confirms hybrid key exchange. OpenSSH 10.1 and later warn by default when a connection negotiates a classical key exchange. [OpenSSH 10.1 release notes](https://www.openssh.org/txt/release-10.1)

On Enterprise Linux 9, check the system-wide crypto policy as well as the package version. Red Hat documents [`DEFAULT:PQ` as the opt-in policy](https://access.redhat.com/security/pqc/rhel) on RHEL 9.7 and later. RHEL 10.1 and later prefer hybrid exchanges under `DEFAULT`. Test system-wide policy changes on a staging host.

The TLS columns apply to applications using the listed library. OS crypto policies and application settings can limit which TLS groups a connection offers. Go binaries and apps using [native macOS networking frameworks](https://developer.apple.com/documentation/technotes/tn3151-choosing-the-right-networking-api) have their own TLS implementations.

note

On macOS 27.2.1, system curl 8.7.1 uses LibreSSL 3.3.6 and Homebrew OpenSSL is 4.1.0. In our HTTPS test on the same Mac against an ML-DSA-87 certificate chain, Homebrew OpenSSL verified the chain and negotiated `X25519MLKEM768`. System curl failed the handshake.

The system SSH client is OpenSSH 10.5p1. macOS 27.2.1 lists the hybrid key type as `ssh-mldsa44-ed25519@openssh.com`, and Fedora 45 lists it as `ssh-mldsa44-ed25519`. The macOS variant is experimental and off by default. OpenSSH 10.6 enables the variant without the vendor suffix by default. SSH requires an exact algorithm name match. The macOS client lists no pure ML-DSA keys, so it does not accept Go's `ssh-mldsa-*` keys.

## Go binaries[​](#go-post-quantum-tls "Direct link to Go binaries")

Tools such as kubectl, Helm, and Terraform use [Go's TLS implementation](https://pkg.go.dev/crypto/tls), which is compiled into the binary. Check the Go version used to build each tool. To get a newer TLS implementation, upgrade the tool itself. An OpenSSL update on the host leaves Go's TLS implementation unchanged.

[Go 1.24 and later](https://go.dev/doc/go1.24#crypto/tls) enable hybrid `X25519MLKEM768` key exchange by default in TLS 1.3. The TLS endpoint must also support the group. You can keep your existing certificates.

[Go 1.27 and later](https://go.dev/doc/go1.27) support ML-DSA signatures in TLS 1.3 and X.509 certificates. Before changing a certificate chain, check the Go versions of the tools that need to verify it.

## Java applications[​](#java-post-quantum-tls "Direct link to Java applications")

Servers such as Cassandra, Elasticsearch, and Kafka use the TLS implementation of the JDK that runs them, not the host's OpenSSL. The host crypto policy cannot add ML-KEM to them. Check which JDK runs each service: `java -version` for the system JDK, or the `release` file in a bundled `jdk` directory.

**[JDK 27 and later](https://www.oracle.com/java/technologies/javase/27all-relnotes.html)** enable hybrid `X25519MLKEM768` key exchange by default in TLS 1.3. A `jdk.tls.namedGroups` system property that lists groups explicitly replaces that default, so add `X25519MLKEM768` to it. [JEP 527](https://openjdk.org/jeps/527)

Upgrade to JDK 27 only where your application supports it. Cassandra 5.0 supports Java 11 and 17. If your application requires an older JDK, check whether your vendor backports hybrid TLS to your release. [Cassandra 5.0 Java support](https://cassandra.apache.org/doc/stable/cassandra/reference/java17.html) · [IBM Java security guide](https://www.ibm.com/support/pages/semeru-runtimes-security-guide)

On our AlmaLinux 9.9 test hosts, [Cassandra 5.0.9](https://cassandra.apache.org/doc/latest/cassandra/managing/configuration/cass_yaml_file.html#client_encryption_options) was running the **OpenJDK 17.0.20.1.1** package. It negotiated `X25519` and rejected a hybrid-only offer. Elasticsearch 9.5.5 used its [bundled **OpenJDK 27**](https://www.elastic.co/docs/deploy-manage/deploy/self-managed/installing-elasticsearch#jvm-version) and negotiated `X25519MLKEM768`.

## Software-specific notes[​](#post-quantum-tls-software "Direct link to Software-specific notes")

The database handshake results below come from server-side probes on our AlmaLinux 9.9 test hosts on December 5, 2026. The versions refer to the running services at the time of the probe. Each client must also offer the hybrid group, so test `psql`, `mariadb`, `mongosh`, `redis-cli`, and your application drivers separately.

### PostgreSQL[​](#postgresql-post-quantum-tls "Direct link to PostgreSQL")

[PostgreSQL 18](https://www.postgresql.org/docs/18/runtime-config-connection.html#GUC-SSL-GROUPS) and [PostgreSQL 19](https://www.postgresql.org/docs/19/runtime-config-connection.html#GUC-SSL-GROUPS) both default `ssl_groups` to the classical groups `X25519:prime256v1`. PostgreSQL 19 adds [server-side SNI](https://www.postgresql.org/docs/19/release-19.html) to select a certificate by hostname. It keeps the same key exchange default.

On our demo stand, PostgreSQL 18.7 used OpenSSL 3.5.9 under `DEFAULT:PQ`. With the default groups, it negotiated `X25519` and rejected a client offering only `X25519MLKEM768`. The PostgreSQL 19 comparison is based on upstream documentation. The stand runs 18.7.

On PostgreSQL 18 or 19 with an OpenSSL build that supports the group, add `X25519MLKEM768` to `ssl_groups` in `postgresql.conf` on a staging server. Keep the existing groups for older clients.

INI

```ini
ssl_groups = 'X25519MLKEM768:X25519:prime256v1'
```

Reload with [`SELECT pg_reload_conf();`](https://www.postgresql.org/docs/18/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL) and confirm the active setting with `SHOW ssl_groups;`. The following probe checks whether the server accepts the hybrid group with OpenSSL 3.5 or later. Verify the negotiated group separately for `psql` and any application drivers or poolers.

******Terminal

```bash
openssl s_client -starttls postgres -connect db.example.com:5432 \
    -servername db.example.com -verify_hostname db.example.com \
    -CAfile db-ca.pem -verify_return_error -tls1_3 \
    -groups X25519MLKEM768 </dev/null
```

We used [`openssl s_client`](https://docs.openssl.org/3.5/man1/openssl-s_client/) to check key exchange. PostgreSQL releases before 18 expose the older, single-value [`ssl_ecdh_curve` setting](https://www.postgresql.org/docs/18/release-18.html). Before the demo upgrade, PostgreSQL 13.23 negotiated `prime256v1` with its default configuration and rejected the hybrid-only probe.

### MariaDB[​](#mariadb-post-quantum-tls "Direct link to MariaDB")

MariaDB 11.8.9 from the AlmaLinux 9 module stream [loads the system `libssl`](https://mariadb.com/docs/server/security/encryption/tls-and-cryptography-libraries-used-by-mariadb), so the host crypto policy decides its key exchange. Under `DEFAULT:PQ` it negotiated `X25519MLKEM768`, including with a client that offered only that group. On EL9, enable `DEFAULT:PQ` on the database host.

### MongoDB[​](#mongodb-post-quantum-tls "Direct link to MongoDB")

MongoDB 9.0.8 from MongoDB's RHEL 9 repository [loads the system `libssl`](https://www.mongodb.com/docs/manual/core/security-transport-encryption/). The running process still had OpenSSL 3.5.8 loaded after the host package was upgraded to 3.5.9. It negotiated `X25519MLKEM768` with a client that offered only that group.

### Valkey[​](#valkey-post-quantum-tls "Direct link to Valkey")

[Valkey](https://valkey.io/topics/encryption/) 8.1.10 loads the system `libssl`. Under `DEFAULT:PQ` it selected `X25519MLKEM768` from a hybrid-only offer, then rejected the probe because it had no client certificate.

### ClickHouse[​](#clickhouse-post-quantum-tls "Direct link to ClickHouse")

ClickHouse links its TLS library into the `clickhouse` binary instead of loading the system `libssl`, so OS package updates do not change its TLS. The running ClickHouse 26.9.10.4 process negotiated `X25519MLKEM768` on our test host. To change its [TLS behavior](https://clickhouse.com/docs/reference/settings/server-settings/settings/openssl-server-requiretlsv1), upgrade ClickHouse itself.

### CockroachDB[​](#cockroachdb-post-quantum-tls "Direct link to CockroachDB")

CockroachDB uses the Go TLS stack compiled into the binary. [CockroachDB v26.4.2](https://docs.cockroachlabs.com/docs/releases/v26.4#v26-4-2), built with Go 1.26.10, negotiated `X25519MLKEM768` on its PostgreSQL-compatible port.

### TiDB[​](#tidb-post-quantum-tls "Direct link to TiDB")

TiDB is a Go binary, so the host crypto policy does not affect it. [TiDB v8.5.8](https://docs.pingcap.com/tidb/stable/release-8.5.8/), built with Go 1.25.12, negotiated `X25519MLKEM768` on its [MySQL-compatible port](https://docs.pingcap.com/tidb/stable/enable-tls-between-clients-and-servers/).

### kubectl[​](#kubectl-post-quantum-tls "Direct link to kubectl")

Check the installed binary with [`kubectl version --client -o json`](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_version/). Look for `gitVersion` and `goVersion`. The upstream [v1.36.7](https://github.com/kubernetes/kubernetes/blob/v1.36.7/build/build-image/cross/VERSION) and [v1.37.3](https://github.com/kubernetes/kubernetes/blob/v1.37.3/build/build-image/cross/VERSION) builds use Go 1.26.11, which already supports hybrid key exchange. Use a kubectl release [within one minor version of your API server](https://kubernetes.io/releases/version-skew-policy/#kubectl).

For ML-DSA certificates, use a kubectl build with Go 1.27 or later. The binary installed on our Mac reports `v1.38.0-beta.0` and `go1.27.3`. That's a prerelease you can use for testing where it falls within the supported version skew. The earlier Homebrew client in the lab used Go 1.26.11, and its connection attempt stopped at credential setup before reaching TLS.

Check the API server too. `/version` reports the Go version the API server was built with. Go 1.24 or later negotiates `X25519MLKEM768` by default, and serving an ML-DSA certificate needs Go 1.27 or later.

******Terminal

```bash
kubectl get --raw='/version'
```

Output from our minikube test cluster

JSON

```json
{

  "major": "1",

  "minor": "37",

  "emulationMajor": "1",

  "emulationMinor": "37",

  "minCompatibilityMajor": "1",

  "minCompatibilityMinor": "36",

  "gitVersion": "v1.37.3",

  "gitCommit": "f81a9c5f95912fd97b7c8aa4966301aeae84a253",

  "gitTreeState": "clean",

  "buildDate": "2026-11-25T10:39:42Z",

  "goVersion": "go1.26.11",

  "compiler": "gc",

  "platform": "linux/amd64"

}
```

This API server reports `go1.26.11`. Our probe confirmed that it negotiates `X25519MLKEM768`.

To verify hybrid key exchange, look for `X25519MLKEM768` in the endpoint's TLS diagnostics or the ServerHello of a fresh handshake. If a load balancer or proxy terminates TLS, verify each connection separately. Before rotating a Kubernetes CA to ML-DSA, test kubectl, controllers, GitOps operators, and CI runners.

### Teleport[​](#teleport-post-quantum-cryptography "Direct link to Teleport")

In Teleport v19.0.2 (Go 1.27.3) and v18.11.14 (Go 1.26.10), both built with `golang.org/x/crypto` v0.58.0, hybrid ML-KEM-768 key exchange is enabled by default for SSH (`mlkem768x25519-sha256`) and TLS 1.3 (`X25519MLKEM768`) with compatible peers. You can restrict SSH key exchange with [`kex_algos`](https://goteleport.com/docs/reference/deployment/config/) in `teleport.yaml`. TLS key-exchange groups are not separately configurable in `teleport.yaml`.

Teleport-managed certificate authorities still use [classical signatures](https://goteleport.com/docs/reference/deployment/signature-algorithms/) (RSA, ECDSA P-256, and Ed25519). No ML-DSA signing support is in v19.0.2 yet. Teleport's [December 3 update](https://goteleport.com/blog/post-quantum-cryptography-support/) lists an ML-DSA signature suite for Teleport-managed CAs as in progress, with a target of Q1 2027.

### AlmaForge[​](#almaforge-post-quantum-cryptography "Direct link to AlmaForge")

AlmaForge is a self-hosted zero-trust infrastructure access platform.

In [AlmaForge 2026.2.30](https://almaforge.com/news/2026-12-03-post-quantum-cryptography.md) (Go 1.27.4 and `golang.org/x/crypto` v0.59.0), hybrid ML-KEM-768 key exchange is enabled by default for SSH (`mlkem768x25519-sha256`) and TLS 1.3 (`X25519MLKEM768`) with compatible peers. Upgrading keeps existing certificate authorities in place, while new and rotated CAs default to ECDSA P-384 (and RSA-4096 for OIDC signing).

While Teleport's ML-DSA certificate authorities are still on the roadmap for Q1 2027, AlmaForge already lets you [enable ML-DSA-87](https://almaforge.com/news/2026-12-03-post-quantum-cryptography.md) CAs by setting [`ALMA_EXPERIMENTAL_PQ=true`](https://almaforge.com/reference/environment.md#certificate-authority-keys) before cluster initialization or [CA rotation](https://almaforge.com/ca-rotation.md). Use that flag in staging and lab environments now to test your SSH, `curl`, `kubectl`, and database clients against real post-quantum certificates. Production-default ML-DSA signing and strict post-quantum enforcement will follow as OS and client support matures.
