Does rustls support post-quantum cryptography?

rustls offers post-quantum key exchange through its aws-lc-rs provider, with hybrid X25519MLKEM768 preferred as of 0.23.48 (3 December 2026). ML-DSA certificates appear for private hierarchies only, and the ring provider has no post-quantum support.

On this page

Does rustls support post-quantum key exchange today?

If an inventory row, questionnaire answer or approval names rustls, the key exchange answer is that rustls supports post-quantum key exchange through its aws-lc-rs provider. In rustls 0.23.48, released on 3 December 2026, the aws-lc-rs provider prefers the hybrid X25519MLKEM768 group regardless of crate features. The prefer-post-quantum feature is documented in that release as obsolete with no effect, so an approval that relies on that flag is relying on a setting that does nothing. For each service, record the rustls version from Cargo.lock, and record which provider the application installs as its process default, because a build on the ring provider offers no post-quantum key exchange. Check the negotiated group in your own environment, since the default order can change between releases. The rustls releases page lists the notes for each version.

Key exchange and certificates are separate questions, and the certificate answer is narrower. The aws-lc-rs provider has enabled ML-DSA certificate support by default since release 0.23.44, dated 7 September 2026. The release notes say ML-DSA certificates are not supported in the public web PKI and can be used only with private certificate hierarchies, so this change does not apply to certificates that chain to a publicly trusted CA. The ring provider has no post-quantum algorithms in either key exchange or signatures. The facts do not state which ML-DSA parameter sets are supported and do not mention SLH-DSA, so confirm the parameter set with the project's documentation before you write one into an inventory. For each rustls service, ask who issues its certificates and whether the chain is private or public.

The facts name no commercial edition of rustls, so this answer covers the open-source crates in the rustls organization. A vendor product that embeds rustls should be asked for its own statement about the version and provider it ships. Standalone MLKEM768 is not enabled by default: the aws-lc-rs default key exchange list includes only the hybrid group with X25519. The rustls defaults manual says MLKEM768 on its own is available separately but may cause unexpected connection failures if enabled. The rustls FIPS documentation does not say whether ML-KEM falls under its FIPS 140-3 certificate, so do not record FIPS coverage for ML-KEM. This is a status snapshot dated 3 December 2026 and will change with later releases.

Which rustls versions offer post-quantum key exchange

This table compares rustls releases, feature flags and providers for post-quantum key exchange and signatures, as of 3 December 2026. The sources name only the open-source rustls crate, so no commercial edition or license is compared. Read each row against its own version and provider: post-quantum key exchange is available through the aws-lc-rs provider, and the ring provider offers none.

Version or componentPost-quantum key exchangePost-quantum signatures or certificatesOn by default or opt-in, and source date
rustls 0.23.48 with aws-lc-rs providerHybrid X25519MLKEM768 preferred, regardless of crate features (release notes)ML-DSA certificate support is enabled by default in this provider from 0.23.44, see next rowOn by default through the aws_lc_rs feature. Release notes dated 3 December 2026
0.23.44 ML-DSA certificate supportNot stated in the release noteML-DSA certificates enabled by default in aws-lc-rs; not supported in public web PKI; private hierarchies only. Parameter sets not namedOn by default in aws-lc-rs. Release dated 7 September 2026
rustls-ring provider in 0.23.48None; ring does not support post-quantum algorithmsNone; ring does not support post-quantum algorithmsOpt-in through the ring feature. default_provider() deprecated in 3 December 2026 release notes
prefer-post-quantum crate featureNo effect in 0.23.48; previously set key exchange group priority with aws-lc-rsNot stated in the crate docsObsolete. Documented as having no effect in the 0.23.48 crate docs
0.23.2 roadmap entryExperimental X25519Kyber768Draft00, a different group name from X25519MLKEM768Not stated in the roadmap entryListed as delivered in 0.23.2 on the roadmap page, which gives no date
FIPS build on aws-lc-rs module, certificate #4816ML-KEM coverage not stated; the FIPS manual does not mention ML-KEMNot stated in the FIPS manualOpt-in through the fips feature and default_fips_provider(). Confirm current certificate status with the module's validation record

