Disable post-quantum key agreement for TLS and when that is sensible

Hybrid post-quantum key exchange can be switched off on clients and servers, but doing so removes protection against later decryption of recorded traffic. This page explains the options and when a temporary switch-off is defensible.

On this page

Can you disable post-quantum key agreement for TLS, and should you?

When a TLS connection fails or stalls after a hybrid post-quantum group is offered, you can turn hybrid key exchange off on the client or the server. Doing so removes the protection against later decryption of recorded traffic, so treat it as a temporary workaround, not a fix. When it is switched off, the connection is still encrypted, but the key exchange falls back to classical groups such as X25519 or secp256r1. Whether the switch-off is acceptable depends on how long the data protected by that connection must stay confidential. Traffic carrying short-lived data is a different risk profile from records that must remain secret for years, so decide that per service before you change any setting.

The method depends on where the group is configured. In nginx, the ssl_ecdh_curve directive sets the curves the server supports, and omitting hybrid groups from it removes them from negotiation. In Apache HTTP Server 2.4.8 and later with OpenSSL 1.0.2 or later, the SSLOpenSSLConfCmd directive can pass a Groups command to OpenSSL. On the client side, OpenSSL 3.5 changed the default group list to offer X25519MLKEM768 first, so a build or configuration that sets its own group list controls whether that share is sent. In Go 1.24, the tlsmlkem=0 value in the GODEBUG setting reverts the default, which the Go release notes describe as a possible fix for buggy TLS servers that time out on large records. Check the exact directive names and version behavior in each product's documentation before you apply them, because the names differ across releases.

Record the change as a deliberate exception. Name the owner, the affected hosts or clients, the reason, and a date to revisit it, and confirm after the change which group was negotiated using a tool such as openssl s_client or the openssl version -a output for your build. Then fix the underlying device or library that caused the failure and re-enable the hybrid group. For the step-by-step isolation of the failing hop, see the sibling topic on finding which hop breaks a post-quantum TLS connection.

Who has to act to switch hybrid key exchange off

Turning off hybrid post-quantum key agreement for TLS is not one setting. Each party controls a different component: the server operator, the developer of a Go or OpenSSL application, the user or administrator of a browser, and the vendor of an appliance or hosted service. Find which one you can change directly before you touch anything, because a change in the wrong place will not take effect.

Server operator for nginx and Apache

If your server terminates TLS, you control which groups it offers. In nginx, the ssl_ecdh_curve directive sets the curves the server supports, and its default is auto. In Apache HTTP Server 2.4.8 and later, SSLOpenSSLConfCmd passes commands from the SSL_CONF_cmd man page to OpenSSL, so you can set the Groups list. In both cases, remove the hybrid group from the list and keep the curves your ECDSA certificates need, such as prime256v1:secp384r1. Check the result with a test client after reloading the configuration.

nginx ssl docs

Developer of a Go or OpenSSL application

If you build the client or server, the default lives in your code or in the library version you ship. In Go 1.24, X25519MLKEM768 is on by default when Config.CurvePreferences is nil, and setting GODEBUG=tlsmlkem=0 reverts that default. Setting CurvePreferences explicitly also overrides it, but Go ignores the order you give. In OpenSSL 3.5.0 and later, the default group list includes X25519MLKEM768, so use SSL_CTX_set1_groups_list to remove it with a - prefix, or set an explicit list without it. Confirm the negotiated group with SSL_get0_group_name.

OpenSSL version docs

User or administrator of a browser

Firefox offers an enterprise policy that disables hybrid key agreement for TLS, HTTP/3 and WebRTC. Setting PostQuantumKeyAgreementEnabled to false in policies.json, the Windows registry, or the macOS policy plist locks the setting, and the policy is available from Firefox 127 (ESR 128). Chromium removed its equivalent admin policy in Chrome 147, so there is no supported switch there. Edge's PostQuantumKeyAgreementEnabled policy is obsolete after Edge 146, and the vendor states the feature cannot be disabled, so ask your device vendor for a fix. Firefox's own documentation says to use false only as a temporary workaround.

Firefox policy docs

Vendor of an appliance or hosted service

