Which NATS functions depend on RSA and elliptic-curve keys

NATS depends on public-key cryptography for TLS key exchange and certificates, and for NKey and JWT signatures in operator mode. NATS Server 2.12.0 added an X25519MLKEM768 hybrid option for TLS key exchange only; no post-quantum signature support is documented as of 2026-12-03.

On this page

Which NATS functions depend on RSA and elliptic-curve keys

If you are inventorying NATS links and logins for a security assessment, the short answer is that public-key cryptography sits behind several functions: TLS certificates for client, cluster route, leaf node and gateway connections, the key exchange that establishes those TLS sessions, the pinned_certs and ocsp_peer checks that depend on certificate public keys, and the operator-mode chain of JWT and NKey signatures that authenticates credentials. NATS Server 2.12.0 added an optional X25519MLKEM768 hybrid key exchange through curve_preferences. As of 2026-12-03, the NATS docs and release notes record no post-quantum signature support for certificates, NKeys or JWTs. Anyone who must record the algorithm used per connection and per login needs to capture both facts separately, because a connection can use a hybrid key exchange while its certificate and login still rely on RSA, ECDSA or Ed25519.

Start by listing each tls block in the server configuration for client, cluster, leaf node and gateway connections, and record cert_file, curve_preferences, min_version, cipher_suites and pinned_certs for each. An unset curve_preferences uses the server's default list, which the source on the main branch places the ML-KEM hybrid curves first, so the negotiated key exchange depends on what both peers support. The NATS docs describe the TLS handshake default with two different values, 500ms in the TLS reference and 2 in the encryption guide, so confirm the value your build actually uses rather than copying either figure. For operator mode, record the operator public key and the account and user signing keys, since the server verifies the chain with those Ed25519 keys.

The NATS Server README names no single company as owner and lists security@nats.io as the reporting address, so there is no single vendor contact who can confirm algorithm-level details for your deployment. Ask your own platform team which NATS Server build and Go version were used, and whether the build is the standard open-source release or a licensed build. Synadia's FIPS build, for example, disables auth callout because it relies on X25519, and Synadia makes no FIPS certification statement, so an assessment should record the build variant along with the configuration. Treat the algorithm list you produce as a point-in-time record, dated to the build and configuration you inspected.

Which NATS dependencies apply to which version and setting

This table lists each NATS function that uses public-key cryptography, the setting that controls it, and the source and date for each row. Read it to confirm which dependencies apply to your server version and configuration, and where the sources disagree. The main takeaway is that the 2.12.0 hybrid key exchange option covers TLS key exchange only, while certificates, NKeys and JWTs remain classical.

Function or settingWhat depends on public keysVersion and source (checked 2026-12-03)
Client TLS (cert_file, key_file, verify)Server certificate and optional client certificate for mutual TLS, based on RSA or elliptic-curve keysAll versions documented; NATS TLS Reference
Cluster route TLSRoute certificate used as both client and server certificate for mutual TLS; verify is always enabled for routesAll versions documented; NATS Cluster TLS Reference
Leaf node TLSSame certificate options as client TLS, applied to leaf node connectionsAll versions documented; NATS Leafnode TLS Reference
Gateway TLSGateway connections use the TLS configuration documented for their connection type; confirm the gateway settings in your own configurationNot separately detailed in the sources listed on this page; confirm in NATS Security concepts
pinned_certsPins SHA256 fingerprints of DER-encoded public keys of peer certificatesTLS Reference; applies to the TLS block where it is set
ocsp_peerChecks peer certificates against an OCSP responder, which depends on the certificate's public keyTLS Reference; applies to the TLS block where it is set
Operator-mode JWT and NKey signaturesCredentials are JWTs signed with Ed25519 NKey pairs; the server verifies the operator, account and user signature chainOperator mode; NATS Security concepts and nkeys README; no post-quantum signature support stated as of 2026-12-03
JetStream encryption at restNot a public-key dependency: ChaCha20-Poly1305 (default) or AES-GCM is symmetric, so outside this questionNATS Encryption Guide
X25519MLKEM768 and curve_preferencesAdds ML-KEM hybrid key exchange to TLS only; certificates, NKeys and JWTs stay classical. Default curve list places the three ML-KEM hybrids first when curve_preferences is unsetAdded in 2.12.0 (PR 7280, built with Go 1.25.1); NATS curve_preferences docs and ciphersuites.go on main, read 2026-12-03
Synadia FIPS buildAuth callout is disabled because it relies on X25519, which the page says is not currently NIST approved for strict FIPS; the page makes no FIPS 140-3 certification statementSynadia FIPS page; confirm build details and licensing with Synadia
TLS handshake timeout default (conflict)Not a key dependency, but the sources disagree: the TLS Reference documents 500ms, the Encryption Guide states 2. Confirm the effective value in your build before relying on eitherSources disagree as of 2026-12-03; NATS TLS Reference and NATS Encryption Guide

