Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: F5 · https://nginx.org/ · pkg:generic/nginx · Last reviewed 2026-12-05 · History

Summary

  • nginx takes TLS from the library it is built against; built against OpenSSL 3.5 or later it offers the hybrid group X25519MLKEM768 by default in TLS 1.3, and with an earlier OpenSSL it is classical.1
  • No nginx release added post-quantum support of its own; the changelog does not mention ML-KEM or a hybrid group (checked 2026-12-05).
  • Classical groups can be disabled by the administrator with ssl_ecdh_curve.1
  • The documentation mentions RSA and ECDSA server certificates but not ML-DSA certificates (checked 2026-12-05).1

To offer only the hybrid group, set ssl_ecdh_curve X25519MLKEM768;, which stops clients without the group from connecting.1

Cryptographic operations

  • Client connections (nginx is the TLS server): ssl_ecdh_curve defaults to auto, which “instructs nginx to use a list built into the OpenSSL library when using OpenSSL 1.0.2 or higher”.1 From OpenSSL 3.5.0 that list starts with X25519MLKEM768; clients without it fall back to a classical group.
  • Server certificates: ssl_certificate can be given several times “to load certificates of different types, for example, RSA and ECDSA” since 1.11.0; no post-quantum certificate example is documented.1
  • $ssl_sigalg (added 1.29.3) “returns the signature algorithm for the server certificate for an established SSL connection” and works only with OpenSSL 3.5 or higher.1
  • Upstream connections (nginx as TLS client): directives controlling groups not checked (2026-12-05).

Versions

Change Version Package URL Source
ssl_ecdh_curve accepts a list; default becomes auto 1.11.0 pkg:generic/nginx@1.11.0 12
$ssl_curve reports the negotiated group (OpenSSL 3.0 or later) 1.21.5 pkg:generic/nginx@1.21.5 1
$ssl_sigalg reports the certificate signature algorithm (OpenSSL 3.5 or later) 1.29.3 pkg:generic/nginx@1.29.3 1

Configuration

Enabling PQC

  • Nothing needed with OpenSSL 3.5 or later and no ssl_ecdh_curve. A classical-only list overrides the default; delete it or add the group:
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
  • Check the OpenSSL in use with nginx -V; log the negotiated group with:
log_format tls '$remote_addr $ssl_protocol $ssl_curve';

Disabling classical algorithms

ssl_ecdh_curve X25519MLKEM768;

Clients without the group cannot connect. Set per http or server block.1

Distributions

Distribution nginx OpenSSL Hybrid key agreement with default settings Source
Debian 12 (bookworm) 1.22.1 3.0.22 no 34
Debian 13 (trixie) 1.26.3 3.5.10 yes 56
Ubuntu 22.04 (jammy) 1.18.0 3.0.2 no 78
Ubuntu 24.04 (noble) 1.24.0 3.0.13 no 910
Ubuntu 26.04 (resolute) 1.28.3 3.5.5 yes 1112
Alpine 3.25 1.30.8 3.5.10 yes 1314
Docker official image nginx:mainline 1.31.10 from debian:trixie-slim yes 156

Checked 2026-12-05. Last column is derived from the OpenSSL series and the auto default, assuming the distribution’s configuration does not set ssl_ecdh_curve.

References

  1. nginx documentation, Module ngx_http_ssl_module. https://nginx.org/en/docs/http/ngx_http_ssl_module.html (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11

  2. nginx changelog, 1.11.0. https://nginx.org/en/CHANGES (accessed 2026-12-05) ↩

  3. Debian package nginx in bookworm. https://packages.debian.org/bookworm/nginx (accessed 2026-12-05) ↩

  4. Debian package openssl in bookworm. https://packages.debian.org/bookworm/openssl (accessed 2026-12-05) ↩

  5. Debian package nginx in trixie. https://packages.debian.org/trixie/nginx (accessed 2026-12-05) ↩

  6. Debian package openssl in trixie. https://packages.debian.org/trixie/openssl (accessed 2026-12-05) ↩ ↩2

  7. Ubuntu package nginx in jammy. https://packages.ubuntu.com/jammy/nginx (accessed 2026-12-05) ↩

  8. Ubuntu package openssl in jammy. https://packages.ubuntu.com/jammy/openssl (accessed 2026-12-05) ↩

  9. Ubuntu package nginx in noble. https://packages.ubuntu.com/noble/nginx (accessed 2026-12-05) ↩

  10. Ubuntu package openssl in noble. https://packages.ubuntu.com/noble/openssl (accessed 2026-12-05) ↩

  11. Ubuntu package nginx in resolute. https://packages.ubuntu.com/resolute/nginx (accessed 2026-12-05) ↩

  12. Ubuntu package openssl in resolute. https://packages.ubuntu.com/resolute/openssl (accessed 2026-12-05) ↩

  13. Alpine package nginx, branch v3.25. https://pkgs.alpinelinux.org/packages?name=nginx&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩

  14. Alpine package openssl, branch v3.25. https://pkgs.alpinelinux.org/packages?name=openssl&branch=v3.25&arch=x86_64 (accessed 2026-12-05) ↩

  15. nginxinc/docker-nginx, mainline/debian/Dockerfile at commit d6e8ee8. https://github.com/nginxinc/docker-nginx/blob/d6e8ee84e5fa87b7279a3a25b0b6de7d55c24f3e/mainline/debian/Dockerfile (accessed 2026-12-05) ↩


Edit: nginx

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.