If the TLS endpoint is a firewall, load balancer, proxy or SaaS platform, the sources in this section do not describe its settings, and you usually cannot change its code. Ask the vendor in writing whether it offers or accepts hybrid key exchange, whether a configuration option exists to exclude it, and whether a firmware or software version fixes the handshake failure. Record the version you run, because the answer depends on it. Until the vendor replies, you have no supported setting to change on that device.

How to confirm which side offers the hybrid group before you change anything

This sequence establishes which TLS and SSH stacks in your path offer a hybrid post-quantum key exchange group and which one the connection actually negotiates. You need that baseline before you disable anything, so the change targets the component that is failing and nothing else.

  1. Record the OpenSSL version on each TLS endpoint

    On each server and client host that terminates or initiates TLS with OpenSSL, run openssl version -v to see the installed version. Run openssl version -a if you need the build details as well. OpenSSL 3.5.0 changed the default group list so that the TLS client sends two key shares, X25519MLKEM768 and X25519, so the version tells you whether that default applies. Record the output next to the host name. The step is done when every OpenSSL-based endpoint has a recorded version string.

  2. Check the Go version and any GODEBUG setting

    For each Go service, run go version on the build host and inspect the runtime environment for a GODEBUG value, including any set in the service manifest or container image. Go 1.24 enables X25519MLKEM768 by default when Config.CurvePreferences is nil, and GODEBUG=tlsmlkem=0 reverts that default. Go 1.26 adds further hybrid groups to the default. Record the Go version and whether tlsmlkem or tlssecpmlkem appears. The step is done when each Go service has a version and a GODEBUG status on record.

  3. Read the negotiated group from a live connection

    Establish a test connection to the server and read which group was negotiated. In OpenSSL code, SSL_get0_group_name returns the negotiated group name, and it is generally preferred over the older numeric accessor. From the command line, the openssl s_client output includes the negotiated key exchange details. The sources in this topic do not give a fixed s_client command line, so confirm the flags against the documentation for your installed OpenSSL build before you run it. The step is done when you have the negotiated group name for at least one connection from each client type.

  4. Confirm the server group configuration

    On each server, read the group list that the server actually uses. For nginx, check the ssl_ecdh_curve directive, which defaults to auto and must include curves used by ECDSA certificates. For Apache, check any SSLOpenSSLConfCmd entries that set Groups or Curves, which pass commands through to OpenSSL. In OpenSSL, the first group in the list is used for the TLS 1.3 key share. The step is done when you know the exact configured group list on the server and whether any explicit override exists.

  5. Check the SSH client and server versions

    On each SSH client host, run ssh -V, and on each SSH server host, run sshd -V, to record the OpenSSH versions. OpenSSH 9.9 added mlkem768x25519-sha256, and OpenSSH 10.0 made it the default. Record both versions, because a client and server that both support the group can still fall back to another algorithm if either side lacks it. The step is done when each SSH endpoint has a version recorded.

  6. Inspect the effective SSH client configuration

    On the client, run ssh -G with the target host to print the evaluated client configuration for that connection, including the KexAlgorithms value. Check whether any -, +, or ^ prefix in ssh_config changes the default set. Then run ssh -Q KexAlgorithms to list what the build supports. The step is done when you know the effective KexAlgorithms list for the target and whether the post-quantum group appears in it.

  7. Compare the negotiated SSH key exchange

    Run ssh -v against the target host and read the debugging output, which shows progress through the key exchange. Then run sshd -T on the server to print the effective server configuration. Compare the negotiated key exchange with the client and server lists. If OpenSSH 10.1 or later prints the warning about a connection not using a post-quantum key exchange, note it, because that warning appears only when the session falls back. The step is done when you can name the key exchange algorithm each side offers and the one the session used.

  8. Record the findings before making any change

    Write down, for each host, the component version, the configured group or KexAlgorithms list, the negotiated group, and any GODEBUG or policy override. Mark which side is the one that offers the hybrid group and which side refuses it or fails. Keep this record with the change ticket so the reviewer can see the state before and after. The step is done when the record shows, for every failing connection, which side offers the hybrid group and which side does not.

Which switch fits which situation: server, client, or intermediary

This table maps each common situation to the switch that applies to it, the component where that switch is set, and the version the facts name for it. Read the row that matches your setup, then confirm the version you run with the command in the last row before you change anything.

