What nginx needs before you can use post-quantum cryptography

For nginx, post-quantum key exchange depends on the OpenSSL library it is built against, not on an nginx feature: OpenSSL 3.5.0 or later is the prerequisite named in the facts, as of 2026-12-03.

On this page

Which nginx prerequisites decide whether post-quantum key exchange is possible

The nginx changelog has no post-quantum feature, and no entry mentions post-quantum or key-exchange groups. Hybrid key exchange in nginx therefore depends on the TLS library the binary was built against, not on an nginx setting. The NGINX blog says nginx must be compiled against OpenSSL 3.5 or later for post-quantum support, and OpenSSL 3.5.0, released 2025-04-08, added ML-KEM and made X25519MLKEM768 a default group. The NGINX blog's example sets ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1, but that line only has an effect if the OpenSSL build supports the group. The same blog post says OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added, so a system on OpenSSL 3.0 is not a candidate without further work.

This requirement applies to nginx Open Source whether it is built from source or installed from a distribution package, so the first check is the OpenSSL version linked into each running binary, not the nginx version number. For NGINX Plus, the release notes say R33 added initial post-quantum support and R36, released 2025-12-01, added OpenSSL 3.5 support. Confirm the exact NGINX Plus release on each host, since the R33 and R36 notes describe different capabilities.

The nginx ssl module documentation does not mention post-quantum or hybrid groups in its ssl_ecdh_curve section. That silence does not confirm or rule out support. The docs say ssl_ecdh_curve auto uses whatever curve list OpenSSL provides, so the groups on offer depend on the library version. Treat the build as the source of truth and test the handshake, for example by connecting with a client that offers a hybrid group and checking which group was negotiated. The $ssl_curve variable reports the negotiated key-exchange curve on OpenSSL 3.0 or later, so it can be logged to confirm the result.

For the inventory, platform engineers and security leads should record the OpenSSL version and build source for every host that terminates TLS, plus the NGINX Plus release where it applies. Note that FIPS-validated deployments differ: the NGINX Plus FIPS page says it uses only the operating system's FIPS-validated OpenSSL for TLS, and that NGINX Open Source is not verified for FIPS environments. The page does not mention post-quantum algorithms, so any FIPS build needs its own confirmation with the vendor before it is treated as a post-quantum candidate.

Which OpenSSL, nginx and NGINX Plus versions meet each prerequisite

This table lists each OpenSSL, nginx and NGINX Plus version or edition in the prerequisite chain and says what the supplied facts show about post-quantum support in it. Read it from the TLS library up: nginx's post-quantum key exchange depends on the OpenSSL build behind it, and the nginx and NGINX Plus rows only add the variables and build bases that depend on that library.

ComponentVersion or editionWhat the facts say about post-quantum supportSource and checked date
OpenSSL3.0.x and 3.1.xNo post-quantum support in the distribution unless the OQS provider is added. Post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on these versions.NGINX blog, PQC support in NGINX (dated 2025-12-03)
OpenSSL3.5.0 and laterReleased 2025-04-08 with ML-KEM, ML-DSA and SLH-DSA. The default TLS group list includes hybrid post-quantum KEM groups such as X25519MLKEM768.OpenSSL 3.5 release notes, checked 2026-12-03
nginx1.21.5 and later ($ssl_curve)Adds the $ssl_curve variable, which reports the negotiated key-exchange curve on OpenSSL 3.0 or higher. The changelog has no post-quantum entry, so this variable does not add post-quantum support by itself.nginx CHANGES and nginx ssl module docs, checked 2026-12-03
nginx1.29.3 and later ($ssl_sigalg)Adds the $ssl_sigalg variable, which requires OpenSSL 3.5 or higher. The docs name no ML-DSA or SLH-DSA setting for nginx.nginx CHANGES, checked 2026-12-03
NGINX PlusR33Release notes say R33 (2024-11-19) added initial support for Post Quantum Cryptography.NGINX Plus releases, checked 2026-12-03
NGINX PlusR36Release notes say R36 (2025-12-01) added support for OpenSSL 3.5. Confirm the exact post-quantum groups and settings in the R36 documentation.NGINX Plus releases, checked 2026-12-03
NGINX PlusLTS PLS.37.0.9.1 (2026-11-23, on NGINX Open Source 1.29.8)Build dated 2026-11-23. The facts do not say which OpenSSL version this build links, so confirm it before relying on post-quantum key exchange.NGINX Plus releases, checked 2026-12-03
NGINX PlusCurrent PLS.37.3.1.1 (2026-11-23, on NGINX Open Source 1.31.8)Build dated 2026-11-23. The facts do not say which OpenSSL version this build links, so confirm it before relying on post-quantum key exchange.NGINX Plus releases, checked 2026-12-03

