Fix post-quantum TLS handshake failures on Apache HTTP Server

When clients offer hybrid post-quantum key exchange and Apache connections stall or reset, the server's mod_ssl and OpenSSL versions and group settings decide whether the handshake completes. This page covers how to check and fix that on your own Apache installation.

On this page

Why Apache connections stall when clients offer hybrid key exchange

On Apache HTTP Server, the failure happens in the TLS handshake that mod_ssl and the OpenSSL library perform together, so the operator who runs httpd is the one who has to act. When a client offers a hybrid key exchange group in its ClientHello and the server cannot complete the handshake with it, the connection stalls or resets before any application data is exchanged. The connection is not left unencrypted because it fails before data flows: no HTTP request or response is carried over the failed session. For production traffic the impact is that affected clients cannot establish sessions at all, so the urgency depends on how many of your clients offer hybrid groups and whether those clients have a fallback. Check your own traffic and logs to see whether the failures are appearing before you decide how quickly to act.

In most cases the cause is either an older OpenSSL build that does not know the hybrid group, or a restricted group list in the server configuration that leaves no overlap with what the client offers. Run httpd -V to see the build parameters and openssl version against the library mod_ssl actually loads, and confirm the version supports the group you need. Then run openssl list -tls1_3 -tls-groups to see which TLS 1.3 group names the installed OpenSSL accepts. Use SSLOpenSSLConfCmd Groups in the server or virtual host context to set the group list, and check the names against the list your OpenSSL prints. The directive is available in httpd 2.4.8 and later with OpenSSL 1.0.2 or later, and the commands it accepts depend on the OpenSSL version in use.

Who has to act on an Apache server and who can only report the problem

A stalled or reset handshake can have three different owners: the people who run httpd and its OpenSSL build, the people whose browser or tool offers the hybrid group, and the vendor or hosting provider that may run Apache for you. Identify which role you hold before you change anything, because only some of these owners can make a fix.

The server operator owns httpd and OpenSSL

If you run Apache yourself, you control the httpd binary, the mod_ssl module, and the OpenSSL build that mod_ssl links against. The OpenSSL version decides which group names SSLOpenSSLConfCmd accepts, so the first thing to check is whether your build is OpenSSL 3.5 or later. Use httpd -V to confirm the build parameters and openssl list -tls1_3 -tls-groups to see the group names the installed OpenSSL accepts.

Apache mod_ssl docs

The client user controls the offer

The hybrid group is offered by the client, not the server. A browser, command-line tool, or application decides whether its ClientHello includes a hybrid group such as X25519MLKEM768. If you are a user hitting failures, you can report the client version and whether a policy disables hybrid key exchange, but you cannot change how Apache negotiates. Server operators can see what a client offered only through the Apache trunk variable SSL_CLIENTHELLO_GROUPS when SSLClientHelloVars is on.

The hosting provider may own the settings

When Apache runs on a managed platform, the provider may decide the httpd version, the OpenSSL build, and whether you can set SSLOpenSSLConfCmd at all. A hosted-service customer usually cannot change the OpenSSL build or the mod_ssl configuration beyond what the provider exposes. The sources listed here do not describe how any particular hosting provider configures Apache, so ask the provider which httpd and OpenSSL versions run your site and whether custom SSL directives are allowed.

Confirm the owner before changing config

Before editing any file, confirm who holds each control: the httpd binary, the OpenSSL library, the server or virtual host config, and the client that sends the offer. A change made by the wrong owner can break other clients or be overwritten by a provider update. Record the owner for each item in your change ticket so that whoever runs the post-change test knows which team to contact if the handshake still fails.

Report the failure with evidence

If you cannot change the server, report the failure with what the owner needs to act: the client name and version, the hostname, the time of the failed connection, and the output of openssl s_client against the listener. The s_client output shows the negotiated key exchange group, which tells the owner whether the server or the client side is the cause. Send this to the server owner or the hosting provider rather than guessing at configuration changes on a system you do not control.

How to check which key exchange group Apache negotiates

