Does Rust support post-quantum cryptography?

Rustls with the aws-lc-rs provider prefers hybrid X25519MLKEM768 key exchange in 0.23.48. ML-DSA certificate support appears in 0.23.44, which states it is not supported in the public web PKI. The openssl crate docs fetched 2026-12-03 do not mention post-quantum cryptography.

On this page

Does Rust support post-quantum cryptography? Yes for key exchange in rustls, not yet for public web certificates

If an inventory, questionnaire or approval asks whether Rust supports post-quantum cryptography, first confirm which component the question means, because Rust has no single built-in cryptography stack. This answer covers rustls with the aws-lc-rs provider and the related crates. For key exchange, rustls 0.23.48, listed on the releases page as 03 Dec, states that the aws-lc-rs provider now prefers the hybrid X25519MLKEM768 key exchange. For signatures and certificates, rustls 0.23.44, listed as 07 Sep, enabled ML-DSA certificate support by default in the aws-lc-rs provider, and the same release states that ML-DSA certificates are not supported in the public web PKI. The releases page shows these dates without a year, so confirm the year on that page before you record either answer.

Record the two answers separately because they rest on different decisions. X25519MLKEM768 is a key exchange, and it depends on the provider: the rustls defaults page describes it as available with the aws-lc-rs provider, and the ring provider does not support post-quantum algorithms. Standalone MLKEM768 is available but is not enabled by default. The same defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks that they be reported. The ML-DSA work in 0.23.44 concerns signatures and certificates. The rustls-post-quantum 0.2.4 crate offers three ML-DSA variants only behind its aws-lc-rs-unstable feature, and its docs describe them as experimental, so keep that crate out of any production certificate path.

Before you record a status, check three things in your own build. Run cargo tree on each service to confirm the rustls version and the provider it resolves to, since the aws-lc-rs provider is enabled by default and ring is available only through the optional ring feature. Confirm where the provider is installed, either through CryptoProvider::install_default() or by passing one to builder_with_provider(), because the rustls README says that from version 0.24 users must supply a crypto provider explicitly. Then test a handshake against a peer you control and log any connection failures, which the defaults page asks you to report. For the RustCrypto ml-kem, ml-dsa and slh-dsa crates, the READMEs state that none has been independently audited and that they are used at your own risk, so record them as unaudited components and keep them out of your TLS path.

Rust post-quantum support by component and version

This table compares the Rust components on this page for post-quantum key exchange, signatures and certificates, whether each is on by default, and the source and date behind each entry. Read each row against its exact version and provider, because rustls results depend on the aws-lc-rs provider and the ring provider has no post-quantum support. Where a source is silent, the cell says not stated, so confirm that point in the component's own documentation before recording it.

Component and versionPost-quantum key exchangePost-quantum signatures or certificatesOn by default or opt-in, source and date
rustls 0.23.48 with aws-lc-rsHybrid X25519MLKEM768 is the first preference for aws-lc-rs. Standalone MLKEM768 is available but not enabled by default.Not stated in the 0.23.48 release notes. ML-DSA certificate support is covered in the 0.23.44 row.On by default for key exchange. rustls releases page, 03 Dec (year not shown).
rustls 0.23.44 with aws-lc-rsNot stated for this release.ML-DSA certificate support enabled by default in the aws-lc-rs provider. Not supported in the public web PKI.On by default for ML-DSA certificates. rustls releases page, 07 Sep (year not shown).
rustls-post-quantum 0.2.4MLKEM768 and X25519MLKEM768 statics on the aws-lc-rs provider. ML-KEM exchanges moved into rustls itself before 0.23.22.Three experimental ML-DSA signature variants behind the aws-lc-rs-unstable feature.Opt-in through the separate crate. rustls-post-quantum docs, date not stated.
rustls with the ring providerNot supported. rustls-ring does not support post-quantum algorithms.Not supported, for the same reason.Opt-in only, through the optional ring feature. default_provider() is deprecated as of 0.23.48. rustls releases page, 03 Dec (year not shown).
openssl crate 0.10.82Not stated. The crate documentation does not mention post-quantum cryptography.Not stated.Not stated. Crate documentation fetched 2026-12-03. Check the linked OpenSSL build for its own support.
RustCrypto ml-kem, ml-dsa and slh-dsa cratesml-kem (docs show 0.3.4) implements FIPS 203 with ML-KEM-512, ML-KEM-768 and ML-KEM-1024. Use in TLS is not stated.ml-dsa implements FIPS 204 (ML-DSA-44, -65, -87). slh-dsa implements FIPS 205. Versions not stated.Opt-in library crates. READMEs state they have never been independently audited. Source: RustCrypto READMEs, date not stated.