Which build, library and package components affect the answer

nginx does not implement post-quantum key exchange itself. The handshake is handed to the TLS library it was linked against, so the library version, the settings that select groups, and the packaging choices around them decide what is possible. The cards below cover each component that changes the answer.

Linked TLS library

nginx hands the TLS handshake to the library it was built with, and the nginx docs state that the available key-exchange groups depend on that library version. Post-quantum hybrid groups come from the OpenSSL build, not from an nginx feature. The NGINX blog says nginx must be compiled against OpenSSL 3.5 or later for post-quantum support. Check the version reported by nginx -V and the OpenSSL version it links against, since a distribution package may carry an older OpenSSL than the upstream release.

nginx SSL docs

ssl_ecdh_curve setting

The ssl_ecdh_curve directive defaults to auto, which uses the curve list built into OpenSSL. An explicit list overrides that default, and the NGINX blog gives the example value X25519MLKEM768:X25519:prime256v1 for post-quantum hybrid key exchange. The nginx ssl module docs do not mention post-quantum groups, so the example comes from the NGINX blog. Curves used by ECDSA certificates must appear in the list. Confirm that the value is accepted by your build before relying on it.

NGINX PQC blog

Proxy and stream modules

The proxy module controls TLS to upstream servers through proxy_ssl_protocols, proxy_ssl_ciphers and proxy_ssl_verify, and the stream module has its own ssl_protocols, ssl_ciphers and ssl_ecdh_curve. Neither the upstream TLS settings nor the stream ssl page mention post-quantum groups. Upstream verification is off by default. Confirm the group behavior of each module separately from the HTTP server block, and check whether backend connections should be tested as well as client connections.

Stream SSL docs

Linux package signing keys

The nginx Linux packages are checked against PGP signing keys published at nginx.org/keys/nginx_signing.key. Those keys are RSA, with two rsa4096 keys and one rsa2048 key, and Alpine uses a separate 2048-bit RSA key. These signatures protect package integrity and are unrelated to TLS key exchange. A post-quantum build of nginx does not change how packages are signed, so the signing key is a separate item in your inventory.

nginx Linux packages

FIPS-validated OpenSSL

NGINX Plus uses only the operating system's FIPS-validated OpenSSL for TLS, HTTP/2 and HTTP/3. NGINX Open Source is not verified for FIPS environments. The FIPS page does not mention post-quantum algorithms or CNSA 2.0. If your environment requires FIPS, confirm which OpenSSL build is in use and whether it carries the validation the page describes. Do not assume a post-quantum OpenSSL build is covered by that validation.

NGINX Plus FIPS page

How the prerequisites differ by build route and OpenSSL line

