Post-quantum cryptography in practice: SSH, TLS, Go, PostgreSQL
Last verified: December 5, 2026.
On December 2, 2026, the US NSA and the UK NCSC 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
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
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: ML-KEM-1024 for key exchange, ML-DSA-87 for digital signatures, and AES-256 for encryption.
What's the timeline? The UK guidance calls for a plan by 2028, priority migrations by 2031, and completion by 2035. The US executive order sets deadlines of 2030 for key exchange and 2031 for signatures on high-value and high-impact federal systems. On December 3, NIST said it would soon publish a faster schedule for phasing out quantum-vulnerable algorithms.
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 OpenSSH 9.6p1, OpenSSL 3.0.13 | sntrup761 | No | No | No |
| Debian 12 OpenSSH 9.2p1, OpenSSL 3.0.22 | sntrup761 | No | No | No |
| AlmaLinux 9.9 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 OpenSSH 9.9p1, OpenSSL 3.5.9 | ML-KEM-768, ML-KEM-1024 | No | ML-KEM-768, ML-KEM-1024 | ML-DSA |
| Debian 13 OpenSSH 10.0p2, OpenSSL 3.5.10 | ML-KEM-768 | No | ML-KEM-768, ML-KEM-1024 | ML-DSA |
| Ubuntu 26.04.1 LTS OpenSSH 10.2p1, OpenSSL 3.5.5 | ML-KEM-768 | No | ML-KEM-768, ML-KEM-1024 | ML-DSA |
| Fedora 45 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)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) 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 introduced mlkem768x25519-sha256. OpenSSH 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 and 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.
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
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 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 have their own TLS implementations.
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
Tools such as kubectl, Helm, and Terraform use Go's TLS implementation, 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 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 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
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 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
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 · IBM Java security guide
On our AlmaLinux 9.9 test hosts, Cassandra 5.0.9 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 and negotiated X25519MLKEM768.
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 18 and PostgreSQL 19 both default ssl_groups to the classical groups X25519:prime256v1. PostgreSQL 19 adds server-side SNI 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.
ssl_groups = 'X25519MLKEM768:X25519:prime256v1'
Reload with SELECT pg_reload_conf(); 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.
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/nullWe used openssl s_client to check key exchange. PostgreSQL releases before 18 expose the older, single-value ssl_ecdh_curve setting. Before the demo upgrade, PostgreSQL 13.23 negotiated prime256v1 with its default configuration and rejected the hybrid-only probe.
MariaDB
MariaDB 11.8.9 from the AlmaLinux 9 module stream loads the system libssl, 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 9.0.8 from MongoDB's RHEL 9 repository loads the system libssl. 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 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 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, upgrade ClickHouse itself.
CockroachDB
CockroachDB uses the Go TLS stack compiled into the binary. CockroachDB v26.4.2, built with Go 1.26.10, negotiated X25519MLKEM768 on its PostgreSQL-compatible port.
TiDB
TiDB is a Go binary, so the host crypto policy does not affect it. TiDB v8.5.8, built with Go 1.25.12, negotiated X25519MLKEM768 on its MySQL-compatible port.
kubectl
Check the installed binary with kubectl version --client -o json. Look for gitVersion and goVersion. The upstream v1.36.7 and v1.37.3 builds use Go 1.26.11, which already supports hybrid key exchange. Use a kubectl release within one minor version of your API server.
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.
kubectl get --raw='/version'Output from our minikube test cluster
{
"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
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 in teleport.yaml. TLS key-exchange groups are not separately configurable in teleport.yaml.
Teleport-managed certificate authorities still use classical signatures (RSA, ECDSA P-256, and Ed25519). No ML-DSA signing support is in v19.0.2 yet. Teleport's December 3 update lists an ML-DSA signature suite for Teleport-managed CAs as in progress, with a target of Q1 2027.
AlmaForge
AlmaForge is a self-hosted zero-trust infrastructure access platform.
In AlmaForge 2026.2.30 (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 CAs by setting ALMA_EXPERIMENTAL_PQ=true before cluster initialization or CA rotation. 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.