Where NetBird uses cryptography: WireGuard tunnels, peer keys, management, login

NetBird uses WireGuard for peer tunnels, Curve25519 for peer keys, and TLS, Ed25519 and stored-secret keys in its self-hosted management stack. This entry lists each place to record and which ones depend on public-key algorithms.

On this page

Where does NetBird use cryptography, and why inventory it now

If you need an inventory entry for NetBird before planning a post-quantum move, start with where the product depends on public-key cryptography. NetBird uses cryptography in its WireGuard data path, in the peer keys each client generates, in its Signal and Management services, in its self-hosted TLS, signing and stored-secret keys, and in its login and SSH paths. Each of these is a separate line in the inventory, because each one has a different key type, a different owner and a different upgrade path.

The entry matters now because a post-quantum plan cannot be scoped until you know which keys and protocols are in use. The security lead should own the record, since it is the document that gets reviewed, approved and kept current. The platform engineer should collect the underlying facts from the deployment: the NetBird version, whether self-hosted or cloud-managed, the identity provider in use, which peers run SSH, and what is set for server.peerAuth.signingKeyFile, server.store.encryptionKey and the reverse proxy's certificate storage. Confirm each of these in your own environment rather than assuming the defaults still apply.

Record the inventory against specific versions and settings, and date it. The NetBird project has published its own post-quantum material, including the Rosenpass documentation, which is marked as deprecated, and an open pull request for a hybrid ML-KEM key exchange that has not been merged as of 2026-12-03. Treat those statements as provisional, and note in the entry which ones you checked and when, so a later review can see what changed.

Every place NetBird uses cryptography, by area

This table maps each NetBird area that uses cryptography to what it protects, its algorithm family, whether it depends on public-key algorithms, and where it is configured. Read the last column first if you are building an inventory, and treat any cell marked not stated as an item to confirm with NetBird before relying on it.

AreaWhat it protectsAlgorithm family and public-key dependenceWhere it is configured
Data-path tunnelsTraffic between peers over WireGuardCurve25519 key exchange, ChaCha20-Poly1305, BLAKE2s. Depends on public-key algorithms, and is not post-quantumPeer client, WireGuard protocol; no server setting for the tunnel cipher
Peer keysIdentity of each client deviceEach client generates a Curve25519 key pair. Depends on public-key algorithms. Private key stays on the machineGenerated on each client when it registers
SignalConnection candidates exchanged between peersNaCl box: Curve25519, XSalsa20, Poly1305. Depends on public-key algorithms. Signal sees which keys communicate, not message contentsSignal service, end to end between clients
Management and loginPeer registration and user sign-in through an identity providerToken validation via OIDC and JWKS. The JWT signing algorithm is not stated. Depends on public-key algorithms in the identity providerserver.auth.issuer and the identity provider settings
Self-hosted TLSConnections to the management, signal and dashboard endpointsTLS via the reverse proxy and Traefik. Certificates from Let's Encrypt. Depends on RSA or ECDSA certificate keys issued by the certificate authorityReverse proxy; Traefik certificates stored at /letsencrypt/acme.json; server.listenAddress defaults to :80
Signing keysPeer authentication tokens issued by the serverEd25519 private key in PEM PKCS#8 format. Depends on public-key algorithms. Off by defaultserver.peerAuth.signingKeyFile, generated by the server if missing
Stored secretsSetup keys, API tokens and other stored secretsSymmetric encryption with a base64-encoded 32-byte key. Not dependent on public-key algorithmsserver.store.encryptionKey; NB_STORE_ENCRYPTION_KEY overrides it from v0.83.0
STUNDiscovery of public addresses for peersNo authentication or encryption is described for external STUN. Not stated whether public-key algorithms are usedserver.stunPorts, default UDP 3478 on the embedded server
SSHRemote shell access to peers through NetBirdJWT from the OIDC provider, validated against JWKS. Host key types and algorithms are not stated. Requires v0.61.0 or laterNetBird SSH settings and OpenSSH clients
Client updatesIntegrity of the client software packageNo signature or checksum verification is mentioned on the auto-update page. Not stated. Automatic updates are off by defaultClient auto-update settings
RosenpassRotation of WireGuard pre-shared keys with post-quantum algorithmsClassic McEliece and Kyber, rotating keys every two minutes per peer. Deprecated, and may be removed in a future releasenetbird up --enable-rosenpass, desktop Security toggle, mobile settings, or MDM keys rosenpassEnabled and rosenpassPermissive
ML-KEM proposalWireGuard pre-shared key from a hybrid key exchangeProposed hybrid X25519 and ML-KEM exchange. Parameter set unconfirmed between ML-KEM-1024 and X25519MLKEM768. Open, not merged, and experimental in the docsnetbird up --enable-pq-mlkem, mlkemEnabled MDM key, NB_ENABLE_PQ_MLKEM, or a Management account setting

