How to enable post-quantum key exchange in Apache HTTP Server

Apache HTTP Server takes its post-quantum hybrid key exchange from the OpenSSL library it is linked against, not from httpd code: OpenSSL 3.5.0 or later provides X25519MLKEM768 and related groups. Enabling it means checking the linked OpenSSL version and, where needed, setting group preferences through SSLOpenSSLConfCmd.

On this page

Does Apache HTTP Server enable post-quantum key exchange, and what do you set?

If you need to turn on hybrid post-quantum key exchange in Apache HTTP Server, the first thing to record is that httpd has no post-quantum code of its own. The hybrid groups come from the OpenSSL version that httpd is built and linked against. OpenSSL 3.5.0, released 2025-04-08 as a long-term support release supported until 2030-04-08, is the first version that provides them, including the TLS hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Any httpd build linked against OpenSSL 3.5 or later therefore gets its post-quantum hybrid key exchange from OpenSSL, and the setting you would change is the group list OpenSSL uses, not an httpd feature flag.

The Apache documentation does not yet describe this. The mod_ssl and SSL how-to pages, checked 2026-12-03, do not mention post-quantum groups, ML-KEM or hybrid key exchange. The 2.4.71 release (2026-11-11) changelog excerpt, which is the current stable release on the download page, has no post-quantum entry. A reader should not conclude from the absence of documentation that httpd cannot negotiate these groups, and should not conclude from a third-party configuration tool that Apache documents them either. Confirm the behavior on your own build.

Platform and security teams recording a key exchange answer should capture three facts: the OpenSSL version the httpd binary is linked against (run httpd -V and openssl version on the actual host, since distribution packages can link differently), the httpd version, and whether any SSLOpenSSLConfCmd directive changes the group list. The mod_ssl documentation lists SSLOpenSSLConfCmd as passing SSL_CONF commands to OpenSSL, with examples for Protocol and SignatureAlgorithms but none for post-quantum groups, so any group setting you add is your own configuration and not a documented Apache option.

To confirm the hybrid group is actually negotiated, test the live handshake from a client that offers it, for example with openssl s_client -groups X25519MLKEM768 against the virtual host, and check the reported group in the output. OpenSSL 3.5's group-list rules matter here: a ? prefix is ignored if the library lacks the group, and listing ?X25519MLKEM768 first without * causes the default list's entry to be treated as a duplicate and ignored. Record the test result with the date, the httpd and OpenSSL versions, and the client used.

Which OpenSSL and httpd versions apply to each step

This table lists each component involved in enabling post-quantum key exchange in Apache HTTP Server, with the version or status the sources give and the date it was checked. Read it row by row to confirm which OpenSSL build and httpd release your server must run before the hybrid groups are available. Confirm the exact versions on your own systems, because the sources only cover what was published up to the check dates.

ComponentWhat the sources saySource and check date
OpenSSL 3.5.0 and laterAdds ML-KEM and the hybrid TLS groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Released 2025-04-08 as a long-term support release.OpenSSL 3.5 release post, checked 2026-12-03
Hybrid groups in OpenSSL 3.5The default group list sends X25519MLKEM768 and X25519 key shares, so httpd gets its hybrid key exchange from the linked OpenSSL library.OpenSSL 3.5 CHANGES, checked 2026-12-03
httpd 2.4.71Listed as the current stable release, released 2026-11-11. Verify downloads with the PGP signature and SHA256 or SHA512 checksums.Apache httpd download page, checked 2026-12-03
httpd 2.4.8 and laterProvides SSLOpenSSLConfCmd, which passes SSL_CONF commands to OpenSSL when built against OpenSSL 1.0.2 or later. The available commands depend on the linked OpenSSL version.mod_ssl docs, checked 2026-12-03
httpd 2.4.68Adds mod_ssl support for OpenSSL 4.0. Confirm your OpenSSL major version before choosing this release.httpd 2.4 CHANGES, checked 2026-12-03
mod_ssl and SSL how-to pagesNo mention of post-quantum cryptography, ML-KEM or hybrid groups. The documented SSLOpenSSLConfCmd examples cover Protocol and SignatureAlgorithms only.mod_ssl docs and SSL how-to, checked 2026-12-03
Third-party example configurationA Mozilla generator issue shows an Apache 2.4.67 build with OpenSSL 3.5.6 emitting a Curves line that includes X25519MLKEM768. This is not Apache documentation.Mozilla ssl-config-generator issue 380, closed 2026-05-17