Which post-quantum algorithms rustls offers and where they apply

rustls is a library, so the interface here is the TLS connections your application opens or accepts. Key exchange and certificate authentication are separate: the key exchange groups below protect session keys, while ML-DSA concerns certificates and signatures. Check the provider, the version and the group order your build actually negotiates.

Hybrid X25519MLKEM768 key exchange

This is the hybrid key exchange group in the aws-lc-rs provider, pairing the classical X25519 exchange with ML-KEM-768. The 0.23.48 release notes of 3 December 2026 say this group is preferred regardless of crate features, so it can be negotiated whenever the peer also offers it. Confirm that your build uses rustls-aws-lc-rs and that the negotiated group is X25519MLKEM768 in a test handshake. This covers key exchange only. Certificates and signatures are covered on a separate card.

rustls release notes

Hybrid SECP256R1MLKEM768 key exchange

This hybrid group pairs the P-256 exchange (SECP256R1) with ML-KEM-768. It is listed in the kx_group module of the aws-lc-rs provider, so an application can select it by name. Default status needs confirmation, so check the default group list for your version before assuming a peer will be offered this group. Test it separately from X25519MLKEM768, since each group is a separate entry you select or inherit.

kx_group module docs

Pure MLKEM768 and MLKEM1024

These are standalone ML-KEM key exchange groups, with no classical exchange paired in. The aws-lc-rs kx_group module lists both. MLKEM768 is absent from the default list and is not enabled by default out of conservatism. Users may see unexpected connection failures when it is enabled, so test each peer before enabling either group in production and record which connections fail. Confirm the default status of MLKEM1024 in the same default list before relying on it.

rustls defaults manual

ML-DSA certificates in private hierarchies

Release 0.23.44, dated 7 September 2026, enabled ML-DSA certificate support by default in the aws-lc-rs provider. The release notes say ML-DSA certificates are not supported in the public web PKI, so they apply only to private certificate hierarchies that you run and trust. Which ML-DSA parameter sets are supported is not confirmed here, so confirm the parameter set with the project and in your own test chain before you issue certificates. SLH-DSA is not part of this card, so confirm its status separately if you need it.

0.23.44 release notes

Classical groups still in use

X25519, SECP256R1 and SECP384R1 remain the classical key exchange groups in rustls, used for forward-secret ECDHE in both TLS 1.3 and TLS 1.2. In the 0.23.48 release, P-384 is preferred over X25519 and P-256 in the default order for both the aws-lc-rs and ring providers. Record which group each connection negotiates, because the classical groups are the ones in use wherever a peer does not offer a hybrid group. These exchanges are not post-quantum, so they belong in your inventory as classical key exchange.

rustls features manual

What rustls post-quantum support depends on

Post-quantum support in rustls depends on which crypto provider is compiled in. In the rustls 0.23.48 crate, the aws_lc_rs feature is enabled by default, so a default build uses the aws-lc-rs provider. The project names rustls-aws-lc-rs as its recommended first-party provider and says it offers post-quantum algorithms. The ring feature is optional, and the project states that rustls-ring does not support post-quantum algorithms, so a build that selects ring offers no post-quantum key exchange. Confirm in your Cargo.toml and resolved dependency tree that aws-lc-rs is the provider in use and that ring is not selected. The rustls crate docs list the feature flags for each release.

The custom-provider feature changes how the provider is chosen. It turns off implicit use of the built-in providers, so the application must install a provider itself. Call install_default() on the CryptoProvider once per process, early in startup, before any TLS configuration or connection is built. The call can succeed at most once per process, so a second call from a library, a test harness or a plugin will not succeed. The code that makes the call should check the result and log it. Treat an unexpected or missing provider as a finding in your review, because the provider determines which key exchange groups and signature schemes the process can offer.

Current rustls documentation does not state an operating system, hardware, firmware or license tier requirement for post-quantum support, so confirm the Rust toolchain version and target platforms against the release you deploy. If a distribution, appliance or product embeds rustls, ask its vendor which rustls version it ships, which crypto provider it selects, and whether that provider is aws-lc-rs or ring. For a FIPS-approved build, the rustls FIPS manual describes the fips crate feature and installing default_fips_provider() as the process default. That manual does not mention ML-KEM, so ask the project or vendor in writing whether the FIPS provider includes the post-quantum groups you need.