This sequence confirms which Apache, mod_ssl and OpenSSL versions are running, which hybrid key exchange groups the installed OpenSSL accepts, and which group a real handshake with the Apache listener actually negotiates. Each check produces output you can record before and after any change.

  1. Identify the Apache httpd version

    Run httpd -v on the server that terminates TLS for the affected site. The output prints the Apache HTTP Server version, which tells you which mod_ssl directives and LogLevel behavior apply to your installation. Record the version string before making any change, so you can compare results later. If the binary is installed under a non-standard path, use the full path to httpd, which your distribution or build documentation should list.

  2. Read build parameters and loaded modules

    Run httpd -V to print the version along with the build parameters, including the SSL library the binary was compiled against. Then run httpd -M to dump the loaded static and shared modules and confirm that ssl_module (mod_ssl) is present. If mod_ssl is missing, TLS is not terminated by Apache on this listener and this page's fixes do not apply. Record the OpenSSL version reported in httpd -V, since mod_ssl uses that library at runtime.

  3. List the groups the installed OpenSSL accepts

    Run openssl list -tls1_3 -tls-groups against the OpenSSL command-line tool on the same host. The output lists the TLS 1.3 group names this OpenSSL build accepts, which is the set an SSLOpenSSLConfCmd Groups value can reference. Run openssl list -tls1_2 -tls-groups as well if clients may negotiate TLS 1.2. Note that the openssl binary on the PATH may differ from the library mod_ssl loads, so confirm the versions match the ones you recorded in the previous step.

  4. Test the Apache listener with s_client

    Run openssl s_client -connect against the Apache listener's host and port, adding the server name with -servername if the site uses SNI. Use -tls1_3 to force a TLS 1.3 handshake, since group negotiation applies there. The connection will print the handshake details. If the client connects successfully, the handshake completed; if it stalls or resets, record the exact output and the point where it stopped, which you will compare after changes.

  5. Read the negotiated group in the output

    In the s_client output, look for the line beginning Negotiated TLS1.3 group: followed by the group name, or a Peer Temp Key: line that shows the key exchange in use. OpenSSL prints the first form when it cannot read the peer temporary key, and the second form otherwise. The group name tells you which key exchange Apache actually selected for that connection. Record the group name and the full line. If the line is absent, the handshake did not finish, so return to the previous step and check the failure output.

  6. Raise mod_ssl logging to trace3

    Set LogLevel info ssl:trace3 in the Apache configuration, either in the server context or the virtual host for the affected site, then run httpd -t to confirm the syntax test returns Syntax OK before reloading. The trace3 level writes handshake messages such as openssl: Handshake: start into the error log. Reload Apache, repeat the s_client test, and read the error log to see where the handshake begins and where it ends. Return LogLevel to its previous value afterward, since trace output is verbose.

  7. Compare results before and after changes

    Repeat the s_client test and the trace3 log read after each configuration change, and compare the negotiated group against the groups listed in the earlier step. If the negotiated group now matches the configured Groups value and the connection completes, the change has taken effect. If the output is unchanged, confirm the configuration was loaded by checking the reload result and the configuration file that Apache reads, which httpd -V reports as the server configuration path. Keep the before and after outputs together as your verification record.

Causes of Apache handshake failures with hybrid groups and the fix for each

This table lists the four causes the sources support for Apache handshake failures when a client offers X25519MLKEM768, with how to recognize each and the fix. Read each row against the OpenSSL version the Apache build uses, since the sources tie several causes to specific OpenSSL releases. Confirm the group your server negotiates with the OpenSSL s_client output before and after each change.