Which parts of the stack set the key exchange

In Apache HTTP Server, the key exchange is not set by one directive. It comes from the OpenSSL library that httpd is linked against, the mod_ssl settings that pass commands to that library, the group list OpenSSL uses by default, and the separate certificate keys that authenticate the server. Check each one before concluding that post-quantum key exchange is active.

OpenSSL library provides the groups

The post-quantum hybrid groups come from OpenSSL, not from httpd code. OpenSSL 3.5.0, released 2025-04-08 as a long-term support release, added ML-KEM and the hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024. Any httpd build linked against OpenSSL 3.5 or later can offer these groups. Confirm which OpenSSL version your httpd binary is linked against, since the distribution package and the OpenSSL version may differ.

OpenSSL 3.5 release

mod_ssl passes SSL_CONF commands

SSLOpenSSLConfCmd passes SSL_CONF commands straight to OpenSSL, so the commands you can use depend on the OpenSSL version httpd is linked against. This directive is available from httpd 2.4.8 with OpenSSL 1.0.2 or later. The mod_ssl documentation examples show Protocol and SignatureAlgorithms but no post-quantum group examples, so any group setting you add is your own configuration and should be tested against your OpenSSL build.

mod_ssl docs

Default TLS group list

In OpenSSL 3.5, the default group list sends two key shares: X25519MLKEM768 and X25519. This means a build linked against OpenSSL 3.5 or later may already offer a hybrid group without any httpd setting changed. Check the negotiated group on a live connection rather than assuming it from the default. If you override the list, note that a ?X25519MLKEM768 entry placed first without the * prefix is treated as a duplicate of the default and ignored.

OpenSSL groups manual

Certificates and mod_md keys

Key exchange is separate from the keys that authenticate your server. SSLCertificateFile and SSLCertificateKeyFile hold the server's certificate keys, and mod_md generates these over ACME with a default of RSA 2048. The sources checked do not show post-quantum certificate or signature keys in httpd, so a post-quantum key exchange does not change the server's certificate algorithm. Confirm your certificate key type separately and do not read a successful hybrid handshake as post-quantum authentication.

mod_md docs

How the steps differ for a distribution build, a self-built httpd, and an older OpenSSL

When httpd is linked against OpenSSL 3.5 or later, the post-quantum hybrid group X25519MLKEM768 is available without rebuilding httpd. OpenSSL 3.5 is a long-term support release, and its default TLS group list already sends two key shares, X25519MLKEM768 and X25519, so a default configuration may already offer the hybrid group. The key exchange is performed by OpenSSL, not by httpd code, so the work is mostly verification and, if needed, a group list change.

  • Default behavior: Check whether the default group list is in use before changing anything, since the OpenSSL 3.5 defaults already include the hybrid group.
  • Explicit group list: If you set a custom list through SSLOpenSSLConfCmd, a group prefixed with ? is ignored when the implementation lacks it, and a list that places ?X25519MLKEM768 first without * causes the default entry to be treated as a duplicate and ignored.
  • Key share control: A group prefixed with * gets a key share, so use it when you want the hybrid group offered as a first choice.
  • Third-party generator output: A community generator has emitted a Curves line including X25519MLKEM768 for an Apache 2.4.67 build with OpenSSL 3.5.6. This is not Apache documentation, so treat it as a starting point to verify.

