Which nginx functions depend on RSA and elliptic-curve keys

In nginx, key exchange, server and client certificates, upstream TLS and package signing all rely on RSA or elliptic-curve keys today. Post-quantum hybrid key exchange is possible only when nginx is built against OpenSSL 3.5 or later.

On this page

Which nginx functions depend on RSA and elliptic-curve keys today

Engineers and vendor-risk leads inventorying nginx need to know which functions rely on RSA or elliptic-curve keys, because those are the public-key uses a post-quantum migration has to replace. As checked on 2026-12-03, the functions that depend on these keys are ECDHE or DHE key exchange during the TLS handshake, server certificate keys (RSA or ECDSA) loaded through ssl_certificate_key, upstream client certificates set with proxy_ssl_certificate_key, and the RSA PGP keys that sign nginx Linux packages. Post-quantum key exchange is not an nginx feature: the changelog has no entry for it, so any hybrid group such as X25519MLKEM768 comes from the OpenSSL build that nginx is linked against. The stable and mainline releases checked, nginx 1.30.8 and 1.31.10, both released 2026-11-23, and NGINX Plus, which ships its own release train, all need to be read against the OpenSSL version they were built with.

The default key exchange depends on ssl_ecdh_curve, which defaults to auto and uses whatever curve list OpenSSL provides. The nginx ssl module documentation does not mention post-quantum or hybrid groups, so the reader should confirm the effective list on each host with the $ssl_curve variable, which reports the negotiated curve on OpenSSL 3.0 or higher. DHE suites only apply when ssl_dhparam is set, since it has no default. Certificate key types are whatever the operator loads, because the docs do not state a required key size or signature algorithm, and ssl_certificate can be repeated to serve RSA and ECDSA side by side. Client certificate checks through ssl_verify_client and upstream verification through proxy_ssl_verify are both off by default, so the reader should confirm which of these paths are actually configured.

Which nginx components and versions the answer applies to

This table compares each nginx function that uses public-key cryptography against the open-source and NGINX Plus editions and the OpenSSL builds underneath them. Read each row across to see the default, the public-key dependency and whether a post-quantum option is documented, then confirm the build you run. The main takeaway is that post-quantum key exchange depends on the OpenSSL build, not on an nginx setting, and the sources do not show post-quantum certificate or package-signing support.

FunctionDefault or current statePublic-key dependencyPost-quantum option and source (checked 2026-12-03)
TLS key exchange (open source)ssl_ecdh_curve defaults to auto, using the OpenSSL built-in listECDHE or DHE key agreement with the negotiated curveHybrid X25519MLKEM768 with OpenSSL 3.5 or later, per the NGINX blog and the OpenSSL 3.5 notes
Server certificatesssl_certificate has no default and the key size is set by the supplied fileRSA or ECDSA certificate keys and signaturesNo nginx setting for ML-DSA or SLH-DSA found in the nginx docs or changelog; the NGINX blog does not name ML-DSA
Client certificate verificationssl_verify_client defaults to offClient certificate signatures checked against trusted CA certificatesNo post-quantum option found in the nginx ssl module docs
Upstream TLS (proxy_ssl)proxy_ssl_verify defaults to off; proxy_ssl_protocols defaults to TLSv1.2 TLSv1.3Key exchange and any client certificate on the upstream connectionThe proxy module page does not mention curves or post-quantum groups; the handshake uses the linked OpenSSL build
Package signing (Linux packages)Signing keys include rsa4096 and rsa2048 PGP keysRSA PGP signatures on packages, including the Alpine 2048-bit RSA keyNo post-quantum signing option found in the nginx Linux packages page
Open source, OpenSSL 3.0.x or 3.1.x buildDefault TLS groups depend on the buildKey exchange and certificate signaturesThe NGINX blog says these lack post-quantum support unless the OQS provider is added; PQ signatures cannot authenticate TLS 1.3 servers
NGINX Plus R33 (2024-11-19)Initial Post Quantum Cryptography support per release notesKey exchange and certificate signatures under the OpenSSL build usedRelease notes say R33 added initial PQC support; confirm the groups and build with F5
NGINX Plus R36 (2025-12-01)Adds support for OpenSSL 3.5Key exchange and certificate signatures under OpenSSL 3.5Release notes say R36 added OpenSSL 3.5 support; confirm the enabled groups with F5
NGINX Plus FIPS buildsTLS uses the operating system's FIPS-validated OpenSSLPublic-key algorithms in that OpenSSL buildThe FIPS page does not mention post-quantum algorithms or CNSA 2.0

