Post-quantum TLS on HAProxy
Web server. Works with HAProxy built on OpenSSL 3.5+ or AWS-LC.
Checked 2026-12-05. Official docs: docs.haproxy.org. JSON: /api/v1/fixes/haproxy
Turn on post-quantum key exchange
Use an HAProxy build linked against OpenSSL 3.5+ or AWS-LC (check haproxy -vv), then set:
global ssl-default-bind-curves X25519MLKEM768:X25519:P-256Fixes: KEX_CLASSICAL_ONLY
Prefer post-quantum over classical
Put the hybrid group first:
global ssl-default-bind-curves X25519MLKEM768:X25519:P-256Fixes: KEX_PQ_NOT_PREFERRED
Turn off TLS 1.0 and 1.1
Require TLS 1.2 or newer:
global ssl-default-bind-options ssl-min-ver TLSv1.2Fixes: TLS10_11_ENABLED
Use strong TLS 1.2 cipher suites
Use strong TLS 1.2 suites:
global ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305Fixes: TLS12_WEAK_SUITE
Redirect HTTP to HTTPS
Redirect plain HTTP:
http-request redirect scheme https code 301 unless { ssl_fc }Fixes: HTTP_NO_REDIRECT
Send HSTS
Send HSTS:
http-response set-header Strict-Transport-Security "max-age=31536000; includeSubDomains"Fixes: HSTS_MISSING, HSTS_SHORT