After any change, reload httpd and confirm the negotiated group with a client that supports the hybrid group, and check the handshake in your own environment.

How to enable and confirm post-quantum key exchange in httpd

This sequence confirms that the OpenSSL library linked to httpd can offer a hybrid post-quantum key exchange, configures the group list if needed, and then proves with a client handshake that the hybrid group was negotiated. Key exchange is the only part of the handshake covered here, so certificates and signatures are handled separately.

  1. Confirm the linked OpenSSL version

    Run httpd -V on the server and read the line that reports the SSL library version. Then run openssl version on the same host, and check that the two report the same OpenSSL library. httpd uses whatever OpenSSL it was built against, which may differ from the openssl binary on the system path, so a mismatch means the check below would test the wrong library. This step is done when both commands name the same OpenSSL release, and that release is 3.5 or later. OpenSSL 3.5.0 was released on 2025-04-08 and is the first release in this sequence that includes the ML-KEM hybrid groups. If the release is earlier than 3.5, stop here, because the steps below do not apply until the library is upgraded.

  2. Confirm the default group list

    With OpenSSL 3.5 or later, the default TLS group list already sends an X25519MLKEM768 key share alongside an X25519 key share, so no httpd configuration change is required. Check whether SSLOpenSSLConfCmd appears in the configuration files under httpd -t -D DUMP_INCLUDES or in the included files. If no Curves command is present, the default list applies. If one is present, it overrides the default, and you should confirm that the list still contains X25519MLKEM768. To add it explicitly, set SSLOpenSSLConfCmd Curves X25519MLKEM768:X25519 in the server or virtual host scope. The OpenSSL groups manual describes a * prefix that forces a key share for a group; use it only if you need to pin the hybrid group ahead of others. This step is done when the effective configuration either uses the default or contains a Curves line that names X25519MLKEM768, and httpd -t reports Syntax OK.

  3. Reload the server with the new configuration

    Run httpd -t to validate the configuration, then reload with apachectl graceful or your service manager's equivalent, such as systemctl reload httpd on systems that use systemd. A graceful reload keeps existing connections open while new workers read the configuration. Check the error log after the reload for warnings from mod_ssl, particularly any message about an unrecognized SSL_CONF command, since an unknown command here would mean the group setting was not applied. This step is done when the syntax check passes, the reload completes without errors, and the error log shows no new mod_ssl warnings after the reload.

  4. Test with a client that offers the hybrid group

    Connect from a client whose TLS library offers X25519MLKEM768 in its supported groups. A client that does not offer the hybrid group will negotiate a classical group, which tells you nothing about the server. Use a client built on OpenSSL 3.5 or later, or a current browser that is known to offer the hybrid group, and connect to the virtual host you changed. A successful connection at this point shows that the handshake completes with the new configuration, not that the hybrid group was used. Record the client name and version so the test can be repeated. This step is done when the client completes a TLS 1.3 handshake with the server, and the client version and test host are recorded.

  5. Confirm the negotiated group with s_client

    From a host running OpenSSL 3.5 or later, run openssl s_client -connect host:443 -groups X25519MLKEM768:X25519 -servername host and read the output. The line Negotiated TLS1.3 group should name X25519MLKEM768. Repeat the test with -groups X25519 only, to confirm the server still completes handshakes with classical clients. Compare the output with the httpd -V result from step one, because the test is only meaningful if the client and server use the library you intend. This step is done when the negotiated group is X25519MLKEM768 for the hybrid test and a classical group for the classical test.

  6. Capture a handshake to verify the key share

    For a stronger record, capture a handshake on the server or client with a packet tool such as tcpdump or Wireshark, and read the ClientHello and ServerHello messages. In the ClientHello, look for the key_share extension containing X25519MLKEM768, and in the ServerHello check that the selected group matches. Keep the capture with the change record, and note the date, host, OpenSSL version and the httpd -V output. This step is done when the capture shows the hybrid group in the key_share exchange and the record is filed with the change.