How to turn on rustls post-quantum key exchange

This sequence turns on hybrid post-quantum key exchange in rustls built with the aws-lc-rs provider, then confirms it on a live connection. It covers key exchange only, so certificate steps for ML-DSA are handled separately. Run it in a test environment against each peer before any production change.

  1. Pin the rustls release

    Set the rustls dependency to 0.23.48, the latest release listed as of 3 December 2026, or to the release your tests cover. Use the same version in every service that terminates or initiates TLS with rustls, and record it in the lockfile. Done when Cargo.lock lists the rustls version your test suite ran against, and that same version is the one that goes to production.

  2. Confirm the aws-lc-rs provider is built in

    Check that the build uses the aws-lc-rs provider. Its default feature is on, so the aws_lc_rs feature is active unless the build turns default features off. If the custom-provider feature is set, it turns off the built-in providers, so the application must install one. Call install_default() once at startup, because it can succeed at most once per process. Do not select the ring provider for post-quantum groups, since ring does not support post-quantum algorithms. Done when a startup test shows the provider installed and the build resolves aws-lc-rs.

  3. Check the default key exchange order

    In rustls 0.23.48, the aws-lc-rs provider prefers the hybrid X25519MLKEM768 group in its default order, regardless of crate features enabled. Standalone MLKEM768 is not included in the default list and is offered only in hybrid with X25519 by default. If you need a different key exchange order, the release notes direct you to a custom CryptoProvider. Do not rely on the obsolete prefer-post-quantum feature, which has no effect in 0.23.48. Done when code review or a test confirms the group order the application uses.

  4. Confirm ML-DSA certificate use with PKI

    Confirm whether any certificate in scope is an ML-DSA certificate. Since 0.23.44 (7 September 2026), the aws-lc-rs provider enables ML-DSA certificate support by default. The release notes say ML-DSA certificates are not supported in the public web PKI and can be used with private certificate hierarchies. rustls does not document an issuing setting for these certificates, so ask the PKI owner how they are issued for your private hierarchy and which ML-DSA parameter sets the issuing CA uses. Done when the PKI owner records the issuing process and your chain tests pass.

  5. Confirm the negotiated group on live connections

    Open a connection from your own test client or review TLS logging on the server, and record which key exchange group was negotiated. Where both sides offer it, the expected group under the default order is X25519MLKEM768. rustls does not document a specific command for this, so use the handshake inspection tool your team already trusts. The rustls defaults manual warns that unexpected connection failures can occur, so test each peer you connect to before rollout. Done when every peer's test record shows the group you expected.

The crypto provider decides which key exchange rustls negotiates

Start with the crypto provider in the build, because it sets the key exchange groups. The default aws_lc_rs provider in rustls 0.23.48 prefers the hybrid X25519MLKEM768 group regardless of crate features. A custom CryptoProvider uses the group order the application sets, and only one provider can be installed per process with install_default(). The ring provider offers no post-quantum key exchange. The certificate branch is separate: ML-DSA certificates are supported only in private certificate hierarchies. Public web PKI certificates use ECDSA or RSA, because Ed25519 is not supported by the WebPKI for publicly trusted certificates. Check which provider your build installs and which certificate type your server presents.

Provider choice sets key exchange; certificate type is a separate branch.

What changes when rustls post-quantum groups are on

Version 0.23.48, published on 3 December 2026, changes the default key exchange order. According to the rustls Releases notes, P-384 is now preferred over X25519 and P-256 in the default order for both the aws-lc-rs and ring providers, and the aws-lc-rs provider prefers the hybrid X25519MLKEM768 group regardless of crate features. A deployment that upgrades without changing its configuration can therefore negotiate a different group after the library is updated. Check which rustls version each service actually ships in its lockfile or build output, because a rebuild with a newer dependency tree can change negotiated groups without any code edit in your application.