Which nginx functions rely on public-key algorithms

Several nginx functions use public-key cryptography, and each one depends on a different setting or file. This section lists the functions that need a key exchange, a certificate, a client check, an upstream check, or a package signature, and gives the setting or fact that governs each one.

Key exchange with ssl_ecdh_curve

The ssl_ecdh_curve directive controls which elliptic-curve groups nginx offers for ECDHE key exchange. Its default is auto, which uses the curve list built into the linked OpenSSL, so the groups actually available depend on the library version nginx was built with. ECDHE and DHE key exchange both rely on public-key math, and DHE is used only when ssl_dhparam sets a parameters file, since that directive has no default. Check the OpenSSL version in your build before assuming which groups are offered.

nginx ssl module docs

Server certificates with ssl_certificate

The ssl_certificate and ssl_certificate_key directives load PEM files with no default, so the key type is whatever the operator supplies. Repeating ssl_certificate lets nginx load both RSA and ECDSA certificates side by side. The nginx docs do not set a required key size or signature algorithm, so confirm those in the certificate files themselves. Any certificate signed with RSA or ECDSA is a public-key dependency for the TLS handshake.

nginx ssl module docs

Client certificate checks with ssl_verify_client

Client certificate verification is off by default, since ssl_verify_client defaults to off. When enabled with ssl_client_certificate or ssl_trusted_certificate, nginx checks the client certificate chain against those trusted CA files. Setting ssl_ocsp (default off, since 1.19.0) adds OCSP validation of that chain, which relies on the revocation responder and its signature. Confirm both settings in each server block that accepts client certificates.

nginx ssl module docs

Upstream verification with proxy_ssl_verify

For connections from nginx to backend servers, proxy_ssl_verify defaults to off, so upstream certificates are not checked unless you turn it on. The proxy_ssl_certificate and proxy_ssl_certificate_key directives set a client certificate for nginx to present upstream, and both have no default. The proxy module docs do not mention key-exchange groups, so the groups used upstream depend on the same linked library as the rest of nginx. Check each proxy_pass location for these settings.

nginx proxy module docs

TLS settings in the stream module

The stream module has its own SSL settings for TCP and UDP proxying, separate from the HTTP module. Its ssl_protocols defaults to TLSv1.2 TLSv1.3, ssl_ciphers to HIGH:!aNULL:!MD5, and ssl_ecdh_curve to auto. The stream page does not mention post-quantum groups, so any stream listener that terminates TLS is a separate key-exchange and certificate dependency to inventory.

nginx stream ssl module docs

Package signing keys for Linux

nginx packages for Linux are checked against the PGP key at nginx.org/keys/nginx_signing.key. The page lists two rsa4096 keys created 2024-05-29 and one rsa2048 key created 2011-08-19 that expires 2027-05-24, and Alpine uses a separate 2048-bit RSA key. Package signing therefore depends on RSA, and the signing key is a separate dependency from the TLS settings above. Confirm which key your package manager trusts before relying on an update.

nginx Linux packages page

How the answer differs by nginx build, edition and OpenSSL version