Packages from nginx.org are built by the nginx project against the OpenSSL version named in the package. Whether post-quantum key exchange is available depends on that linked version, not on the nginx version number alone. Confirm which OpenSSL the installed build uses before assuming any group beyond the classic curves is offered.

  • Check the linked OpenSSL version: Run nginx -V and read the built with OpenSSL line, which shows the version compiled into the binary.
  • Confirm the OpenSSL line: A build against OpenSSL 3.5.0 or later is needed for post-quantum groups, so a 3.0.x or 3.1.x line does not offer them.
  • Check the package release notes: Compare the package version with the nginx.org release notes, since the bundled OpenSSL can change between releases.
  • Note the signing key: Package updates are checked against the nginx.org signing key, which relies on RSA, so verify the key fingerprint before installing.
  • Plan for a newer build if needed: If the bundled OpenSSL predates 3.5, a newer nginx package or a source build against a newer library is the route to the post-quantum prerequisites.

Confirm the built with OpenSSL line with the output of nginx -V on the production binary, not on a test host.

What to check before you change any nginx TLS setting

This sequence confirms which OpenSSL library nginx is linked to and whether that library can offer post-quantum hybrid key exchange, before you change ssl_ecdh_curve. It ends with a check in the access log that shows which key-exchange group was actually negotiated.

  1. Record the nginx version and build configuration

    Run nginx -v to record the version, then run nginx -V to capture the full build configuration. The nginx -V output includes the OpenSSL version nginx was compiled against, shown on the built with OpenSSL line. Save both outputs with the host name and date in your change record. You know this step is done when you have the complete nginx -V output stored for this host.

  2. Confirm the linked OpenSSL is 3.5.0 or later

    Check the OpenSSL version from the nginx -V output recorded in the previous step. Post-quantum hybrid key exchange in nginx comes from the OpenSSL build, not from an nginx feature, and the NGINX blog states that nginx must be compiled against OpenSSL 3.5 or later for post-quantum support. OpenSSL 3.5.0 was released on 2025-04-08. If the version is earlier than 3.5.0, stop here, because the settings in later steps will not produce post-quantum key exchange on that build.

  3. Confirm the distribution or NGINX Plus build links that library

    Packaged nginx builds can link a different OpenSSL than the one installed on the system, so confirm which library your build uses. Check the distribution package or NGINX Plus release you run against the version from the first step, and confirm with the vendor or distribution documentation that the package links OpenSSL 3.5.0 or later. Ask your distribution or NGINX contact which library version each package is built against, because the nginx ssl module docs state that the available key-exchange groups depend on the library nginx was built with. You know this step is done when the library named in the package documentation matches the version in nginx -V.

  4. Set ssl_ecdh_curve only after the library check

    Only after the two library checks pass, set ssl_ecdh_curve in the http or server context. The NGINX blog gives the example ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;, which lists the hybrid group first and keeps classical fallbacks. The nginx docs say the default is auto, which uses the list built into OpenSSL, so set this value deliberately and keep a copy of the previous setting for rollback. Confirm with the blog post that this example applies to your version. You know this step is done when the change is saved in version control with the previous value recorded.

  5. Run nginx -t and reload

    Run nginx -t to check the configuration syntax and confirm the file loads without errors. If the test passes, reload nginx with nginx -s reload or your service manager's reload command, and check the error log for warnings about the new directive. If the test fails, revert to the saved setting and do not reload. You know this step is done when nginx -t reports the configuration test is successful and the reload completes without errors in the log.

  6. Confirm the negotiated group with $ssl_curve

    Add $ssl_curve to your access log format, or use a test log format, and make one or more TLS connections from a client you control. The $ssl_curve variable exists from nginx 1.21.5 on OpenSSL 3.0 or higher and reports the negotiated key-exchange curve. Check that the logged value is a post-quantum hybrid group such as X25519MLKEM768 for connections that offer it. If the value is a classical group, check the client, because the server can only use a group the client offers. You know this step is done when the access log shows the negotiated group for each test client.

Which prerequisites the nginx project and F5 have not documented

Does the nginx ssl_ecdh_curve documentation list post-quantum groups?

No. The ssl_ecdh_curve page in the nginx ssl module docs, checked 2026-12-03, does not mention post-quantum or hybrid key-exchange groups. The directive defaults to auto, which uses whatever curve list the linked OpenSSL build provides. Ask F5 or the nginx project to confirm which hybrid groups, such as X25519MLKEM768, are supported by name in the documented setting, and which minimum OpenSSL version each one requires. Until they answer in writing, treat the nginx documentation as silent on this point rather than as a confirmation.