The rustls defaults manual warns that users may see unexpected connection failures when post-quantum groups are in play. Standalone MLKEM768 is available with the aws-lc-rs provider but is not enabled by default, so it is offered only if your provider configuration adds it. Treat that setting as a change that needs testing before it reaches production listeners. If a build relied on the prefer-post-quantum crate feature to order groups, note that 0.23.48 documents it as obsolete with no effect. Changing the order now means installing a custom CryptoProvider, which is a code change that needs its own review and test cycle.

The rustls documentation and release notes do not publish handshake size figures or middlebox test results for these groups, so they cannot tell you how a given load balancer, reverse proxy or TLS inspection device handles the key exchange messages that hybrid groups add. Test with every peer on the path, including the systems your services call, your load balancers and any inspection devices, and confirm the group negotiated in each direction. Then record the negotiated key exchange group in your connection logs for a period after each upgrade, so a change in group appears as evidence during review rather than as a surprise during an incident.

What rustls post-quantum support does not cover yet

The items below are open gaps in rustls post-quantum support as of 3 December 2026, drawn from the release notes, manuals and roadmap checked. Some are unstated in those pages rather than confirmed absent, so confirm them with the project before you record an answer. Each card names what to check in your own build and configuration.

ML-DSA in the public web PKI

The 0.23.44 release, dated 7 September 2026, enabled ML-DSA certificate support by default in the aws-lc-rs provider. The same notes say ML-DSA certificates are not supported in the public web PKI, although they can be used with private certificate hierarchies. For a public-facing server, check which issuer and certificate chain your clients trust, because the notes do not extend ML-DSA support to that path. Confirm the status in the notes for the exact version you run.

Release 0.23.44 notes

ML-DSA parameter sets and SLH-DSA

The pages checked do not state which ML-DSA parameter sets, such as ML-DSA-87, rustls supports, so that detail is not stated. They also do not mention SLH-DSA at all. Ask the project which parameter sets the aws-lc-rs provider accepts in certificates and whether SLH-DSA is planned. Then test your own certificate profile against the version you deploy. Do not assume a parameter set is available because ML-DSA appears in the release notes.

Features manual

ML-KEM and FIPS certificate #4816

The rustls FIPS manual says the aws-lc-rs module it uses is covered by FIPS 140-3 certificate #4816. The manual does not mention ML-KEM, so it does not say whether that certificate covers ML-KEM key exchange. It also does not claim that rustls itself is certified. Ask the project whether ML-KEM groups fall within the validated scope of that module, and record the certificate number together with the aws-lc-rs version in your inventory. Later aws-lc-rs releases may fall under later certificates or be pending certification.

FIPS manual

The ring provider

The rustls repository says the rustls-ring provider does not support post-quantum algorithms. The 0.23.48 release, dated 3 December 2026, deprecates rustls::crypto::ring::default_provider() for that reason, so a ring-backed build offers no post-quantum key exchange. If your application selects ring, either move to the aws-lc-rs provider or accept classical key exchange only. Check your Cargo feature set and the provider your application installs at startup, since the two determine which provider runs.

Ring provider docs

CNSA 2.0 is not mentioned

The rustls pages checked do not mention CNSA 2.0, the NSA suite that applies to national security systems. That guidance is not binding on commercial organizations. A commercial organization may use it as a reference, and may meet parts of it only where a contract with a federal customer requires them. Ask the project whether it has published a CNSA 2.0 position. Keep your own mapping of the algorithms and key exchange groups your deployment uses against whatever reference your contract names.

Roadmap and management interfaces

The rustls roadmap lists experimental X25519Kyber768Draft00 support in 0.23.2 and FIPS certification of the default library in 0.23. It names no ML-KEM or ML-DSA work, so do not read it as a commitment. Separately, the admin consoles and APIs that an application exposes depend on how that application configures rustls. Check each application's TLS settings and its management interface, not only the library version.

Roadmap page

What to do next with rustls post-quantum support