Which post-quantum algorithms Rust offers and where each applies

The cards below cover the post-quantum algorithms the Rust ecosystem crates offer, grouped by where each applies: TLS key exchange, certificates or a library API. Rustls offers them through the aws-lc-rs provider, while the RustCrypto crates are separate pure Rust libraries with their own APIs. Check the crate version and feature you run before you record a status for any item.

Hybrid X25519MLKEM768 key exchange

X25519MLKEM768 is the first key exchange preference in rustls 0.23.48 when the aws-lc-rs provider is in use. It applies only to the aws-lc-rs provider, since ring does not support post-quantum algorithms, and does not change certificates or signatures. The first entry in the provider's kx_groups is the group a TLS 1.3 client sends a key share for, so check the provider order in your build. Also confirm that the peer offers the group, and report any unexpected connection failures, which the rustls defaults page asks users to do.

Rustls releases

Standalone MLKEM768 key exchange

Rustls makes standalone MLKEM768 available as a separate key exchange, but it is not enabled by default. The rustls defaults page describes this as a conservative choice. A provider offers only the groups in its kx_groups list, so confirm how your rustls version includes MLKEM768. Peers must also offer the group, so test the connection before recording it as in use.

Rustls defaults page

ML-DSA certificates in rustls

Rustls 0.23.44 enabled ML-DSA certificate support by default in the aws-lc-rs provider. It is a certificate and signature interface, separate from the key exchange above. The release notes state that ML-DSA certificates are not supported in the public web PKI, so this support does not cover public websites. For private deployments, confirm which issuer produces the certificate, that every verifying peer accepts ML-DSA, and which trust store your clients use.

Rustls releases

Experimental ML-DSA signature variants

The rustls-post-quantum crate at version 0.2.4 offers three experimental ML-DSA signature variants behind its aws-lc-rs-unstable feature. Its docs describe ML-DSA signatures only as experimental and unstable, so treat these variants as a library API choice, separate from rustls certificate settings. The crate's ML-KEM exchanges moved into rustls itself before rustls 0.23.22. Check the feature list before each upgrade, because an unstable interface can change between releases.

rustls-post-quantum docs

RustCrypto ML-KEM crate

The RustCrypto ml-kem crate, shown at version 0.3.4 in its docs, is a pure Rust implementation of FIPS 203 with the ML-KEM-512, ML-KEM-768 and ML-KEM-1024 parameter sets. It is a library API that your own code calls, separate from rustls connections. No features are enabled by default, so check the feature flags your build uses. The README states that the implementation has never been independently audited and says to use it at your own risk, so record it as unaudited in any vendor-risk file.

ml-kem crate docs

RustCrypto ML-DSA and SLH-DSA crates

The RustCrypto ml-dsa crate implements FIPS 204 with the ML-DSA-44, ML-DSA-65 and ML-DSA-87 parameter sets. The slh-dsa crate implements SLH-DSA from FIPS 205. Both are library APIs for signing and verification, separate from TLS and certificate settings. Their READMEs state that neither has been independently audited. Read the slh-dsa documentation for its parameter set names in your version before you record one.

ml-dsa README

How a rustls TLS 1.3 connection carries the key exchange and the certificate

This diagram follows one TLS 1.3 handshake between a rustls client and a rustls server. With the aws-lc-rs provider, the first kx_groups entry is X25519MLKEM768, so the client sends a hybrid key share for that group in its ClientHello. The server's reply is its own key share. The certificate and handshake signature that identify the server stay ECDSA, Ed25519 or RSA. The sources do not state how the server chooses among the groups it is offered, so confirm that behavior in the rustls documentation for your version. Read the two lanes separately when you record an answer.