Which NATS components touch public keys

NATS uses public-key cryptography in a few distinct places: TLS for each connection type, the key exchange curves those TLS sessions negotiate, certificate checks, and operator-mode credentials. JetStream encryption at rest is a separate, symmetric mechanism. Assessors should inventory each component on its own, since the upgrade path differs for each.

TLS certificates and keys per connection

NATS configures TLS separately for client, cluster route, leaf node and gateway connections, each with its own cert_file and key_file. Certificate keys are RSA or elliptic-curve public keys, so every connection type that uses TLS depends on them. Inventory each tls block on every server and leaf node, because a single cluster can carry several separate certificate chains. Confirm which chains use mutual TLS, since the cluster page notes that cert_file serves as both client and server certificate there.

NATS TLS reference

Key exchange curve preferences

The curve_preferences setting controls which curves TLS uses for key exchange, and it is unset by default on the client, leaf node and cluster pages. In server 2.12.0 and later, the accepted names include the X25519MLKEM768 hybrid, which combines ML-KEM with a classical curve. When unset, the server default lists the ML-KEM hybrids first, then classical curves, and it drops X25519 when Go FIPS 140 mode is on. Confirm the exact default in the build you run, since the list is read from main-branch source.

curve_preferences reference

Certificate pinning and OCSP checks

The pinned_certs option matches SHA256 fingerprints of DER-encoded public keys, so pins depend on the key algorithm in each certificate. The ocsp_peer option checks peer certificates against an OCSP responder, which relies on the signatures the responder issues. Changing a certificate's key type therefore changes every pin value, so regenerate and redistribute pins as part of any certificate change. Record which connections use pinning or OCSP, since these checks are easy to miss in an inventory.

NATS TLS reference

Operator-mode JWT and NKey signatures

In operator mode, NATS credentials are JWTs signed with NKey Ed25519 key pairs, and the server verifies the chain of operator, account and user signatures using only the operator public key. The NKeys project describes these as Ed25519 signatures and does not mention post-quantum signing. NATS documentation and release notes state no post-quantum signature support for NKeys or JWTs as of this review. Plan these as a separate workstream from TLS, because they are not changed by TLS curve settings.

NATS Security concepts

JetStream encryption is symmetric

JetStream can encrypt streams on disk, with ChaCha20-Poly1305 as the default cipher and AES-GCM selected by cipher: aes. Both are symmetric algorithms, so this encryption at rest does not depend on RSA or elliptic-curve keys. Keep this out of the public-key inventory, but record how the symmetric keys are protected and where they are stored. Confirm that the key used to wrap stream data is handled by the component that holds it, since the sources checked here do not describe that wrapping step.

NATS Encryption Guide

How the answer changes by NATS deployment and build

Open-source nats-server 2.12.0 or later can offer the ML-KEM hybrid key exchange for TLS. The server source on the main branch lists three hybrid curves (X25519MLKEM768, SecP384r1MLKEM1024 and SecP256r1MLKEM768) alongside the classical curves, and the NATS docs list curve_preferences as unset by default. Whether the hybrid curves are offered depends on the configuration and the Go toolchain the binary was built with, so the reader should not assume the default behavior from the version number alone.

  • Version: Confirm the running binary is 2.12.0 or later, since the X25519MLKEM768 option was added in that release.
  • Build toolchain: Run go version -m on the nats-server binary to see the Go version it was built with. The 2.12.0 release notes name Go 1.25.1.
  • curve_preferences set or unset: Check each tls block (client, cluster, leaf node, gateway) for a curve_preferences entry. When unset, the server uses its built-in default list.
  • Default list under FIPS mode: The default curve list omits X25519 when Go FIPS 140 mode is enabled, which changes what clients can negotiate.
  • Signatures are unchanged: The hybrid curves cover TLS key exchange only. Certificates, NKeys and JWTs remain on classical signature schemes.

Confirm these items in the live configuration files and binary, not only in the documentation.

Inventory NATS public-key use in the order to check it