The five steps below sort rustls deployments by build and situation, from the aws-lc-rs provider on release 0.23.48 to customer questionnaires and federal contracts. Each step ends with a record you can file, so the answer to the support question stays tied to a version, provider and date.

  1. Test and record the negotiated group

    If you run release 0.23.48 with the aws-lc-rs provider, start here. Open a test connection from a client built on the same provider to a server you control, and record the group the handshake negotiates. The 0.23.48 notes say aws-lc-rs prefers X25519MLKEM768 regardless of crate features, so check whether that is the group you see. Keep the authentication inventory as ECDSA or RSA for publicly trusted certificates, because the features manual says Ed25519 is not supported by the WebPKI for those certificates. The step is done when the negotiated group, release, provider and test date are in the inventory.

  2. Plan a provider change for ring builds

    If your build uses rustls-ring or the ring feature, this is your path. The rustls-ring provider does not support post-quantum algorithms, so a ring-backed setup offers no post-quantum key exchange, and the 0.23.48 notes deprecate rustls::crypto::ring::default_provider() for that reason. The facts available to this page give no timeline for ring support, so do not plan around one. Ask the build owner to list every place the provider is set, then decide whether to move to the aws-lc-rs provider. The step is done when the decision, the owner and the affected services are recorded in the inventory.

  3. Ask which release added the hybrid group

    If you run an older release, the rustls pages checked do not say which version first offered a hybrid post-quantum group in a stable build. The project's roadmap names only experimental X25519Kyber768Draft00 support, delivered in 0.23.2, so do not treat that as the first stable release. Ask the rustls project, or the distribution that packages your copy, which release first offered X25519MLKEM768. Record the answer with the release number, the date you asked and the name of the person who answered. The step is done when that written answer is in the file.

  4. Answer a customer questionnaire with dated facts

    Use this step when a customer's security questionnaire asks about post-quantum support. For key exchange, answer yes for the aws-lc-rs provider in rustls 0.23.48, dated 3 December 2026, and state that the group is negotiated only if the peer also offers it. For signatures and certificates, answer no for the public web PKI as of 3 December 2026. The 0.23.44 notes say ML-DSA certificates are not supported in the public web PKI, though they can be used with private certificate hierarchies. Keep the answer limited to that provider and version, and file it with its date. The step is done when the answer and its date are in the questionnaire file.

  5. Ask which CNSA 2.0 requirements apply

    Use this step when a federal contract cites CNSA 2.0. The rustls pages checked do not address CNSA 2.0, so they cannot show whether rustls meets it. Ask the customer in writing which requirements apply to your system and which algorithms and parameter sets they expect. The rustls FIPS manual says the aws-lc-rs module is covered by FIPS 140-3 certificate #4816, does not claim that rustls itself is certified, and does not say whether ML-KEM is covered. Record the customer's reply and the statement that the rustls pages checked do not address CNSA 2.0. The step is done when both are in the contract file.

Common questions about rustls post-quantum readiness

Is rustls quantum safe, and what does that cover today?

rustls supports post-quantum key exchange through its aws-lc-rs provider, and from release 0.23.48 that provider prefers the hybrid X25519MLKEM768 group. The rustls-ring provider does not support post-quantum algorithms, so a ring-backed build offers no post-quantum key exchange. This answer covers key exchange in the library only. It does not cover certificates, signatures or login methods, and it says nothing about the peers your connections reach or the other components in your deployment. Standalone MLKEM768 is available but not enabled by default, and the rustls defaults manual says users may see unexpected connection failures. Record any post-quantum statement with the rustls version and provider it applies to.

Which rustls version do I need for post-quantum support?

Use rustls 0.23.48, released on 3 December 2026, for the current post-quantum key exchange behavior with the aws-lc-rs provider. Use 0.23.44 or later for ML-DSA certificates. Release 0.23.44, dated 7 September 2026, enabled them by default in aws-lc-rs, and its notes say they are not supported in the public web PKI but can be used in private certificate hierarchies. The rustls-ring provider does not support post-quantum algorithms, so a ring-based build must move to aws-lc-rs before it can offer them. Check the feature flags as well: aws_lc_rs is on by default, ring is optional, and the prefer-post-quantum feature is obsolete with no effect in 0.23.48. Release notes are on the rustls releases page.

Does moving rustls to post-quantum key exchange cost extra?

