How to configure post-quantum algorithms in Debian

In Debian 13 trixie, OpenSSH 10.0p1 already offers a hybrid ML-KEM key exchange by default, and OpenSSL 3.5 supports ML-KEM groups in its default TLS list. Host keys and certificates stay classical, and the page explains how to confirm and tune each setting.

On this page

Which post-quantum settings Debian trixie already enables

On Debian trixie, the defaults already include some post-quantum key exchange. OpenSSH 10.0p1 defaults to mlkem768x25519-sha256 and sntrup761x25519-sha512 for key exchange, and OpenSSL 3.5 defaults to X25519MLKEM768 for TLS key shares. Host keys, certificates and repository signatures remain non-post-quantum. The trixie release notes do not mention post-quantum changes, and Debian has published no post-quantum roadmap on the pages checked, so the practical starting point is to confirm these defaults on your own systems rather than assume them from the release.

For SSH, the default KexAlgorithms list in the trixie sshd_config(5) and ssh_config(5) man pages places the two hybrid post-quantum methods first, ahead of curve25519-sha256. Those hybrids combine a post-quantum key encapsulation with X25519, so the session key exchange is protected even if one component weakens. Host keys stay on ssh_host_ed25519_key, ssh_host_ecdsa_key and ssh_host_rsa_key, and their signatures are public-key algorithms with no post-quantum option in the default lists. Check your effective settings with sshd -T and confirm the kexalgorithms line, and treat DSA removal in OpenSSH 9.8p1 and later as a separate pre-upgrade step: generate Ed25519 keys before upgrading if DSA keys remain in use.

For TLS, OpenSSL 3.5 sends an X25519MLKEM768 share alongside a classic X25519 share by default, and it lists the ML-DSA variants first in default signature algorithms. Debian's openssl.cnf may apply a [system_default] section, so confirm the effective MinProtocol, CipherString and group settings in /etc/ssl/openssl.cnf on each host. GnuTLS in trixie does not appear to build the leancrypto path needed for ML-DSA, and APT's repository signatures remain OpenPGP signatures verified through sqv, so those components need their own review.

Default post-quantum settings by package and version in trixie

This table compares the default post-quantum-related settings shipped in Debian trixie for OpenSSH and OpenSSL, and lists what the table does not cover. Read each row against the package version named in its source, since defaults can change in later releases. The main takeaway is that trixie enables a hybrid post-quantum key exchange by default in OpenSSH and TLS, but its host keys, certificates and APT repository signatures remain classical.

Package and settingTrixie defaultSource and date
OpenSSH 10.0p1 sshd KexAlgorithmsmlkem768x25519-sha256 listed first, then sntrup761x25519-sha512, curve25519-sha256 and ECDH P-curvesDebian trixie sshd_config(5) man page, as of 3 December 2026
OpenSSH 10.0p1 ssh client KexAlgorithmsSame post-quantum hybrids listed first, followed by classical DH groupsDebian trixie ssh_config(5) man page, as of 3 December 2026
OpenSSH HostKeyAlgorithms (not covered)Ed25519, ECDSA and RSA with SHA-2; no post-quantum option in the default listDebian trixie sshd_config(5) man page, as of 3 December 2026
OpenSSL 3.5 TLS default groupsX25519MLKEM768 offered first, with X25519 as a second key share by defaultOpenSSL 3.5 CHANGES, OpenSSL 3.5.0 released 8 April 2025
OpenSSL 3.5 TLS default signature algorithmsAll three ML-DSA variants placed first in the default listOpenSSL 3.5 CHANGES, OpenSSL 3.5.0 released 8 April 2025
libssl3t64 package version3.5.9-1~deb13u1, as of 3 December 2026Debian libssl3t64 package page, as of 3 December 2026
Certificates and PKI (not covered)Classical certificate signatures; confirm your CA and certificate issuance path separatelyNot covered by the trixie sources above
APT repository signing (not covered)Release files are checked with OpenPGP signatures; apt-secure(8) names no post-quantum optionDebian apt-secure(8) man page, as of 3 December 2026

Which trixie components carry post-quantum key exchange

Debian 13 "trixie" ships post-quantum key exchange in some components and not others, and the default settings differ between them. The cards below cover each component the page covers, what the facts show for it, and what the facts do not show, so you can check each one in your own environment.