This sequence builds a complete record of every TLS block and signing setting in a NATS deployment, so an assessor can see which connections and logins rely on RSA or elliptic-curve keys and which key exchange options are already set. Each step ends with a check against the effective configuration or the release tag, so the record reflects what the running servers actually use.

  1. Identify the server version and build

    The engineer who runs the NATS servers records the nats-server version from the release tag or the output of nats-server --version on each node, and notes the Go toolchain used to build each binary. Version 2.12.0 is the first release the nats-server release page lists with an X25519MLKEM768 curve option, and it was built with Go 1.25.1, so the version and build determine which curve names and cipher handling apply. The step is complete when every node has a recorded version and Go build in the inventory.

  2. List every TLS block by connection type

    The engineer lists each tls block in the server configuration files across four connection types: client, cluster route, leaf node and gateway. NATS documents a separate TLS configuration for each of these, so a block that is missing from one type cannot be inferred from another. The step is complete when each connection type on each node is listed with its file path, and any type that is not configured is marked as such.

  3. Record curve and cipher settings per block

    For each tls block, the engineer records the values of curve_preferences and cipher_suites, or notes that they are unset. When curve_preferences is unset, the server uses its built-in default list, which places the ML-KEM hybrid curves first and omits X25519 under Go FIPS 140 mode, so an unset value must be recorded as unset and not as a specific list. Cipher names must match the Go version used to build the server, so the Go build from step one is needed to read them. The step is complete when each block has both values recorded.

  4. Record peer verification and pinning options

    For each tls block, the engineer records whether pinned_certs, ocsp_peer and verify are set. These options depend on certificate public keys, since pinned_certs compares SHA256 fingerprints of DER-encoded public keys and ocsp_peer checks peer certificates against an OCSP responder. The cluster TLS reference states that verify is always enabled for routes, so the cluster block should be recorded with that rule noted. The step is complete when each block shows the three values, or shows that each is unset.

  5. Confirm operator mode and NKey signing use

    The engineer checks whether each deployment runs in operator mode, where credentials are JWTs signed with Ed25519 NKey key pairs, and records the operator public key that the server uses to verify the chain of operator, account and user signatures. The nkeys documentation describes NKeys as Ed25519 signatures and does not mention post-quantum cryptography, so this step records a classical signing dependency that is separate from the TLS settings. The step is complete when each cluster states whether operator mode is in use and which key files it relies on.

  6. Record the FIPS build status

    The engineer determines whether each running binary is a FIPS build, and if so, which one. For a Synadia-licensed FIPS build, the customer checks it with go version -m on the binary and a search for fips140=only in the output, as described on the Synadia FIPS page, and notes that auth callout is disabled in that build. The check is run on the installed binary rather than on the source or the release name. The step is complete when each node is recorded as FIPS or non-FIPS, with the check output kept as evidence.

  7. Read the effective configuration to close the record

    The engineer compares the inventory against the effective configuration on each running server, not only the files on disk, to catch reloaded or overridden values. Several of these settings are hot reloadable, so the file contents may differ from what is active. The engineer confirms that every value recorded in the earlier steps matches the running configuration, and corrects any difference before signing off the inventory. The step is complete when the inventory has been checked against the live configuration on each node.

Where NATS public-key checks happen in a connection

The diagram follows a client or leaf node from the start of a connection through the TLS handshake, where the key exchange and certificate verification happen, to the operator-mode check of JWT and NKey signatures that authorizes the connection. Two steps are marked: the hybrid X25519MLKEM768 key exchange, which applies only when curve_preferences allows it, and the classical signature checks, which NATS documents as the only signature mechanism in use. Optional pinned_certs and ocsp_peer checks sit inside the handshake and depend on certificate public keys. Check each step against the configuration of your version.

Public-key checks in a NATS connection, with the hybrid key exchange step marked.

What NATS has not published on post-quantum signatures and what to ask

NATS documents ML-KEM hybrid key exchange for TLS, but its docs and release notes show no post-quantum signatures for certificates, NKeys or JWTs as of 2026-12-03. The cards below list the gaps in the published record and the question to put to the vendor for each.

No post-quantum signature support

The NATS TLS reference, the security concepts page and the nkeys README describe the hybrid curves for TLS key exchange, but none of them mention ML-DSA or SLH-DSA for certificates, NKeys or JWTs. Operator, account and user chains in JWT mode are signed with Ed25519 NKeys, and the nkeys README does not mention post-quantum cryptography. Ask Synadia or the NATS project whether any signature algorithm for certificates, NKeys or JWTs is planned, and in which release.