SituationWhere the switch is setVersion boundary from the facts
Go client, buggy server times out on large recordsGODEBUG=tlsmlkem=0 on the client processGo 1.24 enables X25519MLKEM768 by default when CurvePreferences is nil; tlsmlkem=0 reverts the default
OpenSSL client with a restricted group list-groups or Groups in SSL_CONF_cmd, or set1_groups list in codeOpenSSL 3.5.0 (8 April 2025) changed the default list to send X25519MLKEM768 and X25519 key shares
nginx server whose ssl_ecdh_curve restricts the listssl_ecdh_curve directive in the http or server contextApplies with OpenSSL 1.0.2 or higher; the list must include curves used by ECDSA certificates
Apache server needing a group changeSSLOpenSSLConfCmd in server config or virtual hostAvailable in httpd 2.4.8 and later with OpenSSL 1.0.2 or later
Firefox fleetPostQuantumKeyAgreementEnabled policy in policies.json, Windows registry or macOS plistPolicy available since Firefox 127 (ESR 128); documented as temporary workaround only
Chromium buildPostQuantumKeyAgreementEnabled policyListed for Chrome 116 to 146, removed in Chrome 147; the policy no longer applies
Microsoft Edge buildPostQuantumKeyAgreementEnabled registry value under SOFTWARE\Policies\Microsoft\EdgeObsolete and not working after Edge 146; key agreement is enabled by default and cannot be disabled, so ask device vendors for fixes
Check the installed OpenSSL version before editingRun openssl version -v in a terminalConfirm the version is 3.5.0 or later before relying on the 3.5 group syntax

What to change by role: developer, server operator, and administrator

On a developer workstation, the setting usually lives in the code or environment of the program being built. A Go program can revert the default with an environment variable, while an OpenSSL-based client takes a group list that controls which key shares are sent. Choose the narrowest change that fixes the failing connection, and reverse it once the server is upgraded.

  • Go runtime: Set GODEBUG=tlsmlkem=0 in the environment to revert the default that enables X25519MLKEM768. Go 1.24 release notes say this helps with TLS servers that mishandle large records and cause a handshake timeout.
  • Go code: Set Config.CurvePreferences explicitly. The Go documentation says the order of the list is ignored and the package uses its own internal preference order, so the list only controls which groups are included.
  • OpenSSL client: Pass -groups to openssl s_client, for example -groups 'X25519:secp256r1', to remove the hybrid group from the list. A group prefixed with - is removed from the built-in default list in OpenSSL 3.5.
  • Version check: Run openssl version -a to confirm the installed version before testing, because the default group list changed in OpenSSL 3.5.0.

After changing a setting, confirm that the connection succeeds and that the negotiated group matches your intent, using the group name that the client reports.

What breaks when a switch is applied too broadly

Turning off post-quantum key agreement is a per-client or per-server setting, but it applies to every connection that setting covers. The cards below describe the costs that follow from that scope, and the checks to run before a temporary switch becomes a permanent one.

Loss of protection against recorded traffic

With hybrid key agreement off, sessions fall back to classical key exchange, and traffic recorded now can be decrypted later by an attacker with a future quantum computer. Firefox's policy documentation says disabling removes this protection and recommends false only as a temporary workaround. Before you switch it off, confirm which services carry sensitive data and whether the switch is limited to the systems that need it.

Firefox policy docs

Pinned settings that outlive the fault

A switch added to fix one broken middlebox or legacy server often stays in place after that fault is gone. In Go, GODEBUG=tlsmlkem=0 reverts the default for the process, and in OpenSSL an explicit group list replaces the built-in default. Record each override with its owner and reason, and schedule a removal check so the workaround does not quietly become the standard configuration.

Go 1.24 notes

Automation and CI images keep the switch

A setting baked into a build script, container image or golden VM template applies to every host built from it, long after the original problem was fixed. For OpenSSH, a KexAlgorithms line with a - prefix in ssh_config removes the hybrid algorithms from the default set for every client using that file. Search configuration management repositories and image pipelines for these keys when you retire a workaround.

ssh_config manual

Compliance-mode configurations need a recorded decision