CauseHow to recognize itFix
OpenSSL build too old to offer the hybrid groupThe group is missing from openssl list -tls1_3 -tls-groups on the host running Apache, or the build predates OpenSSL 3.5, where X25519MLKEM768 appears in the default list.Upgrade the OpenSSL library that mod_ssl is linked against to a release that supports X25519MLKEM768, then restart httpd and recheck the group list.
Groups configuration omits or misorders X25519MLKEM768The server Groups or Curves setting, applied through SSLOpenSSLConfCmd, leaves out X25519MLKEM768 or places it after groups the client does not prefer, and s_client shows a classical group instead.Add X25519MLKEM768 to the list in the preferred position, using a colon separated list, then run httpd -t and reload.
Restriction set through SSLOpenSSLConfCmdA configured command such as Protocol or a groups restriction in SSLOpenSSLConfCmd narrows the negotiable groups, and removing it changes the negotiated group in s_client.Review each SSLOpenSSLConfCmd line in server and virtual host context, remove or widen the restriction, and confirm the result with httpd -t.
OpenSSL 3.5.6 DEFAULT keyword issue (CVE-2026-2673)The server uses the DEFAULT keyword in its key exchange group configuration on OpenSSL 3.5 or 3.6, and a TLS 1.3 client fails to get its preferred group. The issue is fixed in OpenSSL 3.5.6 and is not listed for OpenSSL 3.4, 3.3, 3.0, 1.1.1 or 1.0.2.Upgrade to OpenSSL 3.5.6 or a later release that includes the fix, or replace DEFAULT with an explicit group list, then verify with s_client.

What to change in mod_ssl and OpenSSL to restore the handshake

This sequence brings OpenSSL and mod_ssl to versions that support the hybrid group, then sets the group order so Apache offers X25519MLKEM768 first while keeping a fallback list. Once httpd -t reports Syntax OK and httpd reloads, clients that offer the hybrid group can complete the handshake again.

  1. Check the installed OpenSSL and httpd versions

    The server administrator runs httpd -V to see the httpd version and the OpenSSL version that mod_ssl was built against. Then they run openssl version to confirm the OpenSSL library on the host. Mismatches between these two outputs are a common cause of a handshake that still fails after an upgrade. Confirm that httpd is 2.4.8 or later, because SSLOpenSSLConfCmd is not available in earlier releases, and that the OpenSSL version is 1.0.2 or later. Record both version strings before making any change.

  2. Upgrade OpenSSL to a current release

    The administrator upgrades OpenSSL to a version the vendor names as current for the group support in question. If the server runs OpenSSL 3.5 or 3.6 and uses the DEFAULT keyword in its group configuration, the OpenSSL 3.5.6 release (7 April 2026) fixed CVE-2026-2673, in which a TLS 1.3 server may fail to negotiate its preferred group. OpenSSL rated the issue Low. Earlier 3.5 and 3.6 builds are affected, while 3.4, 3.3, 3.0, 1.1.1 and 1.0.2 are not listed as affected. Confirm the installed version with openssl version after the upgrade, and check the OpenSSL 3.5 release notes for the exact package to use on the host platform.

  3. Rebuild or reinstall mod_ssl against the new OpenSSL

    mod_ssl is linked against the OpenSSL library present at build time, so after the OpenSSL upgrade the administrator must rebuild httpd or reinstall the distribution package that provides mod_ssl against the new library. This is the step most often skipped. Run httpd -V again and confirm that the reported OpenSSL version now matches the upgraded library. If the versions still differ, the server is still using the old mod_ssl build, and the directive changes in the next steps will not take effect as expected.

  4. List the group names the installed OpenSSL accepts

    Before setting the group order, the administrator runs openssl list -tls1_3 -tls-groups to see the TLS 1.3 group names this OpenSSL build accepts, and openssl list -tls1_2 -tls-groups for TLS 1.2. Group names that do not appear in this output cannot be used in SSLOpenSSLConfCmd without causing a parse failure. Confirm that X25519MLKEM768 appears in the TLS 1.3 list. Keep this output so the names used in the next step match what the library reports.

  5. Set the Groups command with X25519MLKEM768 first

    The administrator adds SSLOpenSSLConfCmd Groups to the server or virtual host configuration. The value is a colon separated list in order of preference, and the first group listed is also the key share a client sends in a TLS 1.3 ClientHello. Place X25519MLKEM768 first, followed by a fallback list of classical groups such as X25519 and P-256, so that clients which do not support the hybrid group still complete the handshake. A leading ? before a group name makes an unavailable name ignored instead of failing the parse. Group names are case-insensitive from OpenSSL 3.5 onward. Confirm the syntax against the Apache 2.4 mod_ssl documentation, which notes that the accepted commands depend on the OpenSSL version in use.

  6. Validate the configuration with httpd -t

    Before reloading, the administrator runs httpd -t. This tests the configuration syntax only and does not change the running server. The expected result is Syntax OK, with exit code 0. If the output reports an error on the SSLOpenSSLConfCmd line, the most likely causes are an unavailable group name, a command that the installed OpenSSL version does not accept, or a configuration context that does not support the directive. Correct the error, then run httpd -t again until it reports Syntax OK.

  7. Reload httpd and confirm the negotiated group

    The administrator reloads httpd with a graceful restart so that existing connections are not dropped. Then they test a connection with openssl s_client against the Apache listener. For a TLS 1.3 connection, the output shows a line naming the negotiated group, or a Peer Temp Key line when the peer key can be read. Confirm that X25519MLKEM768 appears when the test client offers it. If the handshake completes with a classical group, the client may not have offered the hybrid group, so check the client configuration before assuming the server change failed.