nkeys README

No post-quantum statement in FIPS documentation

The Synadia FIPS page covers the FIPS build for strict FIPS 140-3 approved algorithms, but it does not mention post-quantum algorithms, CNSA 2.0 or a roadmap. Its statement that auth callout is disabled because it relies on X25519 also remains the only algorithm-level note on that page. Ask Synadia whether the FIPS build will add post-quantum key exchange or signatures, and whether CNSA 2.0 alignment is on its roadmap.

Synadia FIPS page

No FIPS 140-3 certification statement

The Synadia FIPS page says Synadia makes no statements or representations regarding FIPS 140-3 certification status. Customers therefore cannot cite a certificate from that page, and the build must be checked by the customer with go version -m and a grep for fips140=only. Ask Synadia for its FIPS 140-3 certification status, the module and version it covers, and whether a certificate number exists that an assessor can check.

Synadia FIPS page

Conflicting handshake timeout defaults

The TLS reference documents a default TLS handshake timeout of 500ms, while the NATS encryption guide gives a default of 2, so the two docs pages disagree as of 2026-12-03. The timeout decides how long a connection waits for TLS before it fails, which matters when an assessor tests whether slow or hybrid handshakes are accepted. Ask NATS which default the server applies, and confirm the value with a test against the version you run.

NATS TLS Reference

Hybrid support depends on the client

The server accepts X25519MLKEM768 and related hybrid curves in curve_preferences, but the hybrid key exchange only takes effect when the connecting client library also offers those curves. The published sources do not list which client libraries support them or at which versions. Ask each client library maintainer which versions negotiate X25519MLKEM768, and test every client your applications use against a server with curve_preferences set.

curve_preferences reference

What can break or fall back to classical algorithms in NATS

The main risk for NATS is that the hybrid key exchange, which combines ML-KEM with a classical curve, does not get used. It is only available in NATS Server 2.12.0 and later, so any server older than 2.12.0 cannot negotiate the hybrid curve and will fall back to a classical key exchange. Confirm the version of every node, including cluster members, leaf nodes and gateways, because a mixed fleet will negotiate whatever both sides support. Clients that do not offer the hybrid curve will also negotiate a classical one, so client libraries and their versions need the same review.

The default curve order is a second point to check. When curve_preferences is left unset, the server's default list places the ML-KEM hybrid curves first, followed by X25519, CurveP256, CurveP384 and CurveP521. That default, however, omits X25519 only when the build runs in Go FIPS 140 mode. Confirm which Go build produced your binary and whether FIPS mode is on, because the negotiated curve then depends on the build rather than on your configuration. Setting curve_preferences explicitly in each tls block removes that ambiguity, and it can be hot reloaded. Also check that cipher_suites names match the Go version used to build the server, since a mismatched name is a configuration error rather than a silent downgrade.

Two settings can route traffic around TLS. With handshake_first set to auto, the server falls back to a plaintext INFO if no TLS bytes arrive within 50 ms, so a connection can skip TLS entirely. Search for handshake_first in every configuration file and treat any auto setting as a finding to resolve. The allow_insecure_cipher_suites setting defaults to false in NATS 2.12, which disables insecure suites, but a configuration that sets it to true will re-enable them. Record the value in each environment, because the default is the safe one and an explicit override is the change an assessor will look for.

Questions engineers and vendor-risk reviewers ask about NATS public-key dependencies

Is NATS quantum safe?

NATS does not document any post-quantum signature support, and no source supports calling it quantum safe. What NATS does support is a hybrid key exchange option in TLS: the curve_preferences setting accepts the X25519MLKEM768 curve, which combines ML-KEM with the classical X25519 curve for TLS key exchange only. NATS documentation and release notes, as of 2026-12-03, state no post-quantum signature support such as ML-DSA or SLH-DSA for certificates, NKeys or JWTs. Operator-mode credentials are JWTs signed with Ed25519 NKey pairs, and the NKeys project does not mention post-quantum cryptography. Treat the hybrid key exchange as a partial measure that covers the TLS handshake, and inventory the signing dependencies separately.

Which NATS version is needed for the hybrid key exchange option?