Which protocols NetBird terminates and originates

NetBird runs several distinct cryptographic protocols, each with its own algorithm choice and its own owner. Peer-to-peer traffic, control-plane messages, TLS at the edge, STUN discovery, SSH logins and the optional Rosenpass layer each need separate review. Inventory each one by the setting or fact that selects its algorithm.

WireGuard data path

Peer-to-peer tunnels use the WireGuard construction Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s. Curve25519 handles key exchange, ChaCha20-Poly1305 handles authenticated encryption, BLAKE2s handles hashing and HKDF derives keys. The algorithm is fixed by the WireGuard protocol, not by a NetBird setting. Curve25519 is not post-quantum, so this is the first component to inventory. The relay cannot decrypt relayed traffic.

WireGuard protocol

Signal link and connection candidates

The Signal service carries connection candidates between peers, encrypted end to end with NaCl box. NetBird documents this as Curve25519, XSalsa20 and Poly1305. Signal can see which public keys communicate but not message contents. Per the 2024 Rosenpass article, connections to Signal and Management are not quantum-resistant, so check this path separately from the tunnel itself.

How NetBird works

TLS termination at the reverse proxy

The reverse proxy terminates TLS for the self-hosted management endpoints. The built-in Traefik obtains Let's Encrypt certificates through the TLS challenge and stores them at /letsencrypt/acme.json. Certificate key type and signature algorithm come from the issuing CA, so confirm them in your own deployment. The listener defaults to :80, and the reverse proxy you choose sets the TLS policy.

Configuration files reference

Embedded STUN server

The embedded STUN server listens on UDP port 3478 by default, set through server.stunPorts. It helps peers discover their public addresses for NAT traversal. The configuration reference describes no authentication or encryption settings for external STUN, so confirm the exposure and access controls in your environment before assuming any protection.

Configuration files reference

OIDC and JWT path for SSH

NetBird SSH authenticates users with a JWT from the OIDC identity provider, validated against the management server's JWKS endpoint. It requires NetBird v0.61.0 or later and OpenSSH clients. The SSH docs do not specify host key types or algorithms, and the embedded identity provider does not state a JWT signing algorithm. Confirm both with NetBird and in your own configuration.

NetBird SSH docs

Rosenpass post-quantum layer

Rosenpass is NetBird's post-quantum feature, using Classic McEliece and Kyber to rotate WireGuard pre-shared keys every two minutes per peer. It is off by default and enabled per device. The docs now state Rosenpass is deprecated, and netbird up prints a warning from v0.82.0 that it may be removed in a future release. A Rosenpass peer connects only to other Rosenpass peers unless permissive mode is set.

Quantum-resistance docs

Which certificates and keys NetBird holds, and where each lives

Each NetBird client generates its own WireGuard key pair. The public key is sent to the Management service, and the private key stays on the machine where it was generated. Because the private key never leaves the client, the Management service does not hold it. These keys carry the Curve25519 key exchange that WireGuard uses for every tunnel, and that algorithm is not post-quantum.

  • Generation: the client creates the pair itself when it registers, so no central service issues it.
  • Storage: the private key remains on the endpoint. The NetBird documentation does not specify where on disk or in which OS key store it is kept, so confirm this on each platform.
  • Registration: peers register through an identity provider such as Okta or with a setup key, and only the public key is uploaded.
  • Rotation: the documentation does not describe a central rotation process for peer keys, so confirm with NetBird how a key is replaced when a device is re-registered or reset.
  • HSM or TPM: the NetBird documentation does not state whether peer private keys can be placed in a TPM or HSM.