Key exchange and certificate travel in separate lanes of one TLS 1.3 handshake.

What Rust post-quantum support depends on: provider, feature flags and the underlying library

For rustls, the Rust TLS library, post-quantum support depends on three things you can check: the rustls version, the crypto provider the process runs, and the feature flags that choose that provider. Rustls 0.23.48, dated 03 Dec on the rustls releases page, prefers the hybrid X25519MLKEM768 key exchange in the aws-lc-rs provider regardless of crate features. Other versions may behave differently, so record the exact version from your Cargo.lock. The aws_lc_rs feature is on by default. The ring provider is available only through the optional ring feature, and rustls deprecated rustls::crypto::ring::default_provider() in 0.23.48 because ring does not support post-quantum algorients. Setting the custom-provider feature turns off implicit use of the built-in providers, so the application must supply its own.

One provider runs per process. Call CryptoProvider::install_default() once to set the implicit default, or pass a provider explicitly with builder_with_provider() on the config or verifier builders. The rustls CryptoProvider documentation describes both paths. The rustls README says that from version 0.24, applications must supply a provider explicitly, so check now whether each service relies on the default. Feature resolution can change the result: a dependency that enables ring can change which provider a binary uses, so inspect resolved features per binary. The AWS-LC version that aws-lc-rs bundles is not stated here, so confirm it against the aws-lc-rs release you pin. For FIPS, the fips feature of aws-lc-rs 1.19.0 binds to AWS-LC-FIPS 4.x. The rustls FIPS guide covers its FIPS use under certificate #4816 and notes that later releases may fall under later certificates or be pending. Post-quantum coverage under FIPS is not stated in those documents, so confirm it with the vendor before relying on it.

The openssl crate is a separate path with its own dependency. Version 0.10.82 binds to OpenSSL 1.0.2 through 4.x.x and to LibreSSL 3.5 through 4.4.x, and its vendored feature compiles and statically links a copy of OpenSSL through the openssl-src crate. The openssl crate documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography. The crate's post-quantum status is therefore that of the OpenSSL or LibreSSL build the binary links, and this page does not identify which build that is. Check the linked library and its version with your platform tools, and for a vendored build, check the openssl-src version in your lockfile. The operating system, hardware and license tier are not addressed in the documentation this page relies on, so confirm each one for your build before you record an answer.

How to turn on X25519MLKEM768 in a rustls application

This sequence turns on hybrid X25519MLKEM768 key exchange in a rustls application that uses the aws-lc-rs provider. It covers key exchange only, so certificates and signatures keep their existing algorithms, and the final checks confirm which group is negotiated. Run it in a test environment first, because the rustls defaults page reports unexpected connection failures for some users.

  1. Confirm the rustls version in use

    Open the rustls entry in Cargo.lock for the application and record the version the build resolves. Version 0.23.48 is the release whose notes state that the aws-lc-rs provider now prefers X25519MLKEM768 key exchange regardless of crate features, so the lockfile should show 0.23.48. If it shows an older release, update the dependency, rebuild, and read the notes for any later version to confirm it keeps this behavior. Done when the version is recorded in your change record and the rebuilt application starts. The release notes are on the rustls releases page.

  2. Keep the aws-lc-rs provider enabled

    In Cargo.toml, confirm that the rustls dependency still uses its default features, or that the aws_lc_rs feature is listed, so the aws-lc-rs provider is built in. From version 0.24, the rustls README says users must supply a crypto provider explicitly, so plan to add the rustls-aws-lc-rs crate and pass it in code at that point. The prefer-post-quantum feature still compiles for compatibility, but in 0.23.48 it only enables aws_lc_rs. Done when Cargo.toml and Cargo.lock show the aws-lc-rs provider as the provider the build uses.

  3. Remove any ring provider

    Search Cargo.toml for the ring feature, then search your application code for rustls::crypto::ring::default_provider(). The rustls README names rustls-ring as a provider that does not support post-quantum algorithms, and the 0.23.48 release notes deprecate that default_provider() call for the same reason. Remove the ring feature and switch any code that builds a provider from ring to the aws-lc-rs provider. Other crates in your dependency tree may still use ring for their own purposes, but this step concerns the provider rustls uses. Done when both searches return no matches in your own code and the build succeeds.

  4. Install the provider at process start

    At process start, before any TLS configuration is built, call CryptoProvider::install_default() with the aws-lc-rs provider. A rustls process has at most one implicit default provider, so this call sets the choice once for the whole process. If you prefer to keep the choice local to one component, pass the provider with builder_with_provider() on each config or verifier builder instead. Done when the application starts and its TLS configurations build without a provider error.

  5. Confirm the negotiated group in a test

    The sources do not name a specific command or API that shows the negotiated group, so do not assume X25519MLKEM768 is active until you have seen it. Confirm it with a test client connecting to the rebuilt server, or with the TLS logging your application already has, and check the method against the rustls CryptoProvider documentation for your version. In the TLS 1.3 ClientHello, rustls sends a key share for the first kx_groups entry of the provider, so that entry is the group to expect first. Done when your test output or log names X25519MLKEM768 for a handshake from the rebuilt application.

  6. Watch for unexpected connection failures

    The rustls defaults page warns that some users see unexpected connection failures with X25519MLKEM768 and asks that these be reported. Before rollout, run the application against each peer it talks to, including older clients and any load balancers or proxies in front of it, and record each handshake result. If a peer fails, record the failure, report it to the rustls project as the defaults page asks, and agree the next step with the owner of that peer. Done when every peer on your list completes a handshake in testing, or each failure is recorded with its report.