Does the nginx changelog record any post-quantum feature?

No entry in the nginx changelog contains the words post-quantum or groups, based on the first 100000 characters checked 2026-12-03. The post-quantum key exchange in nginx therefore comes from the OpenSSL build, not from an nginx feature. Ask the project which release, if any, will add post-quantum support to nginx itself, and whether any future change is planned as a module or build option rather than a library dependency.

Can nginx configure ML-DSA or SLH-DSA signatures?

The nginx docs name no ML-DSA or SLH-DSA setting. The ssl_certificate and ssl_certificate_key directives load PEM files, and the only signature-related statement found is the NGINX blog limit that OpenSSL 3.0.x and 3.1.x cannot use post-quantum signature algorithms for TLS 1.3 server authentication. The NGINX blog post does not name ML-DSA. Ask F5 or the nginx project whether ML-DSA or SLH-DSA certificates are supported, which OpenSSL versions they require, and whether a configuration example exists for loading such keys.

Is there a dated post-quantum algorithm roadmap for nginx?

Not in the sources reviewed. The NGINX blog post lists a roadmap only for Debian 13 and Ubuntu 26.04 image support, with no dated algorithm plan. Ask F5 for a written roadmap that names each algorithm, the edition it applies to (NGINX Open Source, NGINX Plus or both), the target release, and whether it depends on an OpenSSL version. Ask for the date each item was last reviewed, since a roadmap without dates cannot be planned against.

Does the NGINX Plus FIPS page cover post-quantum algorithms or CNSA 2.0?

No. The NGINX Plus FIPS page, checked 2026-12-03, says NGINX Plus uses only the operating system's FIPS-validated OpenSSL for TLS, HTTP/2 and HTTP/3. It does not mention post-quantum algorithms or CNSA 2.0. Ask F5 whether the FIPS validation covers any post-quantum algorithm in the OpenSSL build being used, which module and version apply, and whether CNSA 2.0 is a target for any product or edition. Do not infer compliance from the absence of a statement.

Is NGINX Open Source FIPS-verified?

No. The NGINX Plus FIPS page states that NGINX Open Source is not verified for FIPS environments. Ask F5 or the nginx project whether this remains true for the version you plan to run, and whether any future verification or FIPS-validated build is planned. If you need a FIPS-verified web server, confirm with the vendor which edition and OpenSSL module apply, and ask for that in writing.

Which OpenSSL version does nginx need for post-quantum key exchange?

The NGINX blog post dated 2025-12-03 says nginx must be compiled against OpenSSL 3.5 or later for post-quantum support. OpenSSL 3.5.0, released 2025-04-08, added ML-KEM, ML-DSA and SLH-DSA. Confirm with F5 or the nginx project that this minimum is correct for the nginx version you run, and ask whether the same requirement applies to NGINX Plus. The FIPS-validated OpenSSL that NGINX Plus uses may not match the upstream version, so ask which build carries the post-quantum groups.

Which nginx settings change when you move to post-quantum key exchange?

The NGINX blog gives ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1 as an example setting. The nginx docs do not describe this value, so ask the project to confirm the syntax, the default behavior when the value is omitted, and whether auto includes the hybrid group once OpenSSL 3.5 or later is linked. Also ask how the $ssl_curve and $ssl_sigalg variables report the negotiated group, since $ssl_sigalg needs OpenSSL 3.5 or higher.

What breaks or silently falls back to classical key exchange

