What a rustls post-quantum TLS error means in a Rust service
When a Rust service or client reports peer is incompatible: NoKxGroupsInCommon or received fatal alert: ... right after a hybrid key exchange change, the error is raised by rustls inside your own build, so the developer or platform owner who controls that build is the one who must act. The connection is failing outright, not silently falling back to a weaker exchange, so production traffic on that path is affected and should be treated as urgent. The first message means the two sides share no key exchange group that rustls will use. The second means the peer rejected the handshake and sent a fatal alert, and the alert name (for example, a handshake failure or illegal parameter) is printed in the error text. Neither message points at the TLS certificate, and replacing or reissuing certificates will not resolve them.
The fix lives in the project's dependencies and provider setup. Run cargo tree -i rustls to confirm which rustls version the build actually uses, and cargo tree -e features -i rustls to see which features are on and which packages enable them. Recent rustls releases put ML-KEM key exchanges in the rustls crate itself (from 0.23.22), and the prefer-post-quantum feature controls whether ML-KEM is chosen ahead of classical groups. Rustls 0.23.48 states that the aws-lc-rs provider now prefers X25519MLKEM768 regardless of features, and that a different order needs a custom CryptoProvider. It also deprecates the ring default provider because ring does not support post-quantum algorithms, so a project built on ring will not offer X25519MLKEM768 at all. Check which provider your build installs before changing anything.
Next, decide which side changes. If the peer is a server you do not control, confirm with its operator which groups it accepts, and adjust your client's kx_groups order through a CryptoProvider built with struct update syntax from aws_lc_rs::default_provider(). Remember that install_default() succeeds only once per process and must run early in fn main(), before any config builder. After any change, test a live handshake and call negotiated_key_exchange_group() on the connection to confirm which group was agreed. The result is None while the handshake is still running, so check after completion. Record the rustls version, provider and agreed group in your change record so the outcome can be reviewed.
Who has to act on a rustls handshake error
A rustls handshake failure on a hybrid group usually involves more than one team. The Rust code decides what the client offers, the build and deploy pipeline decides which rustls and provider versions ship, and the remote server decides which groups it accepts. Identify which of these three controls the failing setting before you change anything.
Rust developers who own the code
You own Cargo.toml and main(), so you control the rustls version your project requests, the crate features you enable, and the CryptoProvider you install. Call CryptoProvider::install_default() early in fn main(), before any ClientConfig::builder() or ServerConfig::builder(), because it succeeds only once per process. Run cargo tree -i rustls to confirm which version actually builds. You cannot change which key exchange groups the peer supports, so a peer is incompatible: NoKxGroupsInCommon error means the server must change, not your code.
Platform teams that build and deploy
Your pipeline decides which rustls and aws-lc-rs versions reach production, and whether the build host has the tools aws-lc-rs needs, such as cmake. A binary built against an older rustls may not offer X25519MLKEM768 even when the source code looks correct. Compare the lockfile and the deployed artifact with cargo tree -e features -i rustls, which shows enabled features and the packages that enable them. Ask for a build log that names the rustls version, since a rebuild with a newer lockfile can change the negotiated group.
Operators of the remote server
The server operator controls the TLS settings that decide whether a hybrid group is accepted. Rustls reports only what it sees on the client side, so the failing group list lives on the peer. If the server does not accept any group your client offers, a rustls client cannot fix that alone. Ask the server team which key exchange groups it accepts, and whether a hybrid group such as X25519MLKEM768 is enabled. Do not assume the server team knows the group list without asking.
Teams outside your control
When the server belongs to a vendor, a partner or another organization, that party may need its own change window to add a hybrid group. Their load balancer, proxy or appliance may also be the component that rejects the handshake. Record the exact alert or error text from your side, such as received fatal alert or peer is incompatible, so their team can match it against their logs. Agree in writing who owns the server-side change before you ship a client change that depends on it.
Teams that rely on the ring provider
If your project uses the ring provider through rustls::crypto::ring::default_provider(), it does not offer X25519MLKEM768, and rustls 0.23.48 deprecates that function for this reason. Switching providers changes the build dependencies and may require a build toolchain change on your platform. Confirm the provider with your dependency tree before you assume a group is missing from the server. Plan the provider change with the platform team, since it touches the build as well as the code.
How to check which rustls version and features a project builds
This sequence shows how to confirm the rustls version a Rust project resolves, whether the prefer-post-quantum and aws_lc_rs features are enabled, which crypto provider the code uses, and what the error text means when a hybrid TLS connection fails. The output tells you whether the next fix is a version change, a feature change, or a provider change.
Run cargo tree to find the rustls version
From the root of the Rust project, run
cargo tree -i rustls. The command prints the dependency paths that lead to rustls and the exact version the lockfile resolves, such as 0.23.x. Check that the version is at least the release you plan to target. The newest rustls release listed on crates.io is 0.23.48, published 2026-12-03, so a project on an earlier version will not have the 0.23.48 provider behavior. If the command prints nothing, rustls is not a direct or transitive dependency of this crate, and the error is probably coming from another TLS library in the project.List enabled rustls features and who enables them
Run
cargo tree -e features -i rustls. The output lists each feature that is enabled on rustls and the package that turns it on. Look forprefer-post-quantumandaws_lc_rsin that list. Ifprefer-post-quantumappears, it is on for this build. If it does not appear, a feature set in your own Cargo.toml or in a dependency may have removed it, so check thedefault-featuressetting on each rustls entry. The line that names the enabling package tells you whether to change your own Cargo.toml or a dependency's configuration.Read the feature output to decide the setting
Use the output from the previous step to answer two questions. First, is
prefer-post-quantumon? From rustls 0.23.22, ML-KEM key exchanges are in the rustls crate itself, and this feature controls whether ML-KEM is chosen ahead of classical key exchange. Second, isaws_lc_rson? This feature is on by default and selects the aws-lc-rs provider. Note that the 0.23.48 release states that the aws-lc-rs provider prefersX25519MLKEM768regardless of crate features, and thatprefer-post-quantumnow only enablesaws_lc_rs. Record both answers before you change anything, because they determine which fix applies.Identify the crypto provider in the code
Search the project for
default_provider,CryptoProvider,install_defaultandringin your source files and build scripts. Determine whether the code uses the aws-lc-rs provider or the ring provider. In rustls 0.23.48,rustls::crypto::ring::default_provider()is deprecated because ring does not support post-quantum algorithms, so a project on ring does not offerX25519MLKEM768. Also check thatCryptoProvider::install_default()is called early infn main(), before anyClientConfig::builder()orServerConfig::builder()call, because it succeeds only once per process. If no default is installed,CryptoProvider::get_default()returnsNone.Read the error text to find the cause
Run the failing connection again and read the message the application logs. A message containing
peer is incompatible: NoKxGroupsInCommonmeans the client and server share no key exchange group, so the handshake ended before the connection started. A message containingreceived fatal alert:followed by an alert name means the peer rejected the handshake and sent an alert, so the alert name points to the reason. The two cases need different fixes: a missing shared group usually points to the provider or group order on your side or the peer's lack of support, while a fatal alert requires checking what the peer logged. Confirm the peer's support in its own documentation, since the rustls docs do not describe eachPeerIncompatiblevariant.Record the findings before making changes
Write down the rustls version, the feature state of
prefer-post-quantumandaws_lc_rs, the provider the code uses, and the exact error text from the previous step. Keep this record with the project so the next fix can be checked against it. If the record shows ring as the provider, orprefer-post-quantumdisabled with an error ofNoKxGroupsInCommon, the next change is likely in Cargo.toml or the provider setup. If the record shows a fatal alert with the current provider, the problem is probably on the peer side and needs investigation there.
Causes of rustls hybrid key exchange failures and the fix for each
This table lists four causes of hybrid key exchange failures in rustls and the fix for each, with the version or setting the sources name. Check your rustls version with cargo tree -i rustls first, then match your symptom to a row. The main takeaway is that a missing shared group and an outdated or custom group order are the failures most often fixed by configuration alone.
| Cause | What you see | Fix |
|---|---|---|
| rustls older than 0.23.22 | ML-KEM is missing or the build depends on the separate rustls-post-quantum crate | Upgrade to rustls 0.23.22 or later, where the ML-KEM key exchanges are part of the rustls crate itself. Enable prefer-post-quantum if you want ML-KEM chosen first. |
| ring provider, rustls 0.23.48 or later | The project cannot offer X25519MLKEM768 because ring does not support post-quantum algorithms | Switch to the aws-lc-rs provider. Rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() for this reason. |
| No shared group (NoKxGroupsInCommon) | Connection fails with peer is incompatible: NoKxGroupsInCommon | Confirm the client and server both offer at least one common group, such as X25519MLKEM768 or X25519, and enable it on the side that lacks it. |
| Custom kx_groups order drops needed groups | Handshake fails after a CryptoProvider was built with a replaced kx_groups list | Rebuild the provider with kx_groups including the groups the peer needs, using CryptoProvider { kx_groups: vec![...], ..aws_lc_rs::default_provider() }, and keep at least one group matching each cipher suite. |
What to change in a Rust project to fix the handshake
The sequence below moves a Rust project onto a rustls release that offers hybrid post-quantum key exchange, removes a ring-only provider, and sets the group order you need. It ends with a build that you can test against the peer that was failing.
Check the rustls version in use
Run
cargo tree -i rustlsfrom the project root to see which rustls version the build resolves to. Runcargo tree -e features -i rustlsto see which features are enabled and which packages turn them on. This tells you whether the project is on a release older than 0.23.48, which is the newest version listed on crates.io as of the researched date. The output you are looking for is a single rustls version line and a feature list that includes or omitsprefer-post-quantum. Record both before you edit anything.Upgrade rustls to 0.23.48 or later
In
Cargo.toml, set the rustls dependency to 0.23.48 or later, then runcargo update -p rustls. The 0.23.48 release notes state that the aws-lc-rs provider now prefersX25519MLKEM768key exchange regardless of crate features. Upgrade only where the project's other dependencies support the new version, and check the rustls release notes for any API changes that touch your code. Done meanscargo tree -i rustlsnow reports 0.23.48 or later.Replace the ring default provider
Search the codebase for
rustls::crypto::ring::default_provider()or any other use of the ring provider. The 0.23.48 release notes deprecate it because ring does not support post-quantum algorithms, so a project on ring does not offerX25519MLKEM768. Switch those call sites to the aws-lc-rs provider, which is the default when theaws_lc_rsfeature is on. If the project turns off default features, confirm thataws_lc_rsis enabled again. Done means no ring provider call remains andcargo tree -e features -i rustlsshows aws_lc_rs.Enable prefer-post-quantum where needed
If the project's rustls dependency does not already include
prefer-post-quantum, add it to the feature list inCargo.toml. The feature controls whether ML-KEM is chosen ahead of classical key exchange, and rustls 0.23.27 made it a default feature. Check the 0.23.48 notes for the current behavior, since that release says the feature now only enablesaws_lc_rs. Runcargo tree -e features -i rustlsagain to confirm the feature is active. Keep the feature only if your deployment needs the ML-KEM preference.Build a custom group order if required
Use this step only if the peer requires a group order that the defaults do not provide. Build a
CryptoProviderwith a replacedkx_groupslist using struct update syntax fromaws_lc_rs::default_provider(), for exampleCryptoProvider { kx_groups: vec![...], ..aws_lc_rs::default_provider() }. The first entry inkx_groupsis the default key share, and each cipher suite needs at least one matching group in the list. Choose group names from thekx_groupmodule list, which includesX25519MLKEM768,X25519andSECP256R1. Done means the code compiles and the group list matches what the peer accepts.Install the default provider in main
Call
CryptoProvider::install_default()early infn main(), before anyClientConfig::builder()orServerConfig::builder()call. The function succeeds at most once per process, so call it one time. If you built a custom provider in the previous step, pass it here. Check the return value, because a failure means a default was already set. Done means a startup run reaches the TLS code without a panic andCryptoProvider::get_default()returns a provider.Install the build tools for aws-lc-rs
The aws-lc-rs crate builds native code and needs build tools such as cmake on the machine that compiles the project. Install cmake with the package manager your build hosts use, and confirm that
cmake --versionruns in the same shell that runscargo build. Build containers and CI images often need this added to the image. If you cannot install build tools on a host, the sources on this page do not describe another route, so check the aws-lc-rs documentation for your target. Done meanscargo buildcompletes on that host.Rebuild, redeploy and check the handshake
Run
cargo build --release, deploy the binary to the environment where the handshake failed, and repeat the connection that produced the error. When the connection succeeds, confirm the agreed group by callingnegotiated_key_exchange_group()on the connection after the handshake completes, since it returnsNonewhileis_handshaking()is true. If the error persists, look forpeer is incompatible: NoKxGroupsInCommonorreceived fatal alertin the logs, and compare the group list with what the peer supports. Done means the connection completes and the logged group matches your expectation.
How the rustls fix differs by build and deployment setup
A standard Cargo binary that keeps the default features uses the aws-lc-rs provider, because the aws_lc_rs crate feature is on by default. In rustls 0.23.48 and later, this provider prefers X25519MLKEM768 key exchange regardless of crate features, so most teams on the default setup need no code change to offer a hybrid group. If the handshake still fails, the cause is usually the peer, a middlebox or an older rustls version, not the default provider itself. Confirm the version first with cargo tree -i rustls.
- Check the version: run
cargo tree -i rustlsand confirm the build resolves to 0.23.48 or later. - Confirm the features: run
cargo tree -e features -i rustlsto see whetheraws_lc_rsandprefer-post-quantumare enabled. - Build tools: aws-lc-rs needs build tools such as cmake, so confirm they are present on the build machine.
- Reorder only if needed: a different group order requires a custom
CryptoProvider, not a feature flag.
After any change, rebuild and check the negotiated group at runtime rather than assuming it from the version.
A project built with default-features = false drops the implicit aws-lc-rs dependency, so the build no longer pulls in aws-lc-rs through the default feature. If the project then selects the ring provider, the deprecation in rustls 0.23.48 applies: rustls::crypto::ring::default_provider() is deprecated because ring does not support post-quantum algorithms. A project on the ring provider therefore does not offer X25519MLKEM768, and a peer that requires a hybrid group will fail the handshake.
- Find the provider: search the codebase for
crypto::ringanddefault_provider()to see which provider the code calls. - Switch to aws-lc-rs: move to the aws-lc-rs provider if the project can build with its build tools.
- Keep ring with a clear scope: if ring must stay, expect no hybrid group and test against the peers that need one.
- Watch the error: a missing shared group appears as
peer is incompatible: NoKxGroupsInCommon.
Confirm the provider in the build before you test, because the default-features setting alone does not show which provider runs.
The custom-provider feature requires the application to install a provider manually. Nothing is installed for you, so the application must choose the provider and call CryptoProvider::install_default() before any ClientConfig::builder() or ServerConfig::builder() call. If no default is set, CryptoProvider::get_default() returns None, which means the connection setup has no provider to use.
- Install early: call
install_default()at the top offn main(), before any config builder runs. - Install once: the call succeeds at most once per process, so do not repeat it in library code.
- Set the group order: to change order, build a provider with
CryptoProvider { kx_groups: vec![...], ..aws_lc_rs::default_provider() }. - Check the default: confirm
get_default()returns a provider at startup, so a missing install shows up early.
Where a library and an application both touch TLS, the application should be the only place that installs the provider.
A containerized build compiles the same Cargo dependencies inside a build image, so the image needs the same build tools that aws-lc-rs depends on. The sources name cmake as the tool that must exist in the image. A build that works on a developer laptop can fail in CI or in a slim base image because cmake is missing, and that failure is a build error rather than a TLS error, so check the build log before changing TLS settings.
- Add cmake to the image: install cmake in the build stage of the container file, not only in the runtime image.
- Match the lockfile: build with the committed
Cargo.lockso the rustls version in the image matches the one tested locally. - Verify the version in the image: run
cargo tree -i rustlsinside the build container, not on the host. - Check runtime behavior: run a handshake from the container to a peer that requires a hybrid group.
Record the rustls version and the build image digest together, so a later rebuild can be compared with the tested result.
Decision path from rustls handshake error to a verified fix
The path starts at the rustls error in the application logs, such as peer is incompatible: NoKxGroupsInCommon or a received fatal alert. Next, run cargo tree -i rustls to confirm the version, and cargo tree -e features -i rustls to see whether prefer-post-quantum or the ring provider is in use. Then change the version, the provider, or the kx_groups order in a custom CryptoProvider, and rebuild. The fix is confirmed only when negotiated_key_exchange_group() returns the hybrid group after a completed handshake.
The steps from a rustls handshake error to a confirmed hybrid key exchange.
How to confirm the rustls fix is working
After you change the key exchange order or the provider, confirm the result on a live connection rather than trusting the build. On a rustls connection object, call negotiated_key_exchange_group() once the handshake has finished. This method returns Option<&'static dyn SupportedKxGroup>, and it returns None while is_handshaking() is still true. It also returns None for a resumed TLS 1.2 handshake, so a None result does not by itself mean the fix failed. Run the check on a fresh connection to a peer you know supports hybrid key exchange, and log the group name in your test output. Where the peer supports it, the expected success output is the group X25519MLKEM768.
Also call protocol_version() on the same connection, since the agreed TLS version determines whether a hybrid group can be negotiated at all. A connection that reports a group other than X25519MLKEM768 may mean the peer does not offer it, or that your kx_groups list still ranks a classical group first. Compare the output against the peer's documented support before deciding the fix is wrong. If the connection fails outright, the error text will show peer is incompatible: NoKxGroupsInCommon when no group is shared, which points back to the provider configuration rather than to the connection check.
After rollout, watch your handshake error rates and the count of failed connections from clients built with the new provider. Rustls's error messages, such as received fatal alert, give you the alert name to group failures by. A rise in failures from specific peers suggests that some middleboxes or servers still mishandle the larger hybrid handshake, so check those peers individually. Confirm the rate change against your own logs rather than assuming a single successful test covers production traffic.
What can break when changing rustls key exchange settings
Changing the key exchange group order or the rustls version can make a connection that worked stop working, or leave a hybrid group unused without any error. The cards below list the cases most often behind these failures, so you can check each one before and after a change.
Older clients on pre-0.23.22 rustls
Builds that use rustls older than 0.23.22 do not have the ML-KEM key exchanges inside the main rustls crate, because those came in with 0.23.22 and the separate rustls-post-quantum crate was used before that. A server that now prefers X25519MLKEM768 may meet such a client and fall back, or fail, depending on which groups the client offers. Check the rustls version of each client you still support by running cargo tree -i rustls in its project.
CI runners and pinned lockfiles
A Cargo.lock file committed to a repository pins an exact rustls version, so an upgrade on your laptop may not reach the CI runner or a deployed build. Runners with cached dependencies can also hold an older rustls than the one you tested locally. Compare the version printed by cargo tree -i rustls on the runner with the one on your machine, and check that Cargo.lock is updated in the same commit as your configuration change.
Group order that drops a peer's group
Setting kx_groups in a custom CryptoProvider replaces the whole list, so any group you leave out is no longer offered. If a peer supports only classical groups such as X25519 or SECP256R1, and your list has no group in common with it, the handshake fails with peer is incompatible: NoKxGroupsInCommon. Keep at least one group that your peers support in the list, and test each peer type you connect to.
Ring provider losing post-quantum groups
Rustls 0.23.48 deprecates rustls::crypto::ring::default_provider() because ring does not support post-quantum algorithms, so a project on the ring provider will not offer X25519MLKEM768. Switching providers to get that group changes the build, since aws-lc-rs has different dependencies. Check which provider your ClientConfig or ServerConfig uses before you expect hybrid key exchange to appear in a handshake.
Build failures without cmake
Aws-lc-rs is the default provider through the on-by-default aws_lc_rs feature, and it needs build tools such as cmake. A build that worked on one machine can fail on a runner or container that does not have cmake installed, which looks like a rustls problem but is a missing build dependency. Install cmake on the build image, or set default-features = false and configure a provider yourself if your environment cannot provide it.
When to get help with a rustls post-quantum error
Some rustls errors cannot be fixed by changing your own code. If your team cannot upgrade rustls, or cannot change the crypto provider that rustls uses, you may be stuck with a peer that offers no shared key exchange group. Run cargo tree -i rustls to confirm the version your project actually builds, and cargo tree -e features -i rustls to see whether prefer-post-quantum is enabled and which package turns it on. If the version is old or the provider is the ring provider, which the 0.23.48 release notes say does not support post-quantum algorithms, a dependency upgrade or provider change is the real fix, and that work may need a maintainer or a platform owner rather than an application developer alone.
When the failing server belongs to a vendor or another team, you cannot change its key exchange configuration yourself. A peer is incompatible: NoKxGroupsInCommon error or a received fatal alert message tells you the server did not accept any group your client offered, but the rustls documentation does not describe each PeerIncompatible variant, so do not assume what the server supports. Collect the exact error text, the hostname, the rustls version and your kx_groups order, then send that to the vendor or owning team and ask whether they support X25519MLKEM768 and what they plan to do. If many services or hosts show the same error, treat it as a shared dependency problem and escalate it as one incident rather than fixing services one at a time.
In a regulated environment, a working connection is not enough: you also need a record of what changed and why. Keep the before and after versions from cargo tree, the CryptoProvider code that sets kx_groups, the result of calling negotiated_key_exchange_group() on a test connection, and the ticket or change record that approved the change. Those records give your compliance and security reviewers evidence to check. They do not, by themselves, establish that the product is certified or validated for any standard. If your auditors or customers ask about compliance status, the answer should come from your assessor or the library's published documentation, not from this guidance. DeployOpen can help plan the inventory, test the change and prepare the evidence for that review, but it does not issue audit reports or certifications.
Questions developers ask after a rustls post-quantum handshake error
Is the connection still encrypted when this rustls error appears?
No. When this error appears, the TLS handshake has not completed, so no application data is exchanged and nothing is sent over the connection in a usable form. The error means the two sides could not agree on a key exchange group, so the session was never established. Nothing has been sent in plaintext, but the request has also not succeeded. Your application should treat the connection as failed, retry only after the configuration is fixed, and avoid falling back to an unencrypted connection to work around the error.
Is this rustls handshake error urgent for production systems?
It is urgent when it blocks a connection that production depends on, because the affected requests fail outright. Check first whether the failure is consistent or intermittent, and whether it affects all peers or only some. A missing shared group, shown as NoKxGroupsInCommon, usually means one side offers a set of groups the other does not support. The fix is usually a configuration change on your side, a provider change, or a peer upgrade. Plan the change through your normal release process and test it in a staging environment before it reaches production traffic.
Can I ignore or silence this rustls error?
No. The error reports a real failure to establish the connection, and silencing the log message does not restore the connection. Do not disable certificate checks or accept unverified peers to get past it, because that removes the protection TLS provides. If you need a short-term measure while a fix is prepared, a temporary change to the offered key exchange groups or a rollback to the previous rustls version may be appropriate, but treat it as temporary and remove it once the peer and your configuration agree. Confirm the exact version and feature behavior in the rustls release notes before relying on any rollback.
Why does this rustls post-quantum error appear after an upgrade?
The rustls 0.23.27 release, published 2025-05-05, added the setting to prefer post-quantum key exchange by default, and rustls 0.23.48, published 2026-12-03, made the aws-lc-rs provider prefer X25519MLKEM768 regardless of crate features. After an upgrade, your client may now offer a hybrid group first that an older peer or middlebox does not handle, so the handshake fails. Run cargo tree -i rustls to confirm the version your project builds, and run cargo tree -e features -i rustls to see which features are enabled. A project that uses the ring provider does not offer X25519MLKEM768, because ring does not support post-quantum algorithms, and that is also worth checking after an upgrade.
What should I do if I cannot upgrade rustls?
Keep the version you run and change the key exchange order in your own code instead of upgrading. Build a CryptoProvider with a replaced kx_groups list using struct update syntax from a built-in provider, for example CryptoProvider { kx_groups: vec![...], ..aws_lc_rs::default_provider() }. The first group in the list is the default key share, so place a classical group such as X25519 first if the peer does not handle hybrid groups. Call CryptoProvider::install_default() early in fn main(), before any ClientConfig::builder() or ServerConfig::builder(), because it succeeds at most once per process. Confirm the result with negotiated_key_exchange_group() on the connection. Check the rustls docs for the exact list of groups your version supports.
How do I confirm which key exchange group rustls negotiated?
Call negotiated_key_exchange_group() on the connection after the handshake completes. It returns an Option of a supported key exchange group, and it returns None while is_handshaking() is still true, as well as for a resumed TLS 1.2 handshake, so check the handshake state before reading it. Use protocol_version() in the same check to record the agreed TLS version. Logging both values for a test connection gives you evidence that the configuration you changed is the one actually in use. Repeat the check against each peer your application depends on, since different servers may negotiate differently.
Do I need outside help to fix this rustls error?
You may not need outside help if the failure is limited to one service and you can run tests against the peer yourself. Outside help is worth considering when the failure spans many services, when the peer is controlled by a vendor that has not published a supported configuration, or when a change must be reviewed before a compliance assessment. DeployOpen plans, implements, tests and documents self-hosted platforms in a client's own infrastructure, and it can review a TLS configuration as part of that work. A written scope is agreed before work starts, and DeployOpen does not publish a price list, so a quote follows from the scope you define.
How DeployOpen helps teams fix rustls and TLS handshake errors
DeployOpen starts by confirming which rustls version and features your Rust project actually builds, then checks whether the failing handshake is an absent shared key exchange group or a configuration choice. Changes are limited to the provider and group order in your code, and each one is tested against the peer that failed.
How we scope
- We confirm the rustls version and enabled features with cargo tree, since the 0.23.48 provider behavior depends on them.
- We record which crypto provider each service uses, because the ring provider does not offer X25519MLKEM768.
- Engagements are fixed-scope, and the written scope names the services, peers and error messages covered.
How we build
- We reproduce the failure and match it to NoKxGroupsInCommon, a fatal alert, or a stalled handshake.
- We change the kx_groups order through a custom CryptoProvider, calling install_default early in main.
- We check that the peer accepts the new group order before rolling the change to production.
How we hand over
- You receive the dependency versions, provider settings and group order that were tested, with the code changes.
- The handover explains how to confirm the negotiated group by calling negotiated_key_exchange_group on a connection.
- Test steps cover both fresh and resumed TLS 1.2 handshakes, so reviewers can repeat them.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer when rustls releases change defaults.
- We can re-check the rustls version after upgrades, since the prefer-post-quantum feature now only enables aws_lc_rs.
- Ask any partner for the written scope and confirm which rustls release each fix was validated against.