What changes when X25519MLKEM768 is on: connection failures and testing

Upgrading to rustls 0.23.48 changes the key exchange that Rust services offer by default. The rustls releases list, dated 03 Dec, states that the aws-lc-rs provider now prefers X25519MLKEM768 regardless of crate features, and that X25519MLKEM768 remains the first preference for that provider. The rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks for those failures to be reported. In practice, a handshake that worked before a dependency update can fail after it, with no change to your application code. Run cargo tree -i rustls in each service to confirm the resolved version, and treat any move to 0.23.48 or later as a change that needs its own connection tests.

The rustls documentation does not describe how load balancers, reverse proxies, TLS inspection devices or firewalls handle the handshake change that comes with X25519MLKEM768, so do not assume they pass it through unchanged. Before rollout, test every component on the path: the client, each proxy or load balancer that terminates or re-originates TLS, any inspection device, and the server. Test with the same rustls and aws-lc-rs versions you plan to deploy, and record which key exchange group each connection negotiates. The first entry of the provider's kx_groups list is the group the client sends a key share for, so confirm in your build which group a test client actually offers before you rely on its results.

Confirm logging and monitoring before rollout. Count TLS handshake failures per listener and per upstream for each service and each proxy, and keep a baseline from before the change so the comparison means something. Check whether each component logs the failing handshake and its reason, where those logs go and how long they are kept. The rustls documentation does not give error strings or log formats for these failures, so ask each vendor and internal team to confirm them. When you hit an unexpected failure, report it to the rustls project as the defaults page asks, with the rustls and provider versions, the peer software and the hop where the failure appeared. Agree in advance who decides on rollback.

What Rust post-quantum support does not cover yet

The sources reviewed on 2026-12-03 record several gaps in Rust's post-quantum support, and some items have no published position at all. Where a gap is recorded, the card says so. Where the sources are silent, the card says that instead, so you can ask the vendor or project for a written answer before you record one.

ML-DSA certificates and experimental variants

ML-DSA certificates are not supported in the public web PKI. Rustls 0.23.44 enabled ML-DSA certificate support by default in its aws-lc-rs provider, and its release notes state that such certificates are not supported in the public web PKI. The rustls-post-quantum crate adds three ML-DSA signature variants behind its aws-lc-rs-unstable feature, which its docs describe as experimental and unstable. Before any rollout, check whether your certificate chain and client trust stores can accept ML-DSA certificates, and which crate version and feature set your build uses.

rustls-post-quantum docs

Standalone MLKEM768 is off by default