The most common failure is not a visible error but a quiet fallback. nginx does not implement post-quantum key exchange itself. It hands the handshake to the TLS library it was linked against, and the docs state that ssl_ecdh_curve auto uses the curve list built into OpenSSL. The NGINX blog says post-quantum support requires a build against OpenSSL 3.5 or later, and that OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added. An nginx built against OpenSSL 3.0.x or 3.1.x can start, pass its configuration test, and serve traffic, yet offer no post-quantum group at all. Confirm the OpenSSL version nginx was linked against, not only the version installed on the host, and do not treat a successful start as evidence of support.

A second failure appears when ssl_ecdh_curve names a group the linked library does not recognize. The directive accepts a colon-separated list, and the example in the NGINX blog is X25519MLKEM768:X25519:prime256v1. A name the library does not know can cause the handshake to fail or to fall back to the next group in the list, depending on the build and version, so a list that works on one host may behave differently on another. Two further points apply. Curves used by ECDSA certificates must stay in the list, or those connections may fail. And ssl_conf_command, which passes raw OpenSSL configuration such as Ciphersuites, can produce unexpected results because the nginx docs warn about direct OpenSSL configuration. Treat it as a change to test in a staging build, not as a routine setting.

The order of groups decides what is negotiated, and that order comes from OpenSSL unless you set it. Do not assume a post-quantum group is preferred because it is listed. Use the $ssl_curve variable, which the changelog added in 1.21.5 and which reports the negotiated key-exchange curve on OpenSSL 3.0 or higher, to see what clients actually receive during tests from several client types. The $ssl_sigalg variable, added in 1.29.3, needs OpenSSL 3.5 or higher and reports the signature algorithm. A test that shows $ssl_curve returning a classical group for a client that supports the hybrid group is a fallback, and it should be investigated before any change is reported as complete.

Questions engineers and vendor-risk reviewers ask about nginx prerequisites

Is nginx quantum safe?

The supplied facts do not support calling nginx quantum safe. Post-quantum key exchange in nginx comes from the TLS library it is built against, not from an nginx feature, and the nginx changelog has no entry for post-quantum support. The facts support post-quantum key exchange only where the linked OpenSSL is 3.5 or later and the operator sets a hybrid group such as X25519MLKEM768 in ssl_ecdh_curve. No certification, validation or compliance listing for nginx in this configuration appears in the facts, so do not record one. Confirm the exact build and library version in your own environment before you document a result.

Which nginx and OpenSSL versions do I need for post-quantum key exchange?

The library is the requirement that matters most. The NGINX blog says nginx must be compiled against OpenSSL 3.5 or later for post-quantum support, and OpenSSL 3.5.0 was released on 2025-04-08 with ML-KEM support and hybrid default groups. For the $ssl_curve variable, which reports the negotiated key-exchange curve so you can verify it, nginx 1.21.5 or later is needed on OpenSSL 3.0 or higher. The $ssl_sigalg variable needs nginx 1.29.3 and OpenSSL 3.5 or higher. The current stable build is nginx 1.30.8, and the facts do not tie a specific nginx release to post-quantum key exchange. Check the OpenSSL version your nginx binary links against, not only the nginx version number.

Does post-quantum support in nginx cost extra?

The supplied facts give no price for nginx or for any upgrade, so do not state one. The cost comes from the work involved: rebuilding or updating nginx against OpenSSL 3.5 or later, or waiting for your operating system or vendor to ship it, and then testing the change. The open-source build is distributed under the 2-clause BSD License. The commercial edition, NGINX Plus, has its own release path: R33 (2024-11-19) added initial post-quantum support and R36 (2025-12-01) added OpenSSL 3.5 support. Ask F5 for the written support terms and any license changes that come with an NGINX Plus upgrade, and ask your OS vendor whether its nginx package uses OpenSSL 3.5 or later.

What breaks when nginx moves to OpenSSL 3.5 or later?