Where the hybrid group is negotiated during the TLS handshake

The diagram starts with the client sending a ClientHello that lists its supported groups and key shares. httpd, through mod_ssl, passes that offer to the linked OpenSSL library, which selects a group from the server's configured list and returns the matching key share. Mod_ssl then finishes the handshake with that negotiated group. The OpenSSL library is the component that supplies the hybrid group such as X25519MLKEM768, so the version of OpenSSL linked into httpd decides whether the option exists at all. When checking, confirm the linked OpenSSL version and the group that appears in the handshake.

Hybrid group selection flows from the client offer through the linked OpenSSL library.

What breaks when the group list is set incorrectly

A bad group list in Apache HTTP Server usually fails without an error. The OpenSSL 3.5 manual for SSL_CTX_set1_groups_list sets the rules that matter here: a group name prefixed with * gets a key share, and a ? prefix means the group is ignored if the linked implementation lacks it. Because of the second rule, a hybrid group written as ?X25519MLKEM768 is only harmless when OpenSSL 3.5 or later is the library in use. Engineers should not read a successful restart as proof that the hybrid group is active, because the server starts whether or not the group is recognized.

The more serious trap is ordering. The same manual says that if ?X25519MLKEM768 appears first in the list without *, the default list's entry for that group is treated as a duplicate and ignored. The result is that the post-quantum hybrid group no longer leads the negotiation, even though the list looks correct on read. Writing *X25519MLKEM768 first, or confirming the resulting order against the OpenSSL version actually linked into httpd, is the check to run before relying on the setting. The directive that carries this configuration is SSLOpenSSLConfCmd, and the exact commands it accepts depend on the linked OpenSSL version, so the Apache documentation alone does not settle which group names are valid.

Keep SSLCipherSuite separate in your head and in your tests. The mod_ssl documentation covers cipher strings and TLS 1.3 cipher suites, but it does not control key exchange groups. A group setting can therefore fail silently while every cipher still negotiates normally, and a cipher-only test will pass. Confirm the negotiated group with a client that reports it, such as openssl s_client against the running server, and record the OpenSSL version and the exact group list used, since a configuration that works on one linked build may behave differently on another.

What the Apache project has not published about post-quantum groups

The mod_ssl, SSL how-to, SSL intro and download pages checked on 2026-12-03 contain no post-quantum key exchange documentation, roadmap or certificate guidance. Each gap below is a question to put to the Apache project or to the distribution that packages your httpd build, because the answer decides which settings you can rely on.

No httpd documentation for post-quantum groups

The mod_ssl and SSL intro pages checked on 2026-12-03 do not mention ML-KEM, hybrid key exchange groups or X25519MLKEM768. Hybrid key exchange in an httpd build comes from the linked OpenSSL, so the operative question is which group names your build's OpenSSL accepts through SSLOpenSSLConfCmd. Ask the Apache project whether it intends to document supported group names, and ask your distribution which OpenSSL version and group names its httpd package was built with.

mod_ssl docs

No published roadmap for post-quantum support

The download and documentation pages checked on 2026-12-03 contain no roadmap statement covering post-quantum key exchange, signatures or certificates. Without one, a planning team cannot tell whether a future 2.4 release will change group handling, or whether the work falls to the OpenSSL version you link. Ask the project for a dated roadmap and for its policy on changes to TLS defaults in point releases.

Apache download page

No CNSA 2.0 statement

The project has not stated whether httpd configurations or builds meet, or are planned to meet, the CNSA 2.0 suite. Teams with a national security system contract need that answer in writing, because it determines which algorithms and parameter sets may be configured. Ask the project for a CNSA 2.0 position, and ask your distribution whether its build exposes the required algorithms.

mod_ssl docs

No post-quantum certificate guidance

