Quantum-secure Apache httpd: SSLOpenSSLConfCmd Groups

Set the hybrid group list on Apache, keep a classical fallback, and verify the negotiated group from a chosen agent.

Quick answer: Apache passes SSLOpenSSLConfCmd Groups to OpenSSL. With OpenSSL 3.5+ and X25519MLKEM768 first, the tested connection can negotiate hybrid TLS.

Apache httpd can pass a hybrid group list to OpenSSL with SSLOpenSSLConfCmd Groups. The configuration is short; the discipline is proving the negotiated group and not confusing it with the certificate.

What this guide covers

It covers the TLS key exchange for Apache httpd on OpenSSL 3.5+. It does not cover data at rest, code signing or QKD. A hybrid key exchange does not make the certificate post-quantum.

Check the module and the library

apachectl -M 2>/dev/null | grep ssl
apachectl -V 2>&1 | grep -i ssl
ldd "$(command -v apache2 || command -v httpd)" | grep -E 'ssl|crypto'
openssl version -a

mod_ssl must be loaded. The linked OpenSSL must be 3.5 or later for the ML-KEM hybrid groups. If Apache links an older library, the directive will not add the capability.

Configure the group

A tested pattern:

SSLProtocol -all +TLSv1.2 +TLSv1.3
SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1

Place it in the virtual host or the server configuration that terminates TLS. Keep TLS 1.2 if you still need it; removing it is a separate compatibility decision.

Validate and reload:

apachectl configtest
systemctl reload apache2   # or httpd

Verify the negotiated group

From an OpenSSL 3.5+ client:

openssl s_client \
  -connect example.com:443 \
  -servername example.com \
  -tls1_3 \
  -groups X25519MLKEM768 \
  </dev/null 2>/dev/null | grep -i "Negotiated TLS1.3 group"

Expected:

Negotiated TLS1.3 group: X25519MLKEM768

Test the hostname that terminates TLS. If a load balancer or CDN sits in front, test the origin separately; the public hostname may be answering from the edge.

Verify with Ready for Quantum

CheckWhat it answers
quantumDid this connection negotiate a PQ key exchange?
quantumcertDoes the certificate have the tested PQ property?
httpsIs trust and expiry acceptable?
OpenSSL via the Security expertWhich protocol, cipher and group were used?

Use an agent that can reach the Apache host. Record the target, agent and result. A second agent is useful when the public and internal paths differ.

What can go wrong

  • Apache loads a different mod_ssl or OpenSSL than the shell.
  • The directive is in the wrong virtual host.
  • A CDN or reverse proxy terminates TLS before Apache.
  • The certificate is classical while the session is hybrid; that is expected.
  • The client does not offer the hybrid group.

Version matrix

Apache / OpenSSLHybrid groupAction
Apache with OpenSSL 3.5+AvailableSet SSLOpenSSLConfCmd Groups
Apache with an older OpenSSLNot availableUpgrade mod_ssl/OpenSSL
Reverse proxy in frontEdge may differTest the origin separately

Failure example

The directive is added to the default virtual host, but the site uses a different vhost. The tested connection stays classical. apachectl -S shows which config actually serves the hostname; move the directive there and reload.

Automate it

  • A Command Processor can collect the Apache version, loaded modules, SSLOpenSSLConfCmd lines and certificate paths.
  • An AgentFlow can inventory the host, add the quantum and certificate checks, run both and produce a report.
  • A Connect can repeat the quantum check and alert on regression.
  • https alerts cover expiry; they do not prove the key exchange.

Rollback

Keep the previous SSLProtocol and SSLOpenSSLConfCmd lines. Restore them, run apachectl configtest, reload, and confirm the previous group is back.

Limits

  • One target, one port and one agent per check.
  • The agent's algorithm set matters.
  • Key exchange and certificate signatures are separate.
  • No data-at-rest or QKD coverage.
  • A clean check does not prove every virtual host is configured identically.

Next

Common questions

Which Apache directive sets the hybrid group?

Use SSLOpenSSLConfCmd Groups with X25519MLKEM768 first, then X25519 and prime256v1. Place it in the virtual host or server configuration that terminates TLS. Validate with apachectl configtest and reload the service.

Does Apache need OpenSSL 3.5?

Yes for the built-in ML-KEM hybrid groups. mod_ssl passes the group list to the linked OpenSSL library; an older library will not add the capability. Check the linked libssl with ldd, not only the shell openssl version.

How do I test Apache behind a load balancer?

Test the public hostname and the origin separately. If a load balancer or CDN terminates TLS, the public check measures the edge, not Apache. Use an agent that can reach the origin and compare the two results.

Keep exploring

Quantum-secure OpenSSL: hybrid TLS that actually negotiates

Enable hybrid ML-KEM key exchange on OpenSSL 3.5+, prove the negotiated group, and separate the session from the certificate.

Quantum-secure nginx: prove the origin negotiates hybrid TLS

Configure nginx against OpenSSL 3.5+, prefer X25519MLKEM768, and test the origin rather than only the CDN.

Quantum-secure Windows and IIS: Schannel hybrid TLS

Enable the TLS 1.3 hybrid groups on Windows 11 and Server 2025, bind the certificate correctly, and verify IIS.

Browse the library · Quantum readiness docs · Check a system