Check the client platform you run and ask NetBird where each private key is stored on that platform.

How administrators and tools reach NetBird, and what protects each path

Administrators and tools reach NetBird through several paths, and each one has its own protection. The management interface and API are served through the self-hosted reverse proxy, which terminates TLS. In the self-hosted configuration reference, Traefik obtains Let's Encrypt certificates using the TLS challenge and stores them at /letsencrypt/acme.json, and server.listenAddress defaults to :80. The supplied facts do not state which TLS versions or cipher suites the management API accepts, so confirm those in your own deployment and in the reverse proxy's configuration. API tokens and setup keys are encrypted at rest with server.store.encryptionKey, a base64-encoded 32-byte key. From v0.83.0, NB_STORE_ENCRYPTION_KEY overrides it, so check which value your deployment actually uses.

NetBird SSH is the path that depends most on public-key identity. It authenticates users with a JWT from the OIDC identity provider, validated against the management server's JWKS endpoint. It requires NetBird v0.61.0 or later and OpenSSH clients. The SSH documentation does not specify host key types or algorithms, and the JWT signing algorithm is not stated in the supplied facts for the embedded identity provider either. Before relying on this path, ask NetBird which host key types and signing algorithms it uses, and confirm them against a test host. Client-to-Management and client-to-Signal traffic is protected separately. Each client's WireGuard private key stays on the machine, and Signal carries connection candidates encrypted end to end with NaCl box (Curve25519, XSalsa20 and Poly1305). Signal can see which public keys communicate, though not the message contents.

The embedded identity provider publishes its signing keys at /oauth2/keys, and tokens are validated against server.auth.issuer. Peer authentication through server.peerAuth.signingKeyFile is off by default and takes a PEM PKCS#8 Ed25519 private key if set. Treat the Ed25519 key file as sensitive material to back up and restrict. Note also that NetBird's own Rosenpass docs state that connections to Signal and Management are not quantum-resistant. Inventory these paths as public-key dependencies, and record for each one the algorithm, the key location and the owner before planning any change.

Client updates and what the vendor controls

NetBird's client software, source code and self-hosted server image each sit under a different party's control. The cards below separate what a customer can check or configure from what only NetBird or the open-source project can change, which matters when you inventory the WireGuard tunnel code and peer key handling that these components contain.

Client automatic updates

Automatic updates on NetBird clients are off by default, so a device keeps its installed version until someone changes that setting or updates the client manually. When updates are enabled, the client downloads its package from the official NetBird repository. The WireGuard key handling and tunnel code ship inside that package, so the installed version determines what peer key and handshake behavior is running. Check the client version on each device and the auto-update setting in your deployment. Only NetBird controls what the package contains and how it is published.

Auto-update docs

Package signature and checksum verification

The NetBird auto-update documentation does not mention any signature or checksum verification for downloaded client packages. Customers should not assume that an update has been cryptographically verified before installation. Ask NetBird to confirm in writing how packages are signed or hashed, where the verification keys or checksums are published, and whether the client checks them. Until that is documented, treat the update path as a trust decision on the official repository. Only NetBird can publish that verification information or change how the client validates packages.

Auto-update docs

Open-source build and licensing

Most of the NetBird repository is licensed under BSD-3-Clause, while the management, signal and relay directories are licensed under AGPLv3. This split matters if you build clients or the server from source, or modify the management service, because AGPLv3 carries source-sharing obligations for those components. Your build of the client uses the BSD-3-Clause code path, so you can inspect or compile the WireGuard-related client code yourself. Confirm the licenses in the repository's current revision before you rely on them in a build or distribution.

NetBird GitHub repository