Standalone MLKEM768 is available separately, and the rustls defaults page says it is not enabled by default, out of conservatism. The default post-quantum key exchange is the hybrid X25519MLKEM768, which that page says is available with the aws-lc-rs provider. Hybrid and standalone are separate choices for the key share a client or server sends, so confirm which group your deployment actually negotiates. The defaults page also warns that some users see unexpected connection failures with X25519MLKEM768 and asks for those to be reported.

Rustls defaults page

Ring provider and openssl crate

The rustls-ring provider does not support post-quantum algorithms, and rustls deprecates its default_provider() in release 0.23.48 for that reason. The openssl crate at version 0.10.82 binds to OpenSSL 1.0.2 through 4.x.x, but its documentation, as fetched on 2026-12-03, does not mention post-quantum cryptography at all. Its vendored feature statically links a copy of OpenSSL, so the OpenSSL version you ship decides what is available. Ask the project or the OpenSSL release notes for a written position before you assume either way.

openssl crate docs

FIPS-validated post-quantum use

The rustls FIPS guide ties FIPS use to FIPS 140-3 certificate #4816 and notes that later aws-lc-rs releases may be covered by later certificates or be pending certification. The aws-lc-rs 1.19.0 docs say its fips feature binds to AWS-LC-FIPS 4.x. The sources do not tie that certificate to ML-KEM, ML-DSA or X25519MLKEM768, so they cannot be read as FIPS-validated post-quantum key exchange or signing. Ask for the certificate's scope and module version, and confirm whether the post-quantum algorithms sit inside the validated boundary.

Rustls FIPS guide

No independent audit of RustCrypto crates

The READMEs for the RustCrypto ml-kem, ml-dsa and slh-dsa crates each state that the implementation has never been independently audited. The ml-kem README tells users to use it at their own risk. These crates implement FIPS 203, FIPS 204 and FIPS 205, so none of them has an audit to cite in a procurement file. If your design depends on them, record the README statements, and ask the project whether an independent review is planned, because the sources record no planned review.

ml-kem README

Higher parameter sets not mapped

The RustCrypto ml-kem crate offers ML-KEM-512, ML-KEM-768 and ML-KEM-1024, and the ml-dsa crate offers ML-DSA-44, ML-DSA-65 and ML-DSA-87. The sources do not say which federal programs name the higher sets, and they do not map ML-KEM-1024 or ML-DSA-87 to rustls, aws-lc-rs or the openssl crate. Treat a requirement for a higher set as an open question. Ask the vendor or project which parameter sets a given Rust build uses for TLS, certificates and signatures, and confirm the answer in your own build.

What to do next by situation: supported rustls, ring builds, openssl and federal contracts