How the fix differs for packaged, container and source builds of Apache

Packaged builds of Apache HTTP Server from a Linux distribution or other operating system vendor usually link mod_ssl to the system OpenSSL library. The OpenSSL version you get therefore follows the operating system's package updates, not a version you chose. Check the linked library with httpd -V and confirm the OpenSSL line in its output reports a version that accepts the group names you need. Because the vendor controls the build, you normally fix the problem by updating packages rather than recompiling.

  • Check the version line: Run httpd -V and read the OpenSSL entry in its output, which shows the library version httpd was built against.
  • Confirm mod_ssl is loaded: Run httpd -M and check that ssl_module appears, since the SSLOpenSSLConfCmd directive only exists when mod_ssl is loaded.
  • Check the group list the library accepts: Run openssl list -tls1_3 -tls-groups on the same host to see which TLS 1.3 group names the system OpenSSL accepts.
  • Update through the vendor channel: If the OpenSSL version is too old for the group you need, apply the distribution's OpenSSL and httpd security updates rather than replacing files by hand.
  • Check the version after the update: Re-run httpd -V after updates, because a running server keeps its old library until it restarts.

After any update, confirm with httpd -t that the configuration still parses, and restart the service so the new library is loaded.

Which fix applies depends on what the negotiated group shows

Start with a stalled or reset hybrid handshake, then check the httpd and OpenSSL versions with httpd -V and openssl version. Next, run openssl s_client against the Apache listener and read the "Negotiated TLS1.3 group" or "Peer Temp Key" line to see which key exchange group was chosen. If the OpenSSL build is too old or the group is missing, upgrade OpenSSL. If the group is not offered, correct the SSLOpenSSLConfCmd Groups setting. If Apache runs on a managed host where you cannot change the build or configuration, contact the vendor.

Decision path from a stalled handshake to the matching fix and confirmation step.

How to confirm that the hybrid handshake completes after the change

After you change the Apache HTTP Server configuration and reload, confirm that a hybrid key exchange now completes by testing the listener directly. Start by checking the configuration with httpd -t, which should print Syntax OK and return 0. Then run httpd -V to confirm the version and build parameters of the binary that is actually serving traffic, since the groups you can use depend on the OpenSSL version mod_ssl was built with. Your setting for SSLOpenSSLConfCmd only works on httpd 2.4.8 or later with OpenSSL 1.0.2 or later, so check both values against what the installed binary reports.

Next, run openssl s_client against the listener, for example with -connect pointing at your server name and port 443, and look at the output. For a TLS 1.3 connection, a successful hybrid negotiation shows a line that reads "Negotiated TLS1.3 group" followed by the name of the group you expect, such as X25519MLKEM768 if that is the group you configured. If the peer temporary key can be read, s_client instead prints a "Peer Temp Key" line, which also shows the negotiated group. Compare that line against the group names your local OpenSSL accepts, which you can list with openssl list -tls1_3 -tls-groups. Use a client that offers the hybrid group so the test reflects the change. The sources do not say which group the server will choose if several are offered, so confirm that behavior with your own test.

After the reload, watch the error log at the ssl level. Set LogLevel info ssl:warn for a quieter view, or raise the mod_ssl level temporarily to trace3 if you need handshake detail, and look for handshake failures that appear when a client connects. A clean reload with no new handshake errors and a negotiated hybrid group is the success state. Keep watching older clients after the change, because they will not offer the hybrid group and must still complete a handshake with a classical group. Test at least one such client before you treat the change as finished.