sshd (OpenSSH server)

Trixie ships OpenSSH 10.0p1, and its default sshd KexAlgorithms list places mlkem768x25519-sha256 first, followed by sntrup761x25519-sha512 and the classical curve and ECDH options. The default host keys (Ed25519, ECDSA and RSA) and their signatures are not post-quantum, so server authentication still depends on classical public keys. Check the effective list with sshd -T | grep kexalgorithms on your own hosts, since local configuration can override the default. The trixie release notes do not mention post-quantum features, so confirm the behavior on your installed version rather than relying on the release page.

sshd_config man page

SSH client (OpenSSH)

The trixie ssh_config(5) page lists the same default KexAlgorithms as the server, with the hybrid mlkem768x25519-sha256 first, and then adds the diffie-hellman-group exchange options. The client therefore offers post-quantum key exchange by default when the server also supports it. The client's host-key verification and user-key signatures remain classical public-key operations. The WarnWeakCrypto warning that flags non-post-quantum exchanges appears in OpenSSH 10.1, not in trixie's 10.0p1, so do not expect that warning from the client shipped in trixie.

ssh_config man page

OpenSSL-based TLS (including libldap2 and slapd)

Trixie ships the OpenSSL 3.5 series, which adds ML-KEM and ML-DSA and the hybrid TLS groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Upstream OpenSSL 3.5.0 makes X25519MLKEM768 the first default group, so a client typically sends two key shares. libldap2 and slapd also use OpenSSL in trixie rather than GnuTLS. Whether the Debian build of each application enables these groups, and whether the server side negotiates them, depends on the application's own configuration, so verify with a TLS handshake test against your service.

libssl3t64 version
3.5.9-1~deb13u1
OpenSSL 3.5 changes

GnuTLS

GnuTLS 3.8.9 added experimental ML-DSA and the SecP384r1MLKEM1024 hybrid, but only in builds with leancrypto or liboqs, and GnuTLS 3.8.10 later allowed ML-DSA handshakes when built with leancrypto. The trixie gnutls28 3.8.9-3+deb13u4 debian/rules passes no leancrypto or liboqs option to configure, so the leancrypto-dependent ML-DSA path does not appear to be built in that package. Confirm the build options of the exact package you run before assuming any GnuTLS post-quantum behavior.

gnutls28 debian/rules

APT repository signature verification

APT checks OpenPGP signatures on each repository's Release file, and trixie's APT 3.0.4 verifies them through sqv, the Sequoia OpenPGP verifier. The facts show no post-quantum signature option in apt-secure(8), so repository signatures remain classical public-key signatures. APT does not check signatures on individual packages. Use AllowWeakRepositories only with care, since its default is false, and watch for sqv rejecting weak hash algorithms, as one report on the Debian lists describes for SHA1.

apt-secure man page

Steps to confirm and enable post-quantum key exchange on trixie