Open-source nginx built against OpenSSL 3.0.x or 3.1.x does not get post-quantum key exchange from nginx itself, because the nginx changelog has no post-quantum entry and the key exchange is handled by the linked library. The NGINX blog states that OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added, and that post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x. Certificate keys on these builds remain whatever RSA or ECDSA files the operator loads.

  • No post-quantum signature authentication: TLS 1.3 server authentication cannot use post-quantum signatures on these OpenSSL versions.
  • OQS provider required for key exchange: Post-quantum key exchange needs the OQS provider added to the OpenSSL installation.
  • Default groups stay classical: Without additional providers, ssl_ecdh_curve auto uses the curve list built into OpenSSL, which does not include the hybrid groups.
  • Package signing unchanged: nginx package signing keys are RSA on the official Linux packages regardless of OpenSSL version.

Check the exact OpenSSL version reported by nginx -V and the distribution package before assuming any post-quantum group is offered.

How nginx decides which key-exchange group is offered

nginx does not choose key-exchange groups itself. It hands the TLS handshake to the TLS library it was linked against, and the groups it offers come from that library. The ssl_ecdh_curve directive defaults to auto, which uses the curve list built into OpenSSL, so the answer to "which groups does this nginx offer?" depends on the OpenSSL version used to build the binary, not only on the nginx version. Operators should check the build with nginx -V and the OpenSSL version it reports, and should not assume two servers running the same nginx release offer the same groups if they link different OpenSSL builds.

OpenSSL 3.5.0, released 2025-04-08, added ML-KEM, ML-DSA and SLH-DSA, and its default TLS group list includes hybrid post-quantum key-exchange groups and prefers them. X25519MLKEM768 and X25519 are offered as default key shares. Under that default, a build linked against OpenSSL 3.5 or later can negotiate a hybrid group without any nginx setting changing. An explicit list such as ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1, as shown in the NGINX blog post dated 2025-12-03, also needs OpenSSL 3.5 or later at build time. The nginx changelog has no entry for post-quantum or key-exchange groups, so the capability comes from the OpenSSL build rather than from an nginx feature, and the nginx ssl module docs do not mention hybrid groups in their ssl_ecdh_curve text.

To confirm what a live server actually negotiated, use the $ssl_curve variable, added in nginx 1.21.5, which reports the negotiated key-exchange curve on OpenSSL 3.0 or higher. The $ssl_sigalg variable, added in 1.29.3, reports the signature algorithm and needs OpenSSL 3.5 or higher. Log these in the access log format or return them in a test response, then compare results across clients. Confirm the values rather than the settings alone, because a client that does not offer a hybrid group will fall back to a classical one.

Where public-key operations occur in an nginx request path

The diagram starts with a client opening a TLS connection to nginx, where ECDHE key exchange and the server certificate (RSA or ECDSA) are handled by nginx's linked TLS library and set by ssl_ecdh_curve, ssl_certificate and ssl_certificate_key. Next, nginx may verify a client certificate when ssl_verify_client is on, with ssl_ocsp adding OCSP checks on that chain. Then nginx opens a connection to the upstream, where proxy_ssl_certificate and proxy_ssl_certificate_key present a client certificate, and upstream verification happens only when proxy_ssl_verify is set, since it defaults to off. A separate path covers package signing, where nginx.org packages are checked against RSA PGP keys. Check each governing directive in your own configuration.

Public-key operations in nginx: client handshake, upstream TLS and package signing.

What to check on each nginx server before planning a change