The X25519MLKEM768 option was added in NATS Server 2.12.0, through pull request 7280, which also fixed issue 7279 about the server failing to boot when curve_preferences was set to X25519Kyber768. The 2.12.0 release was built with Go 1.25.1. Earlier versions do not accept the X25519MLKEM768 curve name in curve_preferences. Confirm the running version with the server's version output before planning changes, and check the release notes for any later version before you rely on a specific build.

Does enabling the hybrid key exchange cost extra?

The sources we checked give no cost or licensing terms for enabling the hybrid option in the open-source server, so no figure can be stated here. The open-source nats-server is Apache-2.0 licensed. Synadia offers separately licensed server builds for FIPS 140-3 environments, and those builds are obtained by contacting Synadia, so licensing for those builds is a Synadia commercial question. Ask the vendor or the project to confirm in writing whether the hybrid option carries any fee, whether it requires a particular edition or build, and whether support contracts change. Ask for those answers before you put a budget against the work.

What breaks if curve_preferences is changed?

When curve_preferences is unset, the server uses a default list that puts the three ML-KEM hybrid curves first, then X25519, CurveP256, CurveP384 and CurveP521. Setting it restricts which curves the server offers. If a client does not offer any curve in your list, the handshake can fail, or the connection can negotiate a classical curve when one is still allowed. If you remove X25519 from the list, clients that only support X25519 will be unable to connect. Test each client type, including leaf node and cluster routes, before a change reaches production. The setting is hot reloadable, so a faulty change can be reverted without a restart, but confirm that behavior in your own environment.

What should we ask NATS or Synadia about post-quantum support?

Ask a specific set of questions and record the answers with dates. Ask whether any post-quantum signature algorithm is planned for certificates, NKeys or JWTs, and by which version. Ask which editions and builds include the hybrid curve, and whether the FIPS 140-3 builds from Synadia support it, since the Synadia FIPS page does not mention post-quantum algorithms. Ask whether the vendor or project has published a roadmap, a transition guide or a deprecation plan, and where those are published. Ask Synadia whether the FIPS build disables auth callout because of its reliance on X25519, and what the plan is for that. Ask Synadia to state its FIPS 140-3 certification status in writing, since the page makes no representation on that point.

Can our team inventory these NATS dependencies alone, or do we need outside help?

Your team can start the inventory alone if it has access to the NATS configuration for each connection type: client, cluster route, leaf node and gateway. Each has its own TLS block, and each needs a review for curve_preferences, cipher_suites, pinned_certs and ocsp_peer. Check the server version and the Go build for cipher suite behavior, and note that NATS documentation disagrees on the default handshake timeout, 500ms in one place and 2 in another. Outside help is useful when the scope covers many clusters, when credentials and certificate chains must be traced across operator, account and user signatures, or when the findings must be recorded for an assessment. DeployOpen can scope and document that work as a fixed-scope engagement, with the scope and deliverables agreed in writing before work starts.

How DeployOpen works on this

DeployOpen starts from the NATS configuration you run today and maps each TLS block, operator-mode credential and JetStream setting against the public-key functions it touches. The output is a dated inventory that your security and platform teams can review, followed by a plan for the curve and certificate changes your version supports.

How we scope

  • We confirm which NATS server versions, build types and connection types (client, cluster route, leaf node, gateway) are in scope.
  • We record whether you run a standard build or a Synadia FIPS 140-3 build, because the curve defaults and auth callout behavior differ.
  • The written scope lists the configuration files, operator and account setup and JetStream streams we will review, with engagements fixed in advance.

How we build

  • We extract each tls block and compare its curve_preferences, cipher_suites, min_version, verify and pinned_certs settings with the NATS reference for your version.
  • We trace which certificates and NKey-signed JWTs depend on RSA or elliptic-curve public keys, and flag where signatures lack a post-quantum option in the vendor documentation.
  • We test hybrid key exchange (X25519MLKEM768 and related curves) in a staging cluster, including hot reload behavior, before any production change.

How we hand over

  • You receive a dated inventory of every public-key function, its connection type, and the version-specific setting that controls it.
  • The plan separates changes that key exchange settings can make from those that need new certificates, credential reissue or vendor action.
  • Each finding cites the NATS documentation or source page it came from, so your assessors can verify it without relying on us.

How we support

  • Ongoing support is available as a retainer, covering upgrades, configuration reviews and retesting after each NATS release.
  • We re-check the documentation conflicts we find, such as the handshake timeout default, when NATS publishes updated references.
  • We recommend that you confirm any roadmap or support statement for signatures directly with NATS or Synadia before relying on it in a contract.

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.