What can break after changing the Groups configuration

Changing the Groups list in Apache changes which key exchange groups the server accepts and which one it predicts in a TLS 1.3 ClientHello. Each of the cards below is a way that change can cause a handshake to fail for some clients, so review them before rollout.

Older clients without the hybrid group

Clients that predate hybrid key exchange do not offer X25519MLKEM768 at all. If you remove classical groups such as X25519 or P-256 from the list, those clients have nothing in common with the server and the handshake fails. Keep the classical groups in the list so older clients can still negotiate. Before rollout, check your access logs or test with a client from the oldest browser or runtime you still serve, and confirm it completes a handshake.

Apache mod_ssl docs

Automation and CI runners pinned to a group list

Deployment pipelines, health checks and CI runners that were written against an older group list can start failing once the server's list changes. A runner that asks for a group the server no longer offers will get a handshake error, and the failure may appear only in automated jobs rather than in manual testing. Search your pipelines and monitoring scripts for pinned group names, and run them against a staging listener before the change goes live.

Keeping a valid fallback group

The first group in the list drives the key share a client sends in a TLS 1.3 ClientHello, and later groups are the fallback when the first is not accepted. Leaving a valid classical group at the end of the list gives clients a route to a handshake when the preferred hybrid group is rejected. Confirm the list still ends with at least one group your oldest supported clients accept, and check the result with openssl s_client against the listener.

OpenSSL SSL_CONF_cmd docs

FIPS and compliance mode restrictions

Where OpenSSL runs in FIPS or another compliance mode, the set of groups the library will negotiate may be narrower than the default list. A group name that works on a standard build can be refused in that mode, and the server may then fail to start or fail handshakes. Confirm with your compliance owner and your OpenSSL build which groups are permitted, then test the configuration on a build with the same mode enabled. The sources listed on this page do not describe each compliance mode's requirements, so check those with the mode's own documentation.

Testing before rollout

Every change to the Groups list should be tested on a staging listener before it reaches production, using clients that represent your actual traffic. Run httpd -t to confirm the syntax, then connect with openssl s_client and check the negotiated group. Watch the error log at a raised LogLevel for ssl messages after rollout, and keep the previous configuration ready to restore.

Apache core LogLevel docs

When to get outside help with an Apache post-quantum handshake fix

Get outside help when the fix cannot be made by your own team, or when the change has to be shown to someone else. The directive covered on this page, SSLOpenSSLConfCmd, only works if the OpenSSL that mod_ssl is built against accepts the group names you set, and the commands accepted depend on that OpenSSL version. If you cannot upgrade OpenSSL or mod_ssl on the host, or cannot rebuild httpd against a newer OpenSSL, the group configuration on this page will not change the behavior you see. In that case, a specialist should plan the upgrade path, which may mean a new build, a new base image or a new host, before any configuration is touched.

A second trigger is a managed server. If a hosting provider, a managed platform or a shared server controls the httpd build, the OpenSSL version and the modules that load, you may be able to edit the configuration but not the software that reads it. Ask the provider in writing which OpenSSL version and httpd version your listener uses, and whether they accept a request to offer a particular group. Run httpd -V and openssl version on the host and record the output, since those two answers decide whether this fix is possible at all. Also get outside help if the same failure appears across many hosts or services, because that points to a shared build or shared policy rather than one misconfigured server.

Questions operators ask after seeing Apache handshake failures

Is the connection still encrypted when the TLS handshake fails?

A handshake that fails never completes, so no application data is sent over that connection, and the client does not get a working encrypted session from that attempt. The failure is not a fallback to plain text. Clients that stall or reset usually retry, time out, or downgrade their offer on their own, depending on the browser or library. Check what your clients do after the reset before assuming how they behave. The Apache error log records the failed attempt, and the ssl module logs at the warn level by default, so you can see the failures without raising verbosity.

Is a TLS handshake failure on Apache urgent?