This sequence records, for each nginx server, the build, the key types, the verification and key-exchange settings, and the edition and version line. The result is an inventory that shows which public-key dependencies exist and which settings are in effect before any change is planned.

  1. Confirm the build and linked OpenSSL version

    Run nginx -V on each server and record the nginx version and the OpenSSL version named in the output. Nginx hands the TLS handshake to the linked TLS library, so the available key-exchange groups depend on that library version, not on the nginx version alone. The step is done when the OpenSSL version is written next to the server name. If the output shows a version earlier than OpenSSL 3.5.0, note that OpenSSL 3.5.0 added post-quantum algorithms and hybrid key-exchange groups by default, and that the NGINX blog says post-quantum support requires a build against OpenSSL 3.5 or later.

  2. List certificate key types

    Find every ssl_certificate and ssl_certificate_key directive in the configuration, including includes, and record the key type of each certificate file, such as RSA or ECDSA, along with its key size. Nginx does not set a required key size or signature algorithm, so these come from the files the operator supplied. Some servers load more than one certificate because ssl_certificate can be repeated. The step is done when every certificate file on the server has a recorded key type and the list matches what the configuration loads.

  3. Check client verification and upstream verification

    Check whether ssl_verify_client is set and whether it is on, since it defaults to off, and note the ssl_client_certificate or ssl_trusted_certificate files it uses. Then check whether proxy_ssl_verify is set for upstream connections, since it also defaults to off. The step is done when each server has a recorded value for both directives, plus whether ssl_ocsp is set for client chain validation.

  4. Check DH parameters and ephemeral key use

    Check whether ssl_dhparam is set. This directive has no default, so DHE cipher suites are not used unless a DH parameters file is configured. Record the file path and the server block it applies to. The step is done when each server has a recorded yes or no for DH parameters, and the file path where one is set.

  5. Record protocols and ECDH curves

    Record the effective values of ssl_protocols and ssl_ecdh_curve for each server. The ssl_protocols directive defaults to TLSv1.2 and TLSv1.3, and ssl_ecdh_curve defaults to auto, which uses the curve list built into OpenSSL. If either directive is set explicitly, record the value as written. The nginx ssl module docs do not mention post-quantum or hybrid groups, so the curve list in effect comes from the OpenSSL build. The step is done when both values are recorded for every server and the stream module values are noted for any stream blocks.

  6. Confirm the edition and version line

    Confirm whether each server runs NGINX Open Source, NGINX Plus, or a distribution package, and record the version line. For nginx.org builds, the stable and mainline versions are listed on the project home page. For NGINX Plus, the release notes list builds on specific Open Source bases. The step is done when each server has a recorded edition, version and OpenSSL link, and any NGINX Plus servers have a noted build identifier.

What the nginx docs and vendor have not published

The nginx ssl, proxy and stream module docs, the changelog and the NGINX Plus FIPS page cover key exchange, certificates and FIPS validation, but say nothing about post-quantum algorithms or dated plans. Each gap below is something to put to F5 or the nginx project before relying on nginx for an audit or a migration.

No post-quantum groups in the curve docs

The ssl_ecdh_curve page in the HTTP ssl module docs, checked 2026-12-03, does not mention post-quantum or hybrid key-exchange groups. The stream ssl and proxy module pages do not mention them either. Post-quantum key exchange in nginx comes from the OpenSSL build, and the nginx docs do not say which groups a given build offers. Ask F5 or the nginx project to name the hybrid groups supported in each release and the OpenSSL version required.

nginx ssl module docs

No ML-DSA or SLH-DSA settings

The nginx docs name no ML-DSA or SLH-DSA directives or parameter values. The only signature-related limit found is the NGINX blog's statement that post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x, and that post does not name ML-DSA. Ask F5 whether nginx can load ML-DSA or SLH-DSA certificates, which OpenSSL version is needed, and which configuration keys would select them.

NGINX PQC blog post

No required certificate key or signature

The ssl module docs do not state a required certificate key size or signature algorithm. nginx accepts whatever PEM files the operator supplies through ssl_certificate and ssl_certificate_key, so the signature algorithm is set by the certificate, not by nginx. Ask F5 or the nginx project whether any signature algorithm or key size is mandatory for a given build, and whether a certificate chain using a post-quantum signature would be accepted.

nginx ssl module docs

FIPS page silent on post-quantum

