pqcheck.si
Language: English

Web servers

Post-quantum TLS on nginx

StatusOn after an upgradeYou neednginx linked against OpenSSL 3.5 or newerChecked4 December 2026 · 2 sources

nginx uses whatever key exchange groups its OpenSSL library offers. OpenSSL 3.5 added X25519MLKEM768 and puts it first in its default list, so an nginx built against 3.5 is post-quantum ready unless the config pins an older list.

Requirements

Look at the “built with OpenSSL” line:

nginx -V 2>&1 | grep -i openssl

Turn it on

If your config has no ssl_ecdh_curve line, there is nothing to do after the upgrade. If it has one, add the hybrid group in front:

nginx.conf (server or http block)

ssl_protocols TLSv1.2 TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1;

Test the config and reload:

nginx -t && nginx -s reload

Check that it worked

Run the checker against your hostname. It reports X25519MLKEM768 as supported once the change is live.

From a terminal, with an OpenSSL 3.5+ client. Output that names X25519MLKEM768 means it works, a handshake failure alert means it does not:

openssl s_client -connect example.com:443 -servername example.com \
  -tls1_3 -groups X25519MLKEM768 </dev/null 2>&1 | grep -iE 'group|alert'

Common problems

Sources

  1. NGINX blog: Post-quantum cryptography support in NGINX
  2. nginx docs: ssl_ecdh_curve

More guides: Web servers

Apache httpdCaddyHAProxyTraefik