Can nginx use post-quantum key exchange, and what turns it on
If you want hybrid post-quantum key exchange on nginx, the first thing to know is that nginx has no post-quantum feature of its own. The post-quantum groups come from the OpenSSL library that nginx is built against. OpenSSL 3.5.0, released 2025-04-08, added ML-KEM support, and nginx must be compiled against OpenSSL 3.5 or later to offer it. Once the build is right, the group is selected with the ssl_ecdh_curve directive. The NGINX blog post dated 2025-12-03 gives ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1; as its example. The nginx ssl_ecdh_curve documentation does not mention these hybrid groups, so the blog post is the source to check for the exact syntax.
Before changing anything, confirm which OpenSSL your nginx binary actually uses. Run nginx -V and look at the OpenSSL version it reports, since a distribution package may link an older OpenSSL than the one installed on the system. Also confirm that the build exposes the hybrid group, not only that the version number is 3.5 or higher. OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added, and the NGINX blog says post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x. If your package manager ships an older OpenSSL, you will need a build or package that links 3.5 or later.
Two points of scope matter here. NGINX Plus added initial post-quantum cryptography support in R33 (2024-11-19) and added support for OpenSSL 3.5 in R36 (2025-12-01), so commercial customers should check their release and their OpenSSL build against those dates. The release notes do not replace testing your own build. This page covers key exchange only. Certificates, certificate keys and signatures are a separate question: the nginx documentation sets no required certificate key size or signature algorithm, so those come from the certificate files you supply, and the NGINX blog does not name ML-DSA. Package signing is also separate, since nginx's Linux packages are checked against RSA PGP keys. After you enable the setting, use $ssl_curve in an access log or test with a client that offers the hybrid group to confirm what was negotiated, and keep a rollback of the previous ssl_ecdh_curve value ready.
Which builds and settings support hybrid key exchange
This table lists each nginx component and setting that affects hybrid post-quantum key exchange, with the source and date checked for each row. Support depends on the OpenSSL version nginx is built with, not on nginx itself, so read each row against the build you run. Signature support is not documented for nginx and should be confirmed before any change.
| Component or setting | Hybrid key exchange support | Source and date checked |
|---|---|---|
| nginx Open Source with OpenSSL 3.0.x or 3.1.x | No support unless the OQS provider is added | NGINX blog, PQC support in NGINX (2025-12-03 post), checked 2026-12-04 |
| nginx Open Source with OpenSSL 3.5 or later | Default TLS group list includes X25519MLKEM768 | OpenSSL 3.5 release notes, checked 2026-12-04; NGINX blog, checked 2026-12-04 |
| NGINX Plus R33 | Initial support for Post Quantum Cryptography | NGINX Plus releases page, checked 2026-12-04 |
| NGINX Plus R36 | Adds support for OpenSSL 3.5 | NGINX Plus releases page, checked 2026-12-04 |
| ssl_ecdh_curve | Sets the key-exchange group list; the NGINX blog example is X25519MLKEM768:X25519:prime256v1. The nginx docs do not list post-quantum groups. | nginx ssl module docs, checked 2026-12-04; NGINX blog, checked 2026-12-04 |
| $ssl_curve variable | Reports the negotiated key-exchange curve on OpenSSL 3.0 or higher; use it to confirm a hybrid group was chosen | nginx CHANGES (added in 1.21.5), checked 2026-12-04 |
| $ssl_sigalg variable | Needs OpenSSL 3.5 or higher; the nginx docs name no post-quantum signature settings | nginx CHANGES (added in 1.29.3), checked 2026-12-04 |
| Post-quantum signatures in nginx | Not documented for nginx. Confirm with the nginx docs or vendor before planning certificate changes. | nginx ssl module docs and NGINX blog, checked 2026-12-04 |
Steps to build, configure and confirm hybrid key exchange
This sequence checks which OpenSSL library nginx uses, builds or installs nginx against OpenSSL 3.5 or later, sets an ECDH curve list that offers a hybrid post-quantum group with classical fallbacks, and confirms the negotiated group from a test client or access log. Post-quantum key exchange in nginx comes from the OpenSSL build, so each step checks the library rather than an nginx feature.
Confirm the OpenSSL version nginx uses
Run
nginx -Von the server to see the compile flags, including the--with-opensslpath if the build used a bundled copy. Then check the linked library withldd $(which nginx) | grep -i sslon Linux, or the equivalent on your platform. nginx hands the TLS handshake to the linked library, so the group list depends on the version you find here. If the output shows OpenSSL 3.0.x or 3.1.x, or 3.4.x or earlier, the hybrid group will not be available and you must move to a newer build. This step is done when you have recorded the exact OpenSSL version and build source for this host.Build or install nginx against OpenSSL 3.5 or later
The NGINX blog states that nginx must be compiled against OpenSSL 3.5 or later for post-quantum support. Either install a distribution package built against OpenSSL 3.5 or later, or compile nginx from source with
--with-openssl=/path/to/openssl-3.5.x. Confirm your distribution's OpenSSL package version before relying on it, because OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added. Check the result withnginx -Vand the linked library again, and confirm the reported OpenSSL version is 3.5 or later. This step is done when the binary you will deploy reports the newer OpenSSL version.Set the ECDH curve list with classical fallbacks
In the
httporservercontext, setssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;. This is the example setting from the NGINX blog, not a recommendation for every deployment. The list is ordered, so the hybrid group is offered first, and X25519 and prime256v1 remain as classical fallbacks for clients that do not offer the hybrid group. Keep the default behavior in mind:ssl_ecdh_curvedefaults toauto, which uses OpenSSL's built-in list, so an explicit list replaces that choice. Check the syntax withnginx -tand make sure ECDSA certificates use a curve in the list. This step is done whennginx -treports the configuration is successful.Reload nginx to apply the configuration
Reload nginx with
nginx -s reloador your service manager's reload command, such assystemctl reload nginx. Watch the error log for handshake or configuration warnings after the reload, and check that worker processes restarted with the new settings. Keep the previous configuration file available so you can revert if clients fail to connect. This step is done when nginx has reloaded without errors and new connections are accepted on the test host.Confirm the negotiated group with a test client
Connect to the server with a client that supports the hybrid group, such as a recent OpenSSL 3.5 or later client, using
openssl s_client -connect host:443 -groups X25519MLKEM768:X25519and inspect the output for the negotiated group. Then connect with a client that does not offer the hybrid group and confirm that the handshake falls back to a classical group. Record the client library version alongside each result, because support depends on both sides. This step is done when you have one hybrid handshake and one classical fallback handshake, both succeeding.Record the negotiated curve in an access log
Add
$ssl_curveto a log format, for examplelog_format pq '$remote_addr $ssl_protocol $ssl_curve';, and point an access log at it. The$ssl_curvevariable has been available since nginx 1.21.5 and reports the negotiated key-exchange curve on OpenSSL 3.0 or higher. Send traffic from the test clients and check that the log records the hybrid group for hybrid-capable clients and a classical group for others. This step is done when the access log shows the expected group for each test client.
How the steps differ for Open Source, NGINX Plus and distribution packages
If you compile nginx yourself, you control the OpenSSL version at build time. The NGINX blog states that nginx must be compiled against OpenSSL 3.5 or later to support post-quantum key exchange, and the nginx changelog has no post-quantum feature entry, so the capability comes entirely from the linked library.
- Install OpenSSL 3.5 or later: Build or install OpenSSL 3.5.0 or newer first, since OpenSSL 3.5.0 was released on 2025-04-08 and adds the hybrid groups.
- Point the build at that OpenSSL: Pass the OpenSSL source or install path to the nginx
configurescript so the binary links against 3.5 or later. - Set the key-exchange groups: Use
ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;, the example the NGINX blog gives, in the relevant server block. - Confirm the linked version: Run
nginx -Vto see the OpenSSL version in the build output, and check that it reports 3.5 or higher. - Verify on the wire: Use
$ssl_curvein a log format to see which group the handshake negotiated.
Before you rely on this build, confirm the OpenSSL version printed by nginx -V, because a binary built against an older library will not offer the hybrid groups regardless of configuration.
NGINX Plus is the commercial edition, and its release notes record the support for OpenSSL 3.5 in R36 released on 2025-12-01. Initial post-quantum support arrived earlier, in R33 released on 2024-11-19. The version you need is therefore set by the Plus release, and you should confirm the release you run before changing settings.
- Check the release number: Confirm you run R36 or later, since R36 is the release that added OpenSSL 3.5 support.
- Confirm the bundled OpenSSL: Check the release notes and build details for the OpenSSL version your NGINX Plus build links against.
- Apply the same group setting: Use the
ssl_ecdh_curvedirective with the hybrid group list once the build is confirmed. - Check FIPS builds separately: NGINX Plus FIPS builds use only the operating system's FIPS-validated OpenSSL for TLS, so the post-quantum groups depend on that OpenSSL version. The FIPS page does not mention post-quantum algorithms.
- Ask the vendor for the build details: Request the exact OpenSSL version and any FIPS scope in writing from F5 before you record the setting as supported.
The FIPS page does not mention post-quantum algorithms, so do not treat FIPS validation as evidence that the hybrid groups are available in a FIPS build.
Packages from Linux distributions and the nginx.org repositories are built against whatever OpenSSL the packager chose. A release number does not tell you the OpenSSL version, so you must check the package rather than assume it supports the hybrid groups. The nginx.org Linux packages page lists its signing keys, which you can use to verify package integrity before you inspect the build.
- Read the OpenSSL version from the binary: Run
nginx -Vafter install and note the OpenSSL version it reports. - Check the package metadata: Use the package manager to show the nginx package details and any OpenSSL dependency it lists.
- Verify the signature first: Confirm the package against the signing key at nginx.org/keys/nginx_signing.key before installing.
- Compare against 3.5 or later: If the reported OpenSSL is older than 3.5, the hybrid groups are not available from that package, and you need a different build or library.
- Plan for distribution timing: Ask the distribution or packager when a build linked against OpenSSL 3.5 or later will be available for your release.
If nginx -V reports an OpenSSL version below 3.5, do not add the hybrid group setting to that server, because the group will not be offered.
Where the hybrid group is negotiated in the TLS handshake
The client opens the handshake and offers key shares, including X25519MLKEM768 and X25519, in its ClientHello. nginx does not choose the group itself: it passes the offer to the linked OpenSSL library, which selects the first group in the ssl_ecdh_curve list that the client also offers. Once the handshake completes, nginx reports the chosen group in the $ssl_curve variable. To check your setup, confirm the OpenSSL version nginx was built with and compare $ssl_curve against the group you expect.
The key-exchange group is selected by OpenSSL, then reported by nginx.
What nginx does not document for post-quantum groups
The nginx ssl and proxy module pages describe how to set key-exchange curves, but they do not name post-quantum or hybrid groups, signature algorithms or a dated roadmap. Each card below marks one gap an engineer will hit while enabling hybrid key exchange, with the party to ask and the page to check.
No post-quantum group in ssl_ecdh_curve
The ssl_ecdh_curve page in the nginx ssl module docs, checked 2026-12-03, lists no post-quantum or hybrid group, and the stream ssl and proxy pages do not mention one either. The setting accepts any group the linked library offers, so the working example, X25519MLKEM768:X25519:prime256v1, comes from the NGINX blog rather than from the reference. Ask F5 or the nginx project to document which group names nginx accepts, and check the ssl_ecdh_curve page and the NGINX blog post dated 2025-12-03 before you copy the example.
nginx ssl module docsNo ML-DSA or SLH-DSA setting
The nginx docs name no directive for ML-DSA or SLH-DSA, and the only signature limit found is the NGINX blog statement that post-quantum signatures cannot authenticate a TLS 1.3 server on OpenSSL 3.0.x and 3.1.x. Certificate keys are set through ssl_certificate and ssl_certificate_key with whatever PEM files you supply, so signature support comes from the OpenSSL build. Ask F5 whether nginx plans a signature setting, and check the ssl module docs and the NGINX blog post before planning certificate changes.
No dated algorithm roadmap
The only roadmap statement found is the NGINX blog's mention of Debian 13 and Ubuntu 26.04 image support, with no algorithm dates or milestones. The NGINX Plus FIPS page does not mention post-quantum algorithms either. Ask F5 for a dated plan covering which groups and signatures will be supported and in which edition, and check the NGINX blog and the NGINX Plus releases page for any later notice.
NGINX blog postUpstream curve control not documented
Connections from nginx to backends use proxy_ssl_protocols, proxy_ssl_ciphers and proxy_ssl_verify, and the proxy module page does not mention curves or key-exchange groups. Verification is off by default, so an upstream handshake may use whatever OpenSSL negotiates without any setting you control. Ask the nginx project whether proxy_ssl can select key-exchange groups, and check the proxy module docs before assuming upstream hybrid key exchange is configurable.
nginx proxy module docsQuestions engineers ask about enabling post-quantum key exchange in nginx
Is nginx quantum safe after enabling post-quantum key exchange?
No. Enabling a hybrid key-exchange group changes only how the TLS session key is agreed. It does not make nginx quantum safe as a product, and it does not change the certificates. The server still uses its RSA or ECDSA certificate keys for authentication, and nginx's package signing still depends on RSA PGP keys. The nginx ssl module docs do not describe a post-quantum certificate or signature setting for nginx, and the NGINX blog says post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x. Treat the change as one layer of the migration, and inventory the certificate, client and upstream dependencies separately.
Which nginx version is needed for post-quantum key exchange?
nginx itself has no post-quantum feature in its changelog. The key exchange comes from the OpenSSL build nginx is linked against. The NGINX blog says nginx must be compiled against OpenSSL 3.5 or later, and OpenSSL 3.5.0 was released on 2025-04-08 with hybrid groups such as X25519MLKEM768 in its default group list. OpenSSL 3.0.x distributions lack this support unless the OQS provider is added. Confirm the OpenSSL version in the nginx build output (nginx -V) and in the operating system package, since the stable 1.30.8 and mainline 1.31.10 builds from nginx.org are only as capable as the library they link. NGINX Plus R36 (2025-12-01) added support for OpenSSL 3.5.
Does enabling post-quantum key exchange in nginx cost extra?
The open-source route has no license cost. The main costs are staff time to rebuild or upgrade the OpenSSL-linked nginx, testing against clients, and maintaining the build as packages change. Those costs are largely one-time for the initial change and recur with each nginx and OpenSSL update. NGINX Plus is a commercial product from F5, and its licensing and support terms apply to that edition. The facts supplied do not give a price for either route, so ask F5 or your distributor for NGINX Plus pricing, and ask your own platform team or a services partner for a quote covering build, testing and documentation. A written scope is the most reliable way to compare options.
How do I confirm post-quantum key exchange is active in nginx?
Check three things. First, confirm the library: run nginx -V and verify the OpenSSL version, which should be 3.5 or later. Second, set the group explicitly with ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;, since the default auto value uses whatever list OpenSSL ships. Third, verify the negotiated group on live traffic. nginx provides $ssl_curve, which reports the negotiated key-exchange curve on OpenSSL 3.0 or higher, so log it or check it from a test client that offers the hybrid group. Note that the nginx ssl module docs do not mention post-quantum groups, so the verification step is the only reliable proof that a handshake used a hybrid group.
What should I ask nginx or F5 about post-quantum support?
Ask for the exact supported OpenSSL and nginx versions for each edition, and whether the hybrid groups and post-quantum signature algorithms are supported in the build you run. For NGINX Plus, ask about the R33 initial post-quantum support and how it is scoped against the R36 OpenSSL 3.5 support. Ask whether any post-quantum certificate or signature setting is planned, and whether the FIPS build, which uses the operating system's FIPS-validated OpenSSL, carries any post-quantum algorithm support. Ask for the dates of any roadmap item and for the source of each statement in writing. The NGINX Plus FIPS page does not mention post-quantum algorithms, so an answer on that point must come from F5 directly.
Can my team enable post-quantum key exchange in nginx alone?
Often yes, if the team already builds nginx from source or manages its OpenSSL packages and has a test environment that mirrors production clients. The work involves confirming the OpenSSL version, rebuilding or upgrading the library, setting ssl_ecdh_curve, testing with clients and upstreams, and documenting the result. Teams without that experience, or with many nginx instances behind different clients, often ask for outside help. DeployOpen can plan, configure, test and document the change within a fixed scope agreed in writing before work starts. DeployOpen does not issue audit reports, attestations or certifications, so any compliance assessment of the result would come from an independent auditor or certification body.
Will post-quantum key exchange break clients or upstream connections?
It can, so test before changing production. A hybrid group adds key-exchange data to the handshake, and clients or middleboxes that do not offer or handle the group may fail to connect or fall back to a weaker group. The nginx docs do not describe compatibility testing for these groups, so the test plan must come from your own traffic. Check browsers and API clients you depend on, internal services, and any proxy_ssl connections to upstreams, which have their own proxy_ssl_protocols and proxy_ssl_ciphers defaults. Keep a rollback path that restores the previous ssl_ecdh_curve value.
Does post-quantum key exchange change nginx certificate or upstream settings?
No. The settings that load certificates, such as ssl_certificate and ssl_certificate_key, and the upstream settings, such as proxy_ssl_certificate and proxy_ssl_verify, are unchanged by the key-exchange group. The ssl_certificate directive can still be repeated to load RSA and ECDSA certificates, and the key sizes and signature algorithms are set by the files you supply. Upstream verification remains off unless configured, and the proxy module page does not mention curves or key-exchange groups. Plan certificate and upstream changes as separate work items.
How DeployOpen works on this
DeployOpen starts from the build your nginx runs, since the post-quantum key exchange comes from the linked OpenSSL rather than from an nginx feature. The work is scoped against your version, library and settings, then tested and documented so your team can confirm the change took effect.
How we scope
- Confirm the nginx edition and version in use, including whether it is Open Source or NGINX Plus.
- Check the OpenSSL version nginx is built against, since OpenSSL 3.5 or later is needed for the post-quantum groups.
- Agree the written scope, covering which servers, vhosts and upstream connections are in and out of the change.
How we build
- Set ssl_ecdh_curve to the agreed group list and keep classical fallback groups such as X25519 and prime256v1 in place.
- Verify the change with a test client and check the negotiated group using the $ssl_curve variable in logs.
- Review certificate and ssl_conf_command settings, and test client and middlebox compatibility before rollout.
How we hand over
- Document the exact build, library version, configuration lines and the test steps used to confirm the handshake.
- Record which RSA and ECDSA dependencies remain, including certificates and package signing keys, so the inventory stays accurate.
- Deliver the findings and rollback steps in writing so your operators can repeat the checks themselves.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retesting after nginx, OpenSSL or client updates can be scheduled, since the group list depends on the library build.
- Confirm with your vendor and in your own environment any changes to published support status before relying on them.