A switch that reduces a control's protection should appear in your change record with a documented justification, scope, owner and review date. Auditors reviewing a regulated environment will ask why a client offers classical key exchange only, and the answer should trace to a specific incident and a planned end date. DeployOpen can help prepare this evidence, but the decision itself belongs to your organization.

Edge does not let enterprises disable it

Microsoft's Edge policy page, dated 2026-11-03, says the PostQuantumKeyAgreementEnabled policy is obsolete and does not work after Edge 146. Post-quantum key agreement is now enabled by default and cannot be disabled through policy, so enterprises should work with device vendors for fixes. Plan Edge-dependent workloads around that fact rather than assuming an administrator switch exists.

Edge policy page

When a temporary switch-off is a defensible choice

Turning off hybrid key exchange is defensible only in a few narrow cases, and each should be a deliberate, temporary decision rather than a default. The cases the sources name are a middlebox, proxy or legacy server that cannot handle the larger ClientHello, and a buggy TLS server that does not handle large records correctly and causes a handshake timeout. In the Go case, the release notes describe setting GODEBUG=tlsmlkem=0 to revert the default for that reason. Before you disable anything, confirm which hop is failing, because turning off the key exchange on the client only hides a problem that sits on the path or on the server. The Firefox policy documentation describes the same use: false is appropriate only as a temporary workaround for a middlebox, proxy or legacy server that cannot handle the ClientHello.

Any switch-off should be time-limited, documented, and paired with a plan to restore hybrid key exchange. Record which system is affected, who approved the change, the version involved, and the date by which the setting must be reviewed. Set a named owner for the fix, such as an upgrade of the middlebox or a patch to the server, and track it until the hybrid group can be re-enabled and tested again. Keep the setting scoped to the affected clients or servers where the product allows it, instead of applying it fleet-wide. The Firefox policy is locked once set, which makes it easy to forget, so note it in your change record and check it at each review.

Weigh the switch-off against the data the connection carries. Disabling hybrid key exchange removes protection against recorded traffic being decrypted later, so data that must stay confidential for many years is a poor fit for this workaround. OpenSSH's own warning makes the same point: a session without a post-quantum key exchange may be vulnerable to "store now, decrypt later" attacks. For long-lived sensitive traffic, prefer routing around the broken hop or upgrading it, and treat a temporary switch-off as a last resort. Before you decide, ask the owner of the affected service which data it carries and how long that data must remain confidential.

Questions readers ask before they switch hybrid key exchange off

Is the connection still encrypted if I turn off hybrid key exchange?

Yes. Turning off post-quantum key agreement only removes the hybrid group from the handshake, so the connection falls back to classical key exchange such as X25519 and remains encrypted in transit. What you give up is protection against an attacker who records traffic today and decrypts it later with a future quantum computer. Firefox's policy documentation says exactly this and recommends false only as a temporary workaround. Confirm the negotiated group after the change with your client's verbose output, because a server that still requires the hybrid group will fail the handshake instead of falling back.

Is a post-quantum handshake failure urgent enough to switch it off now?

Usually not, if a fix or a narrower workaround exists. A handshake failure is an availability problem that breaks access today, while recorded-traffic exposure is a longer-term confidentiality risk, so the two should be weighed against each other. Switching off key agreement is a reasonable short-term step when a business-critical connection is down and the failing hop cannot be fixed quickly. Record the reason, the scope and an owner, and plan to re-enable the hybrid group once the middlebox, proxy or legacy server is upgraded.

Should I switch off hybrid key exchange on the client or the server first?

Start with the side you control and that causes the failure. If one client build or browser fails against many servers, disable the hybrid group on that client. If one server or load balancer rejects clients that offer it, change that server's group list instead, because disabling it on every client only hides the server defect. The nginx directive ssl_ecdh_curve, the Apache SSLOpenSSLConfCmd command and the OpenSSL Groups setting all control the server side, while Go's tlsmlkem=0 and Firefox's policy control clients. Change one side at a time and retest after each change.

Can a Firefox policy that disables post-quantum key agreement be locked?

Yes. Firefox's Enterprise policy PostQuantumKeyAgreementEnabled, set to false, disables post-quantum key agreement for TLS, HTTP/3 and WebRTC and locks the related settings so users cannot change them. It is available from Firefox 127 (ESR 128). You can deploy it through policies.json as {"policies": {"PostQuantumKeyAgreementEnabled": false}}, through a Windows registry value under Software\Policies\Mozilla\Firefox, or through a macOS policy plist key. Verify the deployed policy on a test machine first, and treat the result as a temporary workaround rather than a permanent setting.