This sequence sorts each Rust service by its rustls version, crypto provider and OpenSSL linkage, then works through the case that matches it. It ends with a dated answer for engineers, customers and contract owners that states key exchange and signatures separately. Inventory, upgrade and roadmap detail stays on the sibling pages named in the steps.

  1. Sort each service by TLS stack

    Run cargo tree in each project, or read its Cargo.lock, and record the rustls version and the provider it selects for TLS. Sort each service into one group: rustls 0.23.48 or later on aws-lc-rs, older rustls or ring-based builds, the openssl crate, or no TLS through these crates. The inventory page, Where Rust uses cryptography: crates, TLS stacks and native bindings, lists the dependencies that feed this sort. Done when each service has one row with its rustls version, provider and OpenSSL linkage, and the later steps use that table.

  2. Enable and test the default provider

    On rustls 0.23.48 or later with aws-lc-rs, the default prefers X25519MLKEM768 for key exchange, and the release notes say this holds regardless of crate features. Keep that default, and do not reorder the kx_groups list unless a test requires it, because the first entry is the group the client sends a key share for. Run handshake tests against the peers each service connects to, and report unexpected failures, which the rustls defaults page asks users to do. Standalone MLKEM768 is available but is not on by default. Done when a test handshake from each service negotiates X25519MLKEM768 and any failures are logged with peer, version and date.

  3. Confirm signature paths remain classical

    The X25519MLKEM768 default applies to key exchange only. Certificate and handshake verification in rustls depends on ECDSA, Ed25519 or RSA. Rustls 0.23.44 enabled ML-DSA certificate support by default in aws-lc-rs but states that ML-DSA certificates are not supported in the public web PKI, and the rustls-post-quantum docs describe its ML-DSA variants as experimental and unstable. Ask your PKI team to list each certificate chain and signing key with its algorithm. Done when the inventory shows ECDSA, Ed25519 or RSA for every certificate and signing key, and no build enables the aws-lc-rs-unstable feature of rustls-post-quantum.

  4. Move ring-based and older builds to aws-lc-rs

    The rustls-ring provider does not support post-quantum algorithms, and rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() for that reason. Switch to aws-lc-rs through the default aws_lc_rs feature, or pass it explicitly with builder_with_provider() on the config or verifier builders. Rustls 0.24 requires an explicit provider, so plan for that line as well. This page does not state which rustls version first offered X25519MLKEM768, so confirm that version on the rustls releases page before you record it. Done when cargo tree shows aws-lc-rs as the TLS provider, no ring provider is selected for TLS, and a test handshake negotiates X25519MLKEM768.

  5. Confirm the linked OpenSSL build with its vendor

    Where a service uses the openssl crate at version 0.10.82, the crate binds to OpenSSL 1.0.2 through 4.x.x and LibreSSL 3.5 through 4.4.x. Find the library each binary loads with ldd on Linux or otool -L on macOS. If the vendored feature is set in Cargo.toml, the binary carries its own static copy from the openssl-src crate instead. The crate documentation, as checked on 2026-12-03, does not mention post-quantum cryptography, so the status comes from the linked OpenSSL build and its vendor. Ask the vendor or distribution which build is linked and what it says about post-quantum support for that exact version. Done when each openssl-using service has a written vendor answer that names the library version.

  6. Answer customer questionnaires with separate lines

    Write key exchange and signatures on separate lines, each with its component, version and test date. For key exchange, a service on rustls 0.23.48 or later with aws-lc-rs negotiates X25519MLKEM768 by default, so state the version and the date of your handshake test. For signatures, list the algorithms your certificates use (ECDSA, Ed25519 or RSA) and note that the rustls 0.23.44 release notes state ML-DSA certificates are not supported in the public web PKI. Avoid describing the service as compliant, certified or quantum safe. Done when the answer names the rustls version, provider, group, signature algorithms and test date, and a second reviewer has checked it against the handshake and certificate results.

  7. Ask the contract owner which CNSA 2.0 terms apply

    If a federal contract cites CNSA 2.0, ask the contract owner which parameter sets and which interfaces the clause means, and whether it applies to your service or to a national security system. This page does not map CNSA 2.0 parameter sets or interfaces to Rust crates, so do not assume that a rustls or aws-lc-rs setting meets the clause. Ask for the answer in writing, with the owner's name and the date. The page Rust post-quantum roadmap and project notices covers what the project has said. Done when the written reply lists each parameter set and interface, and each one is matched to a service in your inventory or marked as not covered by the current stack.

Is Rust quantum safe, and what do reviewers ask about its post-quantum support?

Can a Rust service be called quantum safe from its TLS stack alone?

No. The sources do not support calling Rust quantum safe, and this is not a claim about your whole system. Rust has no single built-in cryptography stack, so the answer depends on the crates a service uses. With rustls on the aws-lc-rs provider, X25519MLKEM768 is the first key exchange preference, and it covers key exchange only. Server authentication still uses ECDSA, Ed25519 or RSA keys. Rustls 0.23.44 states that ML-DSA certificates are not supported in the public web PKI. The rustls-ring provider does not support post-quantum algorithms, and the openssl crate documentation does not mention post-quantum cryptography. Inventory each TLS stack, provider and certificate in the service, then check each one against its own documentation.

Which Rust version turns on post-quantum key exchange by default?

Start from rustls 0.23.48. Its release notes say the aws-lc-rs provider now prefers X25519MLKEM768 key exchange regardless of crate features, and that X25519MLKEM768 remains its first preference. The defaults page for the same version describes X25519MLKEM768 as a hybrid post-quantum key exchange available with aws-lc-rs, and says standalone MLKEM768 is available but not enabled by default. The same notes say the prefer-post-quantum feature now enables only aws_lc_rs, and that the ring default provider is deprecated because ring does not support post-quantum algorithms. The notes do not cover earlier 0.23.x releases, so check their entries before you pin a version. From rustls 0.24, you must supply a crypto provider explicitly.