This sequence confirms that a Debian 13 (trixie) host runs OpenSSH and OpenSSL versions that include post-quantum key exchange, checks which key exchange methods are active, and verifies that a real client connection uses one. Each step ends with a check so the engineer can record what was confirmed on each host.

  1. Confirm OpenSSH and OpenSSL package versions

    Run a package query on each host to record the installed OpenSSH and OpenSSL versions. Trixie ships OpenSSH 10.0p1 and the OpenSSL 3.5 series, and the libssl3t64 package in trixie is version 3.5.9-1~deb13u1 as of 3 December 2026. Use dpkg-query or apt-cache policy for the openssh-server, openssh-client and libssl3t64 packages. The step is closed when each host's recorded versions match the trixie release or a later point release, and any host showing an older version is flagged for updating before continuing.

  2. List effective server key exchange algorithms

    Run sshd -T on the server as root to print the configuration sshd is actually using, including the KexAlgorithms line. On a stock trixie configuration the first entry should be mlkem768x25519-sha256, followed by sntrup761x25519-sha512 and the classical curve25519 and ECDH options. Compare the output with the defaults in the sshd_config(5) man page for trixie. The step is closed when the KexAlgorithms line in the output includes mlkem768x25519-sha256 and the host's configuration matches what the team expects.

  3. Check client support for the ML-KEM hybrid

    Run ssh -Q kex on each client host that will connect to the server. The output lists the key exchange methods that the client binary supports. Look for mlkem768x25519-sha256 in the list. This check covers the client build, not the server, so run it on every client image or workstation class that needs to connect. The step is closed when every client type in scope lists mlkem768x25519-sha256 in its output. A client that does not list it cannot negotiate this method, and the team should record it as a gap.

  4. Pin KexAlgorithms in sshd_config.d if needed

    If the organization needs a stricter list than the default, create a drop-in file under /etc/ssh/sshd_config.d/ with a KexAlgorithms line that names only the methods the team has approved. Keep mlkem768x25519-sha256 in the list if it is to be used, and remember that the drop-in changes the default list for the whole server. Check the syntax with sshd -t, then reload the service. The step is closed when sshd -t returns without errors and sshd -T shows the pinned KexAlgorithms line. If no stricter list is required, record that the default was kept and skip this step.

  5. Verify the negotiated key exchange with ssh -v

    From a client that passed the earlier check, connect to the server with ssh -v and read the debug output. Look for the line that names the key exchange method negotiated for the session. A successful result shows mlkem768x25519-sha256 as the chosen method when both sides support it. Record the client version, server host and the negotiated line. The step is closed when the verbose output names the expected method for the test connection, and the result is saved in the change record.

  6. Check OpenSSL TLS groups

    Run openssl list -tls-groups on each host that uses the OpenSSL 3.5 libraries for TLS. The output should include the hybrid groups added in OpenSSL 3.5.0, including X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. This check confirms what the local OpenSSL build offers, but it does not show what any application negotiates, because applications set their own group preferences. The step is closed when the output includes X25519MLKEM768 and the host's record notes that application-level settings still need separate checks.

  7. Record results and note what remains unconfirmed

    Write down the version, command output and negotiated method for each host in the change record. Include any client or application that did not show the expected method, and any setting that was pinned or left at the default. Note that the trixie release notes do not mention post-quantum features, so Debian's own documentation should not be cited as a statement of support. The step is closed when every host in scope has a recorded result, and each gap has an owner and a next action.

How the setup differs for SSH servers, clients and TLS services

On Debian trixie, OpenSSH server ships version 10.0p1, which moved from 9.2p1 in bookworm. The default KexAlgorithms list in sshd_config(5) puts mlkem768x25519-sha256 first, followed by two sntrup761x25519-sha512 variants and then classical curve and ECDH options. This means a server with no changes already offers hybrid post-quantum key exchange to clients that support it. Host keys and certificates are not affected by these defaults, because their signatures remain classical.

  • Default key exchange: mlkem768x25519-sha256 is listed first, so clients that support it will negotiate it when offered.
  • Fallback key exchange: sntrup761x25519-sha512 and its @openssh.com variant are listed next, followed by curve25519-sha256 and ECDH groups.
  • Host keys: The defaults are ssh_host_ecdsa_key, ssh_host_ed25519_key and ssh_host_rsa_key, and their signatures are not post-quantum.
  • Overrides: Set KexAlgorithms in sshd_config to restrict or reorder the list, and check HostKeyAlgorithms if you change host key types.
  • DSA removal: OpenSSH 9.8p1 and later removes DSA even when HostKeyAlgorithms or PubkeyAcceptedAlgorithms requests it, so generate Ed25519 keys before upgrading if any DSA keys remain.
  • Warning: The 10.1 WarnWeakCrypto warning for non-post-quantum key exchange is not in the 10.0p1 build shipped in trixie.

Confirm the installed version with sshd -V and compare the effective list with sshd -T | grep kexalgorithms on your own host.

What changes after you rely on the hybrid key exchange

Turning on the hybrid key exchange changes the handshake itself, not just the algorithm list. In OpenSSH, mlkem768x25519-sha256 combines ML-KEM-768 with X25519, so each connection carries a post-quantum key share alongside the classical one, and the handshake grows as a result. OpenSSL 3.5 works the same way for TLS: its default group list is ?*X25519MLKEM768 / ?*X25519:?secp256r1 / ?X448:?secp384r1:?secp521r1 / ?ffdhe2048:?ffdhe3072, so a TLS client sends two key shares, X25519MLKEM768 and X25519, by default. Before you rely on this, confirm the handshake size and latency on the paths your services actually use, and test them against the load balancers, proxies and inspection devices in between, since any of them can drop or fail on a larger ClientHello. Older clients and some middleboxes do not offer hybrid groups at all, so connections from them will fall back to classical key exchange. Decide whether that fallback is acceptable for each service, and check the negotiated group in your logs rather than assuming it.

