Quick answer: Apache passes
SSLOpenSSLConfCmd Groupsto OpenSSL. With OpenSSL 3.5+ andX25519MLKEM768first, 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
| Check | What it answers |
|---|---|
quantum | Did this connection negotiate a PQ key exchange? |
quantumcert | Does the certificate have the tested PQ property? |
https | Is trust and expiry acceptable? |
| OpenSSL via the Security expert | Which 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_sslor 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 / OpenSSL | Hybrid group | Action |
|---|---|---|
| Apache with OpenSSL 3.5+ | Available | Set SSLOpenSSLConfCmd Groups |
| Apache with an older OpenSSL | Not available | Upgrade mod_ssl/OpenSSL |
| Reverse proxy in front | Edge may differ | Test 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,
SSLOpenSSLConfCmdlines 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
quantumcheck and alert on regression. httpsalerts 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.