Does moving Rust TLS to post-quantum key exchange cost extra?

The sources give no license terms or prices for these crates, so this answer covers effort, not fees. The main cost is engineering and testing time: upgrading rustls and any dependency that pins it, setting the provider, testing peers, proxies and load balancers, and investigating connection failures. Much of this is one-time work, while dependency updates and retesting recur with each release. Cost rises with the number of services that embed TLS, the number of external parties you must test with, and the number of certificates you need to re-issue. Confirm the license of each crate in your dependency tree with your legal team. DeployOpen works under a fixed scope agreed in writing before work starts and publishes no price list, so ask for a quote built from that written scope, including the services covered and whether you want a retainer for ongoing upgrades and testing.

What breaks when a Rust service switches to X25519MLKEM768?

The known issue in the sources is unexpected connection failures. The rustls defaults page warns that some users may see unexpected connection failures with X25519MLKEM768 and asks them to report these to the project. The sources do not name the causes, so do not assume a single fix. Test the handshake with every client, browser, API consumer and internal service that connects to the Rust endpoint, including any proxy, load balancer or inspection device on the path. For each failure, record the TLS version, provider and negotiated group. Confirm in your own build how to disable X25519MLKEM768 so you can separate its effect from other changes. Then check whether the failure happens during the handshake or later in the session.

What should I ask a vendor whose product embeds rustls?

Ask for each answer in writing, tied to a product version. Ask which rustls version ships in each release, and whether it is 0.23.48 or later. Ask which provider is compiled in, aws-lc-rs or ring, because ring does not support post-quantum algorithms. Ask whether X25519MLKEM768 is enabled by default and whether an administrator can turn it off. For ML-DSA, the sources say rustls-post-quantum offers ML-DSA variants only as an experimental, unstable feature, and rustls 0.23.44 states ML-DSA certificates are not supported in the public web PKI. For FIPS, rustls documents FIPS 140-3 certificate #4816 for its FIPS use, and says later aws-lc-rs releases may be covered by later certificates or be pending. Ask which certificate, module and version the product uses, and the date of each answer, because these details change.

Can our own engineers do the Rust post-quantum work, or do we need help?

Yes, a team that owns the Rust build can do the core work itself. The steps are to pin a rustls version that includes the behavior described here, select the provider explicitly where your build requires it, run interoperability tests against every peer, and fix the connection failures your tests find. Plan the explicit provider change now if you will move to rustls 0.24. Outside help is available if no one on your team owns the Rust build, or if you want an independent test. DeployOpen can plan, upgrade, test and document self-hosted platforms in your own infrastructure under a fixed scope agreed in writing before work starts, and it offers retainers for ongoing upgrades and continuous testing. Scope the outside work to the components your team cannot cover.

How DeployOpen helps plan, enable and test Rust post-quantum support

DeployOpen is a Chainscore Labs company that plans, implements, hardens, documents and supports self-hosted open-source platforms in the client's own infrastructure. For Rust, the work starts with the crates and TLS providers a service actually loads, then moves through a written scope, a tested configuration and handover documents that security and compliance teams can review.

How we scope

  • The written scope names each Rust service, the TLS stack it uses and the crate versions in the build.
  • Scope records which rustls provider, such as aws-lc-rs or ring, each service is meant to use.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we build

  • Build work covers rustls configuration, provider selection and the TLS settings the written scope names.
  • Post-quantum key exchange is enabled only where the chosen provider supports it and the scope requires it.
  • Crates without post-quantum support, or without an independent audit, are flagged in the scope and reviewed before use.

How we hand over

  • Testing checks the negotiated key exchange, certificate chain and cipher suites against the written scope.
  • Handover documents list each crate, its version, its provider and the settings applied.
  • Compliance evidence is prepared for your assessors. DeployOpen does not issue audit reports or certifications.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Retainers can track rustls and provider releases, since default key exchange and provider behavior change between versions.
  • Connection failures seen with X25519MLKEM768 should be reported to the rustls project, as its defaults page asks.

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.