Self-hosted server image

If you run the management, signal and relay services yourself, you choose the server image version and when to upgrade it. The server configuration sets the TLS termination, the signing key for peer authentication (server.peerAuth.signingKeyFile, unset by default) and the encryption key for stored secrets (server.store.encryptionKey). You control which version runs and these settings in your environment. NetBird controls the image contents, the default values for new releases and any changes to the Management, Signal or Relay code. Record the image tag and configuration file you deploy so the inventory of keys and certificates stays accurate.

Configuration files reference

Which NetBird items depend on public-key algorithms

The items that depend on public-key algorithms and so fall in scope for a post-quantum migration are the key exchanges and signing keys that NetBird uses in its data path and control plane. The first is the Curve25519 key exchange inside the WireGuard handshake, which the WireGuard protocol page names as part of the Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s construction. The second is the Curve25519 key agreement in the NaCl box that NetBird's Signal service uses to encrypt connection candidates end to end. The third is the Ed25519 peer-authentication signing key, which the self-hosted setting server.peerAuth.signingKeyFile takes as a PEM PKCS#8 file and which is unset by default, so peer authentication is off unless an administrator enables it. The fourth is the set of TLS certificate keys that the reverse proxy terminates, including the Let's Encrypt certificates that the built-in Traefik stores at /letsencrypt/acme.json. Each of these should be listed in the inventory with its algorithm, the component that holds it and the setting that controls it.

Two groups of items rely on symmetric algorithms and hashes rather than public-key algorithms. The first is the stored-secret key, server.store.encryptionKey, a base64-encoded 32-byte key that encrypts setup keys, API tokens and other stored secrets, and which NB_STORE_ENCRYPTION_KEY overrides from v0.83.0. The second is the symmetric and hash parts of the WireGuard data path: ChaCha20-Poly1305 for authenticated encryption and BLAKE2s for hashing, along with HKDF for key derivation and the optional pre-shared key that WireGuard mixes into the handshake. These do not carry the same public-key exposure, but the inventory should still record them, because the pre-shared key is also the layer that NetBird's Rosenpass feature and the open ML-KEM proposal use to add post-quantum material. Confirm the storage key's rotation process with your own configuration, since the configuration reference does not describe one.

For the algorithm detail behind these items, use the sibling pages on RSA and elliptic-curve keys, which cover where Diffie-Hellman and elliptic-curve keys appear and which stronger settings exist today, and on what a post-quantum upgrade of NetBird could require. Support status is covered separately, and the docs state that Rosenpass is deprecated and may be removed in a future release, so check the current status before relying on it. The NetBird docs page on quantum resistance is the primary source for those statements, and the configuration files reference is the source for the self-hosted settings named above.

How to gather the NetBird cryptography inventory