rustls is open source, so the cost sits in engineering, testing and vendor work. Your engineers pay for the version change in each service that calls rustls, for provider and feature settings, and for interoperability tests against every peer those services reach. If a product you buy embeds rustls, the vendor should carry the upgrade, and your cost is the retest and the support terms. One-time work covers the inventory, the first change and the test plan. Recurring work follows each rustls release, because defaults such as the group order can change. Costs rise with the number of services, peers and custom providers, and fall when one provider and version run across the estate. Ask for a quote against a written scope that lists services, peers and test cases, since DeployOpen does not publish a price list and its quotes follow from that scope.

What breaks when post-quantum key exchange is turned on in rustls?

Two changes need testing before you upgrade to rustls 0.23.48 or later. First, a peer that cannot complete the X25519MLKEM768 handshake can see unexpected connection failures, as the rustls defaults manual warns. Second, 0.23.48 moves P-384 ahead of X25519 and P-256 in the default group order for both the aws-lc-rs and ring providers, so a peer that expects a different first choice may negotiate differently. Test each connection path your services use, including older clients, load balancers and internal services, and confirm which peers are affected. Also check code that calls rustls::crypto::ring::default_provider() or sets the prefer-post-quantum feature, since 0.23.48 deprecates the first and makes the second obsolete. Keep a tested rollback to the previous version ready.

What should I ask my rustls vendor or distributor about post-quantum?

Ask which rustls version and which provider the product ships, specifically whether it uses rustls-aws-lc-rs or rustls-ring. A product on the ring provider has no post-quantum key exchange from rustls, and a product on an older release does not carry the 0.23.48 changes. Ask whether the build enables the aws_lc_rs feature, and whether the vendor installs its provider at startup with install_default(), since a process can set that default only once. For certificates, ask which ML-DSA parameter sets are supported. Current rustls documentation does not name them and does not mention SLH-DSA, so get that answer in writing with the version it covers. Also ask for the date of the vendor's statement and the peer test results behind it.

Can my team migrate rustls post-quantum support without outside help?

Yes, for a single service with its own test suite, a team that already runs rustls can make the version change, set the provider and run its own peer tests. Get outside help when the scope spans many services, several rustls builds, custom providers or peers the team does not control, because interoperability tests and retests multiply with each one. Outside help is also useful when you need evidence for an assessment. DeployOpen plans, implements and tests self-hosted open-source platforms inside your own infrastructure, runs security testing of applications and APIs, and prepares evidence for compliance assessments. It does not issue audit reports or attestations. Work is fixed-scope and agreed in writing before it starts, so ask for a quote against a written list of services, peers and test cases.

How DeployOpen helps teams confirm and enable rustls post-quantum support

DeployOpen works on whether rustls supports post-quantum cryptography in your build by checking the version, crypto provider and key exchange groups that apply to your deployment. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The result is a written record your engineers and reviewers can check against the rustls documentation.

How we scope

  • The written scope names the rustls version, the crypto provider and the applications that embed rustls.
  • Scope records which provider each deployment uses, because rustls-ring does not support post-quantum algorithms.
  • Ongoing support, upgrades and continuous testing can be added later as a retainer.

How we build

  • Build work records the rustls release in use, checked against 0.23.48, the latest listed as of 3 December 2026.
  • Test the aws-lc-rs provider's key exchange order, including X25519MLKEM768 and whether standalone MLKEM768 is offered.
  • Test ML-DSA certificate use separately, because 0.23.44 notes say the public web PKI does not support it.

How we hand over

  • Handover includes a written record of the provider, groups and certificate types tested, with the version and date.
  • Documentation flags any ring-backed setup, which offers no post-quantum key exchange and uses a deprecated default in 0.23.48.
  • Handover notes that the FIPS manual cites certificate #4816 for aws-lc-rs and does not mention ML-KEM.

How we support

  • Ongoing support can cover upgrades when rustls or its providers change post-quantum defaults in later releases.
  • Retainers can cover continuous testing, so provider changes are retested after each rustls release.
  • Ask for the written scope and tested settings in any quote, so the record matches the production rustls build.

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.