It depends on how many clients are affected and whether the failures reach real users. A small share of failures from clients that offer hybrid key exchange can be tolerable while you plan the change, but a rising failure rate on a service people depend on is a reason to act soon. The facts on this page do not give a deadline for any specific Apache release or client version, so confirm current guidance with your vendors and your compliance team. Measure how many connections fail, from which client types, and whether the failures started after a client update.

Can I silence the handshake failure message in the Apache log?

You can lower the mod_ssl log level with LogLevel info ssl:warn, but that only hides the symptom and leaves the failing key exchange in place. Use it, if at all, as a temporary step while you change the server configuration, and remove it once the fix is confirmed. Do not lower the level to hide a failure you have not yet diagnosed. Keep the warning level visible in your monitoring so you still see failures during the rollout.

Why are these handshake failures showing up now?

Clients that offer hybrid post-quantum key exchange send larger ClientHello messages and list key exchange groups that older servers may not recognize. Once a browser, library or runtime starts offering a hybrid group, a server that cannot handle that offer can fail the handshake. The Apache error log will show the failure, but it will not say which group the client offered. To see that, check the groups your OpenSSL build accepts with openssl list -tls1_3 -tls-groups, then run openssl s_client against your listener and read the negotiated group line. Confirm which client versions you have seen failing before deciding the cause.

What should I do if I cannot upgrade OpenSSL or Apache right away?

Start by confirming your current versions with httpd -V, which prints the Apache version and build parameters. If the OpenSSL build cannot accept the group you need, you may be limited to restricting which groups the server offers through SSLOpenSSLConfCmd, which requires httpd 2.4.8 or later with OpenSSL 1.0.2 or later. Test any change with httpd -t before reloading. Treat these settings as a stopgap, and plan the upgrade with your platform owner. Keep a record of which clients still fail so the upgrade work is scoped to real traffic.

Should I hire outside help to fix Apache handshake failures?

Outside help makes sense when the failures touch production traffic, when several services or load balancers sit in front of Apache, or when your team lacks time to test configuration changes against real clients. DeployOpen plans, implements and hardens self-hosted platforms in your own infrastructure, and can run the post-change verification for these handshake checks under a written, fixed scope. Ask any provider for the scope, deliverables and timeline in writing before work starts, and confirm what is in and out of scope for your environment.

How do I confirm the Apache fix worked after the change?

Reload Apache after httpd -t returns Syntax OK, then repeat the client test that failed. Run openssl s_client against the listener and check that the negotiated group matches what you configured. Then watch the Apache error log at the default warn level for new ssl failures over a period that covers normal traffic, including your slower or older clients. A clean test from one client is not enough, so record the client types you tested and the results so the fix can be reviewed later.

How DeployOpen helps plan, upgrade and verify an Apache HTTP Server fix

DeployOpen approaches post-quantum TLS handshake failures on Apache HTTP Server by first confirming which client, OpenSSL version and mod_ssl setting produces the stall or reset, then changing the listener in a controlled way. Each step is written down so your security and operations teams can review the configuration and the test evidence.

How we scope

  • We record the httpd, mod_ssl and OpenSSL versions in use, using httpd -V and the OpenSSL version on the host.
  • We agree in writing which virtual hosts, listeners and client populations are in scope before any change is made.
  • We confirm with your team whether any clients need to keep working without hybrid key exchange during the change window.

How we build

  • We test the SSLOpenSSLConfCmd Groups setting in a staging listener, checking syntax with httpd -t before reload.
  • We confirm the negotiated group with openssl s_client against the listener and compare it with the expected key share.
  • We raise LogLevel for mod_ssl temporarily to capture handshake messages, then return logging to the agreed level.

How we hand over

  • We deliver the final configuration, the reviewed change record and the test commands used to confirm each listener.
  • We document the OpenSSL version constraints, including the CVE-2026-2673 note for OpenSSL 3.5 and 3.6 when DEFAULT is used.
  • We hand over a retest checklist your team can run after OpenSSL or Apache upgrades, so the fix can be verified again.

How we support

  • Ongoing support and continuous testing are available as a retainer, covering upgrades to httpd and OpenSSL.
  • Retainer scope, including how often listeners are retested after each upgrade, is agreed in writing before work starts.
  • Engagements are fixed-scope, so deliverables and timelines are confirmed in writing; a quote follows from that written scope.

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.