The mod_ssl, SSL how-to and mod_md pages describe RSA, DSA and ECC certificates and keys, and they do not describe post-quantum signature or certificate types. Certificates for SSLCertificateFile and mod_md MDPrivateKeys are the part of the stack this affects most. Ask the project which key types it expects to support for server certificates, and ask your certificate authority which post-quantum certificate types it can issue before you plan a rollout.

SSL how-to

The SSLFIPS directive text is the only FIPS statement

The only FIPS statement the project has published is the SSLFIPS directive text, which says mod_ssl is not validated and may be described as using a FIPS 140-2 validated module only when assembled and operated under the SSL library's Security Policy. The project has not said how SSLFIPS interacts with post-quantum groups or with OpenSSL 3.5 algorithms. Ask the project whether it will document that interaction, and ask your FIPS-validated OpenSSL provider which post-quantum algorithms their module covers.

mod_ssl docs

Risks: silent fallback, unsupported versions and middlebox compatibility

The most important risk is that enabling a hybrid group does not guarantee a hybrid handshake. Hybrid key exchange in Apache HTTP Server comes from the OpenSSL library it is linked against, not from httpd code. The sources checked on 2026-12-03 tie the default post-quantum group to OpenSSL 3.5.0 and later, where X25519MLKEM768 is offered by default. A build linked against an OpenSSL release earlier than 3.5 will not offer the hybrid groups at all, so no SSLOpenSSLConfCmd line can enable them. Confirm the OpenSSL version your binary is linked against (for example with httpd -V and ldd or otool -L on the httpd binary), not only the version installed on the host, because a distribution package may link a different library.

A second risk is silent fallback. Per the OpenSSL 3.5 group list manual, a group name prefixed with ? is ignored if the implementation lacks it, and a list that places ?X25519MLKEM768 first without the * prefix causes the default list's entry to be treated as a duplicate and ignored. A misspelled group name or an unsupported name therefore does not produce a startup error in the sources checked, and the handshake continues with classical groups. Test the negotiated group after every change, using a client that reports the key exchange group, rather than assuming the configuration line took effect. The Mozilla ssl-config-generator issue 380 shows a generated Curves line containing X25519MLKEM768 for an Apache 2.4.67 build with OpenSSL 3.5.6. That is a third-party tool's output, not Apache documentation, and the project's own pages checked on 2026-12-03 do not publish a post-quantum example, so treat generated lines as candidates to verify.

Before changing settings in production, test the compatibility of clients, libraries and middleboxes such as TLS-inspecting firewalls and load balancers that sit between clients and the server. Larger post-quantum key shares can change handshake behavior for devices that do not expect them. That compatibility question is covered on a sibling page, and this section does not repeat it. Use that page as the checklist, and run the test on a staging virtual host with an SSLProtocol and SSLCipherSuite setting that you can roll back quickly. Record the httpd version, the OpenSSL version and the exact group list used, so the result can be repeated during an audit.

Questions engineers ask about enabling post-quantum key exchange in httpd

Is Apache HTTP Server quantum safe?

The Apache project has not published a statement calling httpd quantum safe, and its mod_ssl and SSL how-to documentation, checked on 2026-12-03, contains no mention of post-quantum cryptography. Post-quantum key exchange in httpd is not provided by httpd code directly. It is available when httpd is built against OpenSSL 3.5 or later, which provides the hybrid groups such as X25519MLKEM768. Server certificates and client authentication keys are a separate question, because the documents checked do not describe post-quantum signature or certificate support in httpd. Confirm the status of each function you use against the release and OpenSSL version you run.

Which OpenSSL version do I need for post-quantum key exchange in httpd?

The supplied sources point to OpenSSL 3.5.0, released 2025-04-08 as a long-term support release supported until 2030-04-08. That release added ML-KEM and the TLS hybrid groups X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and its default group list sends an X25519MLKEM768 key share first. An httpd build linked against OpenSSL 3.5 or later takes its hybrid key exchange from OpenSSL, not from httpd code. Check the OpenSSL version your httpd binary is linked against, since a distribution package can use a different build than the one you expect.