The DSA removal is a separate change, and it is not about key exchange. The trixie release notes say that OpenSSH 9.8p1 and later removes DSA support even when HostKeyAlgorithms or PubkeyAcceptedAlgorithms are set. If any host or user keys in your estate are still DSA, connections using them will stop working after the upgrade. Find them before you upgrade by listing the key files in /etc/ssh and in each user's ~/.ssh directory, and generate Ed25519 replacements first, as the release notes advise. Test the replacements against every client that authenticates to the server, because a client that only offers DSA will fail. This change affects authentication and host identity, so it should be scheduled and tested on its own, separate from the key exchange rollout.

What Debian has not published on post-quantum signatures and policy

Debian's trixie documentation covers post-quantum key exchange in OpenSSH and OpenSSL but says nothing about post-quantum signatures, package verification or a formal policy. The cards below list each open item and the question to put to Debian or the package maintainers.

Host key and certificate signatures

The default HostKeyAlgorithms list in trixie's sshd_config(5) contains only Ed25519, ECDSA, RSA with SHA-2, their certificate variants and the security-key types. None of these is post-quantum, and the post-quantum key exchange does not change how the server proves its identity. Ask Debian whether any post-quantum host-key or certificate algorithm is planned for openssh-server, and which OpenSSH version would first offer one. Check your own sshd_config, since a host key type added there does not appear in the defaults.

sshd_config man page

APT repository signing

APT checks the signature on each repository's Release file, and apt-secure(8) names no post-quantum option. Trixie's apt depends on sqv, the Sequoia verifier, and the apt changelog records the move from GnuPG to Sequoia. Ask Debian and the archive team whether the archive signing key will move to a post-quantum OpenPGP signature scheme, and on what timeline. Ask which sqv version would verify such signatures, and whether apt would reject a repository signed only with a non-post-quantum key.

apt-secure man page

GnuTLS ML-DSA build status

GnuTLS added ML-DSA in upstream releases, but only when built with leancrypto. Debian's gnutls28 package in trixie does not pass a leancrypto option to configure, so the ML-DSA path does not appear to be built there. Ask the gnutls28 maintainers whether leancrypto will be packaged and enabled, and whether the Debian build will expose ML-DSA handshakes in a future release. Confirm the build flags in the exact package version you run, because the rules file can change between revisions.

gnutls28 debian/rules

No roadmap, FIPS or CNSA 2.0 statement

The trixie what's-new page, the issues page and the release information page contain no post-quantum roadmap, no FIPS statement and no CNSA 2.0 statement. Debian's release pages list full support ending 9 August 2028 and LTS ending 30 June 2030, but no post-quantum date appears alongside them. Ask Debian whether it has a published post-quantum plan, whether any FIPS 140 or CNSA 2.0 position exists, and where such statements will be published. Record the answer and its date, since the pages can change.

Debian trixie release information

Questions on configuring post-quantum algorithms in Debian

Is Debian trixie quantum safe?

Debian trixie does not offer a quantum-safe system as a whole, and no Debian page names post-quantum support as a supported or planned feature. What trixie does ship is a set of post-quantum key exchange options: OpenSSH 10.0p1 enables the hybrid mlkem768x25519-sha256 and sntrup761x25519-sha512 key exchanges by default, and OpenSSL 3.5 provides ML-KEM, ML-DSA and SLH-DSA along with hybrid TLS groups. Host keys, user keys and certificates in the default configuration still use classical public-key signatures such as Ed25519, ECDSA and RSA. Treat trixie as offering post-quantum key exchange in specific components, and verify each component's settings in your own environment before describing it to an auditor.

Which Debian version do I need for post-quantum key exchange?