The NGINX Plus FIPS page says TLS uses the operating system's FIPS-validated OpenSSL, and that NGINX Open Source is not verified for FIPS environments. It does not mention post-quantum algorithms or CNSA 2.0. Ask F5 whether the FIPS-validated OpenSSL on a supported operating system includes ML-KEM or ML-DSA, and whether a CNSA 2.0 position is planned for NGINX Plus.

NGINX Plus FIPS page

Blog gives no dated roadmap

The NGINX blog post on post-quantum support names image roadmap items only for Debian 13 and Ubuntu 26.04, and gives no dated algorithm roadmap. NGINX Plus release notes record initial post-quantum support in R33 and OpenSSL 3.5 support in R36, but do not say when further algorithms will arrive. Ask F5 for a dated plan covering key exchange, signatures and the open-source edition, including when each will be released.

NGINX Plus releases

What can go wrong when the key-exchange and certificate settings change

The most common silent failure is a server that keeps classical key exchange after an upgrade. With ssl_ecdh_curve left at its default of auto, nginx uses whatever curve list is built into the linked OpenSSL. The nginx ssl module docs state that the available groups depend on the library version nginx was built with, so an operator can change nothing in the configuration and still end up with classical groups only. Before relying on a hybrid group, confirm the OpenSSL version in the nginx build, then set ssl_ecdh_curve explicitly and check the negotiated group with the $ssl_curve variable, which the changelog says is available from 1.21.5 on OpenSSL 3.0 or higher. The nginx docs do not mention post-quantum groups on the ssl_ecdh_curve page, so an explicit list is the only reliable way to make the intent visible.

Post-quantum signatures have a version limit that a certificate change alone cannot get around. The NGINX blog post dated 2025-12-03 says post-quantum signature algorithms cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x, and that OpenSSL 3.0.x distributions lack post-quantum support unless the OQS provider is added. Replacing the certificate file on those builds will not change what the server can authenticate with. Check the OpenSSL version before planning any certificate change, and record the $ssl_sigalg variable, which the changelog says needs OpenSSL 3.5 or higher, to confirm the signature algorithm in use. Hybrid key exchange and client compatibility should be tested separately; the sibling topic on nginx post-quantum compatibility with clients covers that ground.

Session tickets are on by default, which affects how long a session key stays protected. The ssl_session_tickets directive defaults to on in the nginx ssl module docs. Tickets are encrypted with keys the server holds, so a change in key exchange does not by itself change how a resumed session is protected. Review whether the ticket key rotation and lifetime match the security policy, and confirm with the operator's own configuration whether tickets should stay enabled. Also note that ssl_verify_client defaults to off and proxy_ssl_verify defaults to off, so client and upstream certificate checks are not active unless configured.

Questions engineers ask about nginx keys and post-quantum readiness

Is nginx quantum safe?

Nothing in the sources supports calling nginx quantum safe, and this page does not make that claim. What the sources show is narrower: nginx hands the TLS handshake to the linked TLS library, so post-quantum key exchange depends on the OpenSSL build behind it. OpenSSL 3.5.0, released 2025-04-08, added ML-KEM, and its default group list prefers hybrid groups such as X25519MLKEM768. The nginx changelog has no post-quantum entry, and the nginx docs name no ML-DSA or SLH-DSA settings. Whether a given server uses post-quantum key exchange is a question of its build and configuration, which you can check directly.

Which nginx version or OpenSSL build is needed for hybrid key exchange?

The NGINX blog post dated 2025-12-03 says nginx must be compiled against OpenSSL 3.5 or later to support post-quantum key exchange. OpenSSL 3.0.x distributions lack this support unless the OQS provider is added. The blog's example setting is ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;. The nginx version number is less important than the OpenSSL version it was linked against. Check the output of nginx -V for the OpenSSL build, then confirm the negotiated group with the $ssl_curve variable, which is available on OpenSSL 3.0 or higher.

Does moving nginx to post-quantum key exchange cost extra?