Does enabling post-quantum key exchange in httpd cost more than the upgrade?

The cost depends on what has to change, and the sources do not give a price. The main cost components are the time to rebuild or upgrade httpd against OpenSSL 3.5 or later, which may be a one-time task, and the time to test clients, middleboxes and load balancers that terminate or inspect the handshake. Recurring costs come from keeping the OpenSSL and httpd packages patched and from retesting after each release. Some costs may also come from TLS inspection, monitoring or appliances placed in front of httpd. Ask your team or any outside provider to split the quote into build and upgrade work, compatibility testing, configuration changes, and ongoing maintenance, and to state which of these recur.

How do I confirm the hybrid key exchange was negotiated?

Check the handshake from a client that offers the hybrid group, rather than only reading the configuration. Use an OpenSSL 3.5 or later client to connect and inspect the negotiated group, for example by running openssl s_client -connect host:443 -groups X25519MLKEM768 and reading the reported group in the output. Also confirm the server's linked OpenSSL version, since the hybrid group is only available when httpd is built against 3.5 or later. The SSLOpenSSLConfCmd directive can pass SSL_CONF commands to OpenSSL, but the documented examples do not include post-quantum groups, so any group line you add should be checked against the OpenSSL version you run. Test with the clients your users actually run, because not every client offers the hybrid group.

Can my team enable post-quantum key exchange in httpd without outside help?

Many teams can do this in-house if they already build or manage httpd and OpenSSL, because the change is an OpenSSL version change and a handshake test rather than a new product. The harder parts are rebuilding httpd against OpenSSL 3.5 or later, checking that the hybrid group is negotiated with your real clients, and testing the middleboxes and load balancers in front of the server. If your team does not run those tests regularly, outside help can be useful. DeployOpen plans, implements, hardens, upgrades and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from the written scope.

What should I ask the vendor or project before enabling post-quantum key exchange in httpd?

Ask which httpd release and OpenSSL version are supported for the hybrid groups, and whether the project has published a roadmap or support statement for post-quantum cryptography, since the sources checked contain none. Ask whether the project plans support for post-quantum certificates or signatures in mod_ssl and mod_md, as these are not described in the documents checked. Ask which packaged builds of httpd link against OpenSSL 3.5 or later, and how long the release is supported. Ask whether any SSLFIPS or FIPS-related claims apply to the post-quantum groups, since the SSLFIPS directive text is the only FIPS statement the documentation gives. Put these questions in writing and record the answers with their dates.

How DeployOpen works on this

DeployOpen plans and tests changes to Apache HTTP Server's hybrid key exchange in your own environment before anything reaches production. We start from your current mod_ssl, OpenSSL and client configuration, then write down the settings, test steps and checks needed to confirm the change took effect.

How we scope

  • Confirm the httpd and OpenSSL versions in use, since hybrid groups come from the linked OpenSSL, not from httpd.
  • Record which virtual hosts, SSLProtocol and SSLCipherSuite settings apply, and which clients must be supported.
  • Agree the written, fixed scope, deliverables and any ongoing retainer support before work starts.

How we build

  • Set up a test instance with the target OpenSSL build and apply SSLOpenSSLConfCmd group settings for review.
  • Test handshakes with the clients you rely on, and check that the negotiated group matches what was configured.
  • Document each change, its rollback step and any client or middlebox that fails to complete the handshake.

How we hand over

  • Deliver the tested configuration, the exact versions it was verified against, and the commands used to confirm it.
  • Provide written test results, including which clients and libraries completed a hybrid handshake and which did not.
  • Walk your operators through the change, the checks to repeat after each upgrade, and what to confirm with Apache.

How we support

  • Retest the configuration when httpd or OpenSSL is upgraded, since group defaults can change between releases.
  • Offer continuous testing through a retainer, covering new clients and changes in your certificate or proxy setup.
  • Track published Apache and OpenSSL notices and flag any that affect the settings you have deployed.

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.