This sequence produces a dated record of where your NetBird deployment uses WireGuard keys, self-hosted signing and encryption keys, client versions and optional Rosenpass settings. Work through it on the self-hosted management server and on each client, then keep the output as your inventory baseline for later migration planning.

  1. Export the self-hosted configuration

    An administrator with access to the self-hosted deployment exports the current configuration file and records the values for server.peerAuth.signingKeyFile, server.store.encryptionKey and server.stunPorts. If server.peerAuth.signingKeyFile is unset, peer authentication is off by default and the record should say so. The server generates the signing key file if it is missing, so note whether the file exists and who can read it. For server.store.encryptionKey, record that it is a base64-encoded 32-byte key and where it is stored. For server.stunPorts, the default is UDP port 3478, and the record should show the value in use. The step is done when the three values are written down with their source file and date.

  2. List the Let's Encrypt store and identity keys

    On the reverse proxy host or the container running the built-in Traefik, locate /letsencrypt/acme.json and record which certificates it holds, their domains and their expiry dates. This file is where the built-in Traefik stores Let's Encrypt certificates obtained with the TLS challenge. Next, request the /oauth2/keys endpoint on the embedded identity provider and save the published signing keys. Record the key identifiers and key types returned. The page does not state the JWT signing algorithm, so mark that field as unconfirmed for now. The step is done when both the certificate inventory and the saved key listing are attached to your record.

  3. Record client versions and auto-update setting

    Collect the NetBird client version on every enrolled device, using the client's status or version output, and add the list to your inventory. For each device, check whether automatic updates are enabled. Automatic updates are off by default, so a device still at its installed version will not change until someone updates it. Note that the auto-update documentation does not mention signature or checksum verification, so record that as an open question rather than a confirmed control. Group devices by version so you can see which ones predate any feature you plan to rely on. The step is done when every device has a version and an auto-update status recorded.

  4. Confirm the SSH feature version

    Identify each device that uses NetBird SSH, and confirm its client is version v0.61.0 or later. Devices older than that version do not have the feature, so exclude them from any SSH analysis. For devices that do run the feature, record that SSH authenticates users with a JWT from the OIDC identity provider, validated against the management server's JWKS endpoint. Also record the OpenSSH client versions in use, because the documentation requires OpenSSH clients. The SSH documentation does not specify host key types or algorithms, so leave those fields marked as unconfirmed in the inventory. The step is done when the SSH-capable devices, their versions and their OpenSSH clients are listed.

  5. Check Rosenpass and ML-KEM settings per device

    On each device, determine whether Rosenpass is enabled. Rosenpass is off by default and is set per device through the command netbird up --enable-rosenpass, the desktop Security toggle, the mobile settings, or the MDM keys rosenpassEnabled and rosenpassPermissive. There is no account-wide dashboard switch, so you must check each device individually. Also check whether the ML-KEM flag is set through netbird up --enable-pq-mlkem, the mlkemEnabled MDM key, NB_ENABLE_PQ_MLKEM=true or a Management account setting. The ML-KEM option is an open pull request that is not merged as of 2026-12-03, so a device may not expose it at all. Note that Rosenpass is deprecated from v0.82.0, and that a Rosenpass-enabled peer connects only to other Rosenpass-enabled peers unless permissive mode is set. The step is done when each device shows its Rosenpass state, its permissive setting and whether the ML-KEM flag is available.

  6. Send open questions to the vendor

    Collect the items the public facts leave open and send them to NetBird in writing. Ask which JWT signing algorithms the embedded identity provider and the SSH JWT flow use. Ask which SSH host key types and algorithms the SSH feature offers. Ask whether external STUN traffic is authenticated or encrypted, since the configuration reference describes no settings for it. Ask whether the ML-KEM parameter set is ML-KEM-1024 or X25519MLKEM768, because pull request 7098 and the open documentation pull request disagree. Ask whether the Rosenpass removal timeline is set, and whether any post-quantum signature support or FIPS statement is planned. Keep the vendor's written answers, dated, with your inventory. The step is done when each question has a sent date and a response or a note that none has been received.

Questions about NetBird's cryptography inventory

Is NetBird quantum safe?

The facts support no such claim. NetBird's only shipped post-quantum feature is Rosenpass, which the docs now list as deprecated: from v0.82.0, netbird up prints a warning when --enable-rosenpass or --rosenpass-permissive is used, and the feature may be removed in a future release. Rosenpass is off by default and is enabled per device. The optional hybrid X25519 and ML-KEM exchange is an open, unmerged pull request as of 2026-12-03. WireGuard's core key exchange still relies on Curve25519, and NetBird has published no post-quantum signature support and no FIPS or CNSA 2.0 statement on the pages checked. Record NetBird as not having a post-quantum default, and confirm current status with the vendor before any decision.

Which NetBird version should the inventory entry record?

Record the exact client and management versions you run, since the post-quantum picture depends on them. Rosenpass has an embedded server since v0.25.4, and the deprecation warning begins at v0.82.0. The server.store.encryptionKey override via NB_STORE_ENCRYPTION_KEY applies from v0.83.0, and SSH requires v0.61.0 or later. Note the Rosenpass flags you use, since --enable-rosenpass and --rosenpass-permissive change which peers can connect. Also record that the ML-KEM work is not in any released version as of 2026-12-03, so it should not appear as an enabled capability in your entry.