Does a Chromium policy still disable post-quantum key agreement after Chrome 147?

No. The PostQuantumKeyAgreementEnabled policy was temporary, listed for Chrome 116 to 146, deprecated, and removed in the change that landed on the main branch for Chrome 147. Setting it on Chrome 147 or later has no effect, so do not rely on it as a control. Check the browser version on managed machines before writing a compliance statement about this setting. If you need a switch-off in Chromium-based browsers, confirm with your browser vendor or device management provider what remains available for your version.

Does the Edge policy still work, and what does Microsoft say about it?

It does not work. Microsoft's Edge policy page, dated 2026-11-03, marks PostQuantumKeyAgreementEnabled as obsolete and says it has no effect after Edge 146. Microsoft also states that post-quantum key agreement is now enabled by default and cannot be disabled through policy. Microsoft directs enterprises to work with their device vendors for fixes. Plan your handshake troubleshooting around the vendor path, and use network-level or server-level changes where you can make them.

When should I ask a vendor for a fix instead of switching key agreement off?

Ask the vendor when the failing component is theirs and the switch-off would be permanent or widespread. Typical cases are a firewall or proxy that drops the larger ClientHello, a load balancer that mishandles hybrid key shares, or a device firmware that cannot be changed on your side. Ask for the product version that handles the hybrid group, the timeline for the fix, and any supported configuration that avoids the defect. Keep the temporary switch-off, its scope and its removal date in writing so the workaround is tracked until the fix ships.

How do I confirm which key exchange group a TLS connection uses after the change?

Test the connection and read the negotiated group from the output. With OpenSSL 3.5 or later, the client reports the negotiated group, and openssl version -v shows which build you are testing. The OpenSSL 3.5 default list offers X25519MLKEM768 and X25519, so a result of X25519 confirms the switch-off took effect. For Go, tlsmlkem=0 reverts the default. Record the group name and the library version together so the evidence can be reviewed later.

Decision path from handshake failure to a documented switch-off

The path starts when a TLS connection fails or stalls after a hybrid group is offered, and the first step is to confirm the failure and identify which side (client or server) is offering the hybrid group. Next, check whether the cause is a buggy server or a middlebox such as a firewall or proxy, since that determines the fix. From there, choose one of three routes: a server-side fix (for example, adjusting ssl_ecdh_curve or SSLOpenSSLConfCmd), a client switch using a documented setting such as GODEBUG=tlsmlkem=0 or the Firefox policy, or a vendor request when neither side can change. Every decision is recorded with a restore date so the switch-off can be reviewed and reversed.

The decision path from a failed hybrid handshake to a recorded fix or switch-off.

How DeployOpen works on this

DeployOpen approaches the decision to disable post-quantum key agreement for TLS as a configuration and risk question, not a one-line change. We map where hybrid key exchange is offered and where it causes failures, then set up each client and server with a documented, reversible choice and a clear record of what protection is given up.

How we scope

  • We inventory the clients, servers, proxies and runtimes that offer or accept hybrid key exchange.
  • We identify which failing hop, such as an older middlebox or load balancer, is the actual cause.
  • The written scope states which systems are changed, which are left alone, and how long a switch-off would last.

How we build

  • We apply the disable method that matches each product, such as CurvePreferences, ssl_ecdh_curve or KexAlgorithms.
  • We check the resulting configuration with the product's own tools before any traffic is changed.
  • We test a handshake from client to server to confirm the negotiated group and that the failure has cleared.

How we hand over

  • We deliver a record of each setting changed, its file or policy location and the reason it was set.
  • We document the protection given up while key agreement is off, and the date the switch-off should be reviewed.
  • We provide the rollback steps so the setting can be reversed once the blocking device is upgraded.

How we support

  • Ongoing support and upgrades are available as a retainer, including re-enabling key agreement after fixes land.
  • Continuous testing can confirm that re-enabled clients and servers still complete handshakes.
  • Ask any provider to confirm in writing which version, policy or setting a temporary switch-off depends on.

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.