The sources do not give a price for nginx, NGINX Plus, F5 support or any upgrade, so no figure appears here. Open-source nginx is distributed under the 2-clause BSD License. NGINX Plus is a commercial edition from F5, with releases such as R36 adding OpenSSL 3.5 support. Ask F5 for NGINX Plus licensing and support terms for the release you run. The main costs usually come from labor: rebuilding nginx against a newer OpenSSL, testing clients and middleboxes, and updating configuration. Those costs recur whenever the build or library changes.

What breaks if nginx is moved to hybrid post-quantum groups?

The sources do not list specific breakage, so treat this as a test plan rather than a known result. Hybrid groups make the ClientHello and ServerHello larger, so check clients, load balancers and network devices that inspect or limit TLS handshakes. nginx's ssl_ecdh_curve must list every curve used by ECDSA certificates, so a list that omits them can break handshakes. If you use ssl_conf_command, the docs warn it may cause unexpected behavior. Test with the clients you actually serve before changing production settings.

What should we ask F5 or the nginx project about post-quantum support?

Ask F5 and the nginx project which OpenSSL version each NGINX Plus release is built against, and whether the group list includes hybrid groups by default. Ask whether ML-DSA or SLH-DSA authentication is planned, since the NGINX blog says post-quantum signatures cannot be used for TLS 1.3 server authentication on OpenSSL 3.0.x and 3.1.x, and the docs name no such settings. Ask for a dated roadmap, because the NGINX blog lists only Debian 13 and Ubuntu 26.04 image support. For FIPS environments, ask how post-quantum algorithms relate to the operating system's FIPS-validated OpenSSL, which the FIPS page does not address.

Can our team check nginx post-quantum exposure without outside help?

Yes, many of the checks need only nginx's own output and your configuration files. Start with nginx -V to read the OpenSSL version, then review ssl_protocols, ssl_ciphers, ssl_ecdh_curve, ssl_certificate and proxy_ssl_* directives. Confirm which key-exchange groups actually negotiate using $ssl_curve in your logs. Check signing keys for package updates against the nginx signing key page, which lists RSA keys. Outside help is useful when you need a documented inventory across many servers, testing against client populations you cannot reproduce, or evidence for an assessor. DeployOpen can plan and run that work in your own infrastructure on a fixed scope.

Does the nginx project publish a dated post-quantum roadmap?

The sources checked do not show a dated post-quantum roadmap from the nginx project or F5. The nginx changelog contains no post-quantum entry, and the NGINX Plus FIPS page does not mention post-quantum algorithms or CNSA 2.0. The NGINX blog post lists image support for Debian 13 and Ubuntu 26.04 but no algorithm dates. Record that as the state of the sources at the check date, and ask F5 for any published plan with dates before relying on one.

How DeployOpen helps assess and plan nginx key dependencies

DeployOpen works through the places nginx uses RSA and elliptic-curve keys: the TLS key exchange, server and client certificates, upstream connections and package signing. The work produces a dated inventory of which settings and builds rely on public-key algorithms, so your team can plan changes from evidence rather than assumption.

How we scope

  • We agree in writing which nginx builds, editions and server blocks fall inside the assessment.
  • We confirm which listeners, stream proxies and upstream connections your team wants reviewed.
  • The written scope names which key dependencies are covered and which are left for your own review.

How we build

  • We record the installed nginx version, the OpenSSL version it is linked against, and the build options.
  • We read the effective ssl_protocols, ssl_ciphers, ssl_ecdh_curve and certificate directives from your configuration.
  • We test each listener and upstream to see which key exchange groups and certificate key types are actually negotiated.

How we hand over

  • You receive an inventory mapping each nginx function to the public-key algorithms it depends on.
  • The report notes which settings are defaults and which were set explicitly in your configuration.
  • We document the version and library dates the findings apply to, so later reviewers can check them.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
  • We can repeat the inventory after an nginx, OpenSSL or configuration change to confirm the results.
  • Support scope and any follow-up work are agreed in writing before it starts.

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.