Does checking NetBird's cryptography cost extra?

The cost depends on how much of the inventory you do yourself and how many peers and self-hosted components you run. Reading the settings is mostly staff time: the Rosenpass state per device, the self-hosted configuration keys such as server.peerAuth.signingKeyFile and server.store.encryptionKey, and the reverse proxy and TLS setup. Costs rise with the number of devices, because Rosenpass is set per device and has no account-wide switch. If you want outside help, ask for a written scope that lists which settings, peers and versions are covered, the evidence delivered, and whether retesting is included. DeployOpen does not publish prices, and a quote follows from that written scope.

What breaks if a NetBird key is rotated?

It depends on which key. Each client generates its own WireGuard key pair and sends only the public key to Management, so rotating a client key re-registers that peer. Rosenpass rotates WireGuard pre-shared keys every two minutes per peer, so rotation there is automatic while the feature is on. A Rosenpass-enabled peer connects only to other Rosenpass-enabled peers unless --rosenpass-permissive is set, so mixed fleets can lose connectivity when settings change. On the self-hosted side, changing server.store.encryptionKey affects the encryption of stored setup keys and API tokens, and server.peerAuth.signingKeyFile is unset by default. Test any rotation on a non-production peer first and confirm the effect in your own environment.

What should we ask NetBird about post-quantum plans?

Ask for a dated written answer to each of these: whether the optional ML-KEM exchange (pull request #7098) will be merged and in which release, which parameter set it uses, since the pull request and docs describe it inconsistently, and whether it stays off by default. Ask when Rosenpass will be removed and what replaces it. Ask whether post-quantum signatures such as ML-DSA or SLH-DSA are planned for the Management, Signal and relay services, and whether the company has any FIPS or CNSA 2.0 position. Ask how the embedded identity provider signs tokens, since the docs do not state the algorithm, and whether SSH host key types are documented. Keep the vendor's reply with the entry.

Can our team collect NetBird's cryptography inventory itself?

Yes, for most of it, if someone on your team can read the client and self-hosted settings and run netbird up on test devices. The main items are the WireGuard tunnel, the peer key model, the Signal and Management channels, the Rosenpass flags, the reverse proxy and Let's Encrypt setup, the STUN port on UDP 3478, the SSH JWT path, and the client auto-update setting, which is off by default and does not mention signature or checksum verification. Outside help is most useful for the self-hosted side and for evidence checks of versions and settings across many devices. Plan for a repeatable check that you can rerun when NetBird ships a release.

How DeployOpen helps with a NetBird cryptographic inventory

DeployOpen inventories where a self-hosted NetBird deployment uses public-key cryptography, from WireGuard tunnels and peer keys to management, signal, relay and login. The work runs as a fixed-scope engagement in your own infrastructure, and the output is a written inventory your security and compliance teams can review and reuse.

How we scope

  • We agree in writing which NetBird components, versions and deployment modes the inventory covers.
  • We confirm which clients, platforms and self-hosted services are in scope before work starts.
  • We record which configuration files, admin settings and identity provider links we will review.

How we build

  • We map where each peer generates WireGuard key pairs and where public keys are registered with Management.
  • We review Signal, relay, STUN and embedded identity provider settings against the vendor's configuration reference.
  • We check login and SSH paths, including the JWT validation and JWKS endpoints the docs describe, and record what the vendor does not document.

How we hand over

  • You receive an inventory listing each protocol, key type, certificate and stored secret, with the NetBird version it applies to.
  • Unconfirmed points are marked as open questions, with the vendor documents or tests needed to settle them.
  • We walk your security and platform teams through the findings so they can reuse the inventory in later reviews.

How we support

  • Ongoing support, upgrades and re-inventory after NetBird releases are available as a retainer.
  • We can re-check the inventory when NetBird changes its post-quantum settings, including the pending ML-KEM pull request and the Rosenpass deprecation notice.
  • Retainers and one-off updates are priced from the written scope, and we do not publish a price list.

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.