Debian 13 "trixie" is the release that ships the post-quantum-relevant versions. Its OpenSSH is 10.0p1 and its OpenSSL is in the 3.5 series, and libssl3t64 was at 3.5.9-1~deb13u1 as of 3 December 2026. Bookworm ships OpenSSH 9.2p1 and OpenSSL 3.0, which do not provide the same default key exchanges. The sntrup761 key exchange has been the default since OpenSSH 9.0, so an older release may offer it, but verify the version you run with ssh -V and check the sshd_config(5) page for your release before relying on it. Confirm the exact package version with your own package manager, since point releases change over time.

Does configuring post-quantum algorithms in Debian cost extra?

The algorithms ship in packages that are already in trixie, so enabling the default post-quantum SSH key exchange does not require a separate license or product purchase. The costs are staff time for review and testing, change control for the affected servers, and any work needed on clients that do not offer the new key exchanges. These effort costs are one-time for the initial change and recur only when you re-test after upgrades. Costs rise with the number of SSH clients, scripts and automation tools that depend on specific key exchanges, and with the need to document the change for audit. Ask any implementation partner for a quote that lists the inventory, testing and change effort separately.

What can break when I enable post-quantum algorithms in Debian?

The main risk is client incompatibility. Older SSH clients that do not offer mlkem768x25519-sha256 or sntrup761x25519-sha512 will fall back to a classical key exchange, and clients that were pinned to a specific key exchange may fail to connect after you change the list. Also check these before the change:

  • DSA keys: OpenSSH 9.8p1 and later in trixie removes DSA support even when configured, so generate Ed25519 keys before upgrading if DSA keys remain.
  • Scripts and automation that parse ssh -Q output or hard-code KexAlgorithms.
  • TLS clients that expect a single key share, because OpenSSL 3.5 sends two key shares by default.

Test against a staging host and keep a rollback path, such as the previous sshd_config.

What should I ask the vendor about post-quantum support in Debian?

Ask Debian, or your support provider, for specific statements rather than general assurances. Useful questions include: which package versions ship post-quantum key exchange, whether ML-DSA or SLH-DSA signatures are supported for SSH host keys or certificates, what the default KexAlgorithms are in your release, whether any post-quantum option is planned for APT repository signatures, and whether Debian has published a roadmap or FIPS or CNSA 2.0 statement. As of the pages reviewed, Debian had published none of these, so record that finding with its date. Ask for written answers you can file with your audit evidence.

Can my team enable post-quantum algorithms in Debian on its own?

Many teams can make the basic SSH change themselves: confirm the package versions, review the default KexAlgorithms in sshd_config(5), test with clients you control, and roll out with a rollback plan. The harder parts are inventory and evidence: finding every SSH client and TLS connection, identifying the classical keys that remain, and documenting the result for auditors. Where a team lacks capacity or has a large estate, a fixed-scope engagement can cover inventory, configuration, testing and documentation. DeployOpen can plan, implement, test and document such changes in your infrastructure, but does not issue audit reports or certifications; independent auditors do that.

How DeployOpen helps plan and test post-quantum settings on Debian

DeployOpen plans and tests post-quantum settings on Debian 13 (trixie) inside your own infrastructure, starting from the OpenSSH and OpenSSL versions your systems actually run. We scope the work in writing, build and test the configuration in a staging environment, and hand over documented settings and evidence your security and compliance teams can review.

How we scope

  • Engagements are fixed-scope, with the systems, packages and services covered agreed in writing before work starts.
  • We confirm the installed OpenSSH and OpenSSL versions on each host, since trixie ships OpenSSH 10.0p1 and OpenSSL 3.5.
  • We identify which services use sshd, libssl and GnuTLS, and which ones your team wants changed.

How we build

  • We compare the effective KexAlgorithms list on each host against the trixie defaults, including mlkem768x25519-sha256.
  • We test client and server pairs, including older clients, to confirm the handshake still completes after any change.
  • We keep host-key and certificate signatures out of scope for post-quantum changes, since trixie defaults offer no post-quantum signature option for them.

How we hand over

  • You receive the tested configuration files, with each setting tied to the exact package version it was checked against.
  • The report lists what was verified, what was not, and what to confirm in your own environment before rollout.
  • We document rollback steps so your operations team can revert any change without re-running the engagement.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
  • Retesting after Debian point releases or OpenSSH upgrades can be included in a retainer, with scope agreed in writing.
  • Ask any quote to state what is one-time work, what recurs, and which systems and versions it covers.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.