The facts do not list every breaking change, so test before you deploy. Things to check include the cipher and curve settings you have pinned: ssl_ecdh_curve defaults to auto, which uses the curve list built into OpenSSL, so a fixed list may not include the groups you expect. Custom ssl_conf_command entries that set OpenSSL options can behave differently, and the nginx docs warn about unexpected behavior when configuring OpenSSL directly. Clients that do not offer hybrid groups will fall back to classical groups. The NGINX blog notes that OpenSSL 3.0.x and 3.1.x cannot use post-quantum signature algorithms for TLS 1.3 server authentication, so keep those versions out of any signature plan. Test with your real clients and any middleboxes before the change reaches production.

What should I ask F5 about post-quantum nginx support?

Ask F5 for written answers to these points before you rely on any NGINX Plus release for post-quantum key exchange:

  • Which NGINX Plus builds (for example PLS.37.0.9.1 or PLS.37.3.1.1) include an OpenSSL 3.5 or later library, and the exact OpenSSL version each build links against.
  • Whether post-quantum signature algorithms are supported for certificates, since the nginx docs name no ML-DSA or SLH-DSA settings.
  • Whether the FIPS-validated OpenSSL that NGINX Plus uses for TLS includes any post-quantum algorithms, since the FIPS page does not mention them.
  • The dated roadmap for any future algorithm support, since the facts show none beyond the Debian 13 and Ubuntu 26.04 image support in the NGINX blog.

Get each answer in writing, with the version it applies to.

Can our team upgrade nginx for post-quantum key exchange alone, or do we need outside help?

A team with strong Linux and TLS administration skills can usually handle the core steps: confirm the OpenSSL version nginx links against, rebuild or update the package, set a hybrid group in ssl_ecdh_curve such as X25519MLKEM768:X25519:prime256v1, and verify with $ssl_curve. The work gets harder when you run many configurations, use upstream certificate checks, depend on pinned ciphers, or need to show evidence for an assessment. Outside help can cover scope, testing across clients and middleboxes, and documentation for auditors. DeployOpen plans and implements self-hosted platforms in your infrastructure, runs security testing, and prepares compliance evidence, but it does not issue audit reports or certifications, and its work is agreed in a written, fixed scope before it starts.

How do I confirm that post-quantum key exchange is actually active in nginx?

Confirm it on the running server, not only in the config file. Use the $ssl_curve variable in an access log format or response header to record the curve negotiated on each connection, then check that a hybrid group such as X25519MLKEM768 appears for clients that offer it. Compare results from several client types, because a client that does not offer hybrid groups will show a classical curve. Keep the nginx and OpenSSL version output and the config file with the test results as evidence. Repeat the check after each upgrade, since the auto curve list depends on the library version.

How DeployOpen helps plan and check nginx post-quantum prerequisites

DeployOpen approaches the prerequisites for nginx post-quantum key exchange as a written, checkable inventory of the build, the linked TLS library and the operating system packages. The work turns the facts about OpenSSL versions, build options and client support into a scoped plan that your engineers can verify on their own servers before any setting changes.

How we scope

  • Confirm which nginx edition you run, whether Open Source or NGINX Plus, and which version each server uses.
  • Record the OpenSSL version nginx is linked against, since post-quantum key exchange depends on OpenSSL 3.5 or later.
  • Set out in writing which servers, upstreams and certificate paths are in scope before any build work starts.

How we build

  • Check whether the current build can offer hybrid groups such as X25519MLKEM768 in a test environment first.
  • Test the ssl_ecdh_curve and TLS protocol settings against your certificates and a set of real client handshakes.
  • Verify the negotiated curve with the $ssl_curve variable and the signature algorithm with $ssl_sigalg where supported.

How we hand over

  • Deliver a written record of the build, library versions, package sources and settings that were tested and confirmed.
  • Document the client and middlebox behavior observed during testing, along with any items still to confirm with vendors.
  • Provide a rollback procedure and the checks your operators can repeat after future nginx or OpenSSL updates.

How we support

  • Ongoing support is available as a retainer for upgrades, retesting and tracking vendor notices on nginx and OpenSSL.
  • Retesting after each nginx or OpenSSL release helps confirm that the hybrid key-exchange setting still behaves as expected.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.