What the WireGuard pre-shared key and Rosenpass each do
A vendor document or tender that mentions a WireGuard pre-shared key alongside Rosenpass is usually asking whether the VPN is protected against future quantum attacks, and the two terms answer different parts of that question. The WireGuard pre-shared key is an optional symmetric key that WireGuard mixes into its public-key exchange. Rosenpass is a post-quantum key exchange wrapper that establishes a symmetric key and hands it to WireGuard through that same pre-shared key feature. The one distinction that matters most is who creates the key and how it is established: an administrator or a configuration file supplies a manually set pre-shared key, while Rosenpass generates and rotates the key itself through its own post-quantum exchange.
Network engineers, security leads and vendor-risk reviewers meet this question when a product claims post-quantum VPN protection, when a tender asks how a tunnel is protected, or when a security questionnaire asks which mechanism sets the key. The WireGuard protocol page says that if no pre-shared key is configured, WireGuard treats it as 32 zero bytes, and that a configured key can add a layer of symmetric-key cryptography where post-quantum resistance is required. That description does not say how the key was produced, so a configured pre-shared key is only as strong as the process that created and distributed it.
Before accepting a claim, confirm which mechanism is in place. Ask whether the pre-shared key is entered by hand, distributed by a management system, or generated and rotated by Rosenpass, and ask which software version and build provides it. Rosenpass describes itself as a post-quantum-secure VPN that uses WireGuard to carry the data, and says it refreshes the key every two minutes. Mullvad and NetBird describe their own implementations in their documentation, and those documents differ in defaults and in how mixed peers are handled, so check each product's documentation rather than assuming one behavior applies to all. Where the sources in this topic do not say what a vendor has done, ask the vendor for its documentation and test the setting in your own environment.
The two side by side on the attributes the sources give
This table sets the WireGuard pre-shared key feature against Rosenpass on the attributes the listed sources describe. Read each row as what the cited source says, and mark a cell not stated where the sources list nothing on that point. The main takeaway is that the pre-shared key is a slot WireGuard provides, while Rosenpass is a separate project that fills that slot with a post-quantum exchange.
| Attribute | WireGuard pre-shared key | Rosenpass |
|---|---|---|
| What it is | An optional symmetric key mixed into WireGuard's public-key exchange | A post-quantum-secure VPN that uses WireGuard to carry the data |
| Defining document or project | The WireGuard protocol page, which gives the Noise_IKpsk2 construction | The Rosenpass project repository |
| Role in the tunnel | Adds a layer of symmetric-key cryptography to the handshake when configured | Establishes a symmetric key and hands it to WireGuard through the pre-shared key feature |
| How the key is set | Configured on each peer, and treated as 32 zero bytes when not configured | Generated by the Rosenpass exchange and applied to WireGuard automatically; the sources do not describe the operator's manual steps |
| Key refresh interval | Not stated by the WireGuard protocol page | Every two minutes, according to the Rosenpass repository |
| Implementation language and license | Not stated in the listed sources | Rust, with Apache-2.0 and MIT licenses, using liboqs |
| Algorithms named | Not stated; the pre-shared key itself is symmetric, and the sources name no post-quantum algorithm | Classic McEliece and ML-KEM named by Mullvad; Classic McEliece and Kyber named by NetBird |
| Where it is supported | The WireGuard protocol, as described on its protocol page | Mullvad desktop releases from 2025.2 (default on desktop); NetBird clients from v0.25.4, deprecated from v0.82.0 |
What each one is and where practitioners meet it
The WireGuard pre-shared key is an optional symmetric key that is mixed into WireGuard's public-key handshake. The construction is Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, and the WireGuard protocol page at WireGuard protocol describes how the key is used. The key is set per peer by the administrator, so the value must be distributed to both ends by some other means.
- Where it is defined: the WireGuard protocol page describes the construction and the optional key.
- Default value: when no key is configured, WireGuard treats it as 32 zero bytes, as the protocol page states.
- Where you meet it: a
PresharedKeyline in a WireGuard[Peer]section of a configuration file, or a pre-shared key field in a client settings screen. - What it does on its own: the protocol page says a configured key can add a layer of symmetric-key cryptography if post-quantum resistance is required, but it does not itself create that key.
- Who sets it: the administrator generates the key and places it on both peers, so the key distribution is a separate task.
Check the WireGuard protocol page and the configuration of each peer to confirm which key, if any, is in use.
Rosenpass is a post-quantum-secure VPN project that uses WireGuard to carry the actual data. Its repository at Rosenpass repository describes it as a tool that establishes a symmetric key and passes that key to WireGuard through the preshared key feature. The project states that the combination is no less secure than WireGuard alone and that the key is refreshed every two minutes.
- Where it is defined: the Rosenpass repository, which also includes a ProVerif symbolic security analysis; the team says a full cryptographic proof is still being worked on.
- Implementation details: the project is written in Rust, uses liboqs, and is licensed under Apache-2.0 and MIT.
- Where you meet it: as a separate daemon running beside WireGuard on a host, or as an option in a product that embeds it.
- Embedded examples: NetBird's client since v0.25.4 runs an embedded Rosenpass server that rotates and applies WireGuard pre-shared keys per connection, and NetBird deprecates Rosenpass support from v0.82.0 onward.
- Peer compatibility: unless permissive mode is enabled, a Rosenpass peer can only talk to peers that also have it enabled.
Confirm the version and build you run, because support status and default behavior differ between products that embed Rosenpass.
Two products in the sources show the two mechanisms in use. Mullvad's blog post of 9 January 2025 says its 2025.2 desktop release made quantum-resistant WireGuard tunnels the default on desktop, using post-quantum key encapsulation to exchange the WireGuard pre-shared key. NetBird's documentation describes how its client applies Rosenpass. Each product sets the feature in its own way, so the screens you see will differ.
- Mullvad setting: Settings, VPN settings, WireGuard settings, Quantum-resistant tunnel, set to Automatic or On.
- Mullvad algorithms: the blog names Classic McEliece and ML-KEM, and says the project moved from the earlier Kyber standard to ML-KEM.
- Mullvad platform status: the blog says iOS and Android were not yet enabled by default at that date.
- NetBird enablement: the client flags
--enable-rosenpassand--rosenpass-permissiveappear in its documentation, and the flag prints a deprecation warning from v0.82.0. - NetBird peer behavior: permissive mode lets non-Rosenpass peers connect over standard WireGuard without pre-shared keys.
Check the current settings screen or command help in your own product version, because the sources date from specific releases.
When a vendor document or configuration mentions either mechanism, the first question is which one is present. A pre-shared key field alone does not show that post-quantum key exchange is running, because the value may be manually set or left at the zero default. A Rosenpass daemon or option shows that a post-quantum exchange produces the key, but the peer and version still determine whether it works end to end.
- Pre-shared key field: note whether it is set, empty or zero, and who generated it.
- Rosenpass presence: confirm the daemon or client option and its version.
- Peer settings: check whether both ends use the same mechanism, or whether permissive mode is on.
- Version and status: check the release notes for deprecation or default changes.
- Algorithms named: record the algorithms the vendor names and compare them with the NIST and IETF documents for those names.
Record the configuration you actually run, along with the version, and confirm the behavior with the vendor's documentation before you rely on it.
How the key reaches WireGuard in each case
In both designs, the value WireGuard uses for post-quantum protection is a symmetric pre-shared key that is mixed into the handshake alongside the public-key exchange. The difference is where that key comes from. With a plain WireGuard preshared key, an administrator generates the value and writes it into the PresharedKey setting on each peer, so both ends hold the same secret before any tunnel is built. If no key is configured, WireGuard treats the field as 32 zero bytes. The WireGuard protocol page says a configured key can add a layer of symmetric-key cryptography where post-quantum resistance is required, but the key is static unless someone replaces it by hand, and the WireGuard protocol page does not describe how that key was produced.
With Rosenpass, the pre-shared key is not entered by hand. Rosenpass runs its own key exchange between the two peers, establishes a symmetric key, and hands that key to WireGuard through the same preshared key feature. The project refreshes the key every two minutes, so the value WireGuard uses is replaced on a schedule rather than set once. Rosenpass carries no user data of its own: the actual traffic still travels through WireGuard, and Rosenpass only supplies the key. The project states that this combination is no less secure than WireGuard alone. Teams should confirm the Rosenpass version they run and check the repository's ProVerif analysis and the note that a full cryptographic proof is still in progress before treating that statement as a settled security property.
Six differences that change what you configure or ask a vendor
A WireGuard pre-shared key and Rosenpass both add post-quantum protection, but they differ in who sets the key, how often it changes, what else must run, and which peers can connect. Each card below is one difference that changes a configuration step or a question to put to a vendor, with the source that states it.
Who sets the key
A WireGuard pre-shared key is a value an administrator places in the configuration of each peer, so the operator decides when and how it is created and distributed. Rosenpass instead establishes the symmetric key through its own exchange and hands it to WireGuard, so no one types it in. Check whether your team will manage key material by hand or accept an automated exchange, and confirm how each option is distributed to peers, according to the WireGuard protocol page and the Rosenpass repository.
WireGuard protocol pageHow often the key changes
A static pre-shared key stays the same until someone replaces it by hand. The Rosenpass project states that its key is refreshed every two minutes. Ask a vendor whether their implementation refreshes the key, how often, and whether that rate is configurable, since a static key and a refreshed key create different operational duties and different records to keep.
- Stated refresh interval
- 2 minutes
Whether a separate process is required
A WireGuard pre-shared key is a configuration field inside the existing WireGuard setup, so no extra service has to run. Rosenpass is a separate process that must be installed, started and kept running alongside WireGuard, which adds a component to monitor, patch and include in change control. Confirm which of these components your deployment will need to operate.
Peer compatibility rules
NetBird's documentation states that a peer with Rosenpass enabled can only talk to peers that also have it enabled, unless permissive mode is on. In permissive mode, peers without Rosenpass connect over standard WireGuard without pre-shared keys. Confirm whether your network requires every peer to support the same setting, because mixed fleets will otherwise lose connectivity or fall back to unprotected tunnels, per the NetBird docs.
NetBird docsSupport status of the Rosenpass option
NetBird's documentation says Rosenpass support is deprecated from version 0.82.0, and that using the enable flag prints a warning and the feature may be removed in a future release. A feature that is deprecated can change or disappear, so ask a vendor whether the Rosenpass path is supported in the version you plan to run and what the replacement is, if one is named.
NetBird docsAlgorithms named by each source
Mullvad's post names Classic McEliece and ML-KEM for its tunnels, and says it moved from the earlier Kyber standard to ML-KEM. NetBird's documentation describes an implementation that relies on Classic McEliece and Kyber. The sources name different algorithms, so list the algorithms each product uses and check them against the standard it claims to follow, using the NIST FIPS 203 final standard for ML-KEM.
NIST FIPS 203Where each one appears in products and vendor documents
The WireGuard pre-shared key is an optional setting that many WireGuard implementations expose as a field in peer configuration, and it is the input that Rosenpass and similar tools fill in automatically. Rosenpass itself appears in three places named in the sources. The Rosenpass repository on GitHub is the project's own home, where it describes itself as a post-quantum-secure VPN that uses WireGuard to carry the data. The NetBird client, starting at v0.25.4, runs an embedded Rosenpass server that rotates and applies WireGuard pre-shared keys per connection every two minutes. When you review a NetBird deployment, check the client version, since the embedded server is not present in earlier releases. NetBird's own documentation also states that Rosenpass support is deprecated from v0.82.0 and may be removed in a future release, so confirm the current status before you plan around it. Use the NetBird documentation on post-quantum cryptography as the reference for its flags and peer behavior.
Mullvad exposes the choice as a desktop client setting rather than a raw configuration field. According to Mullvad's post of 9 January 2025, its 2025.2 desktop release made quantum-resistant WireGuard tunnels the default on desktop, using post-quantum key encapsulation to exchange the WireGuard pre-shared key, with Classic McEliece and ML-KEM as the named algorithms. The setting lives at Settings, VPN settings, WireGuard settings, Quantum-resistant tunnel, and can be set to Automatic or On. The same post states that iOS and Android were not yet enabled by default at that date, so an organization with mobile fleets should verify the state on each platform and version it runs. Confirm the current default in the client you deploy, because the 2025 post is a dated point in time. The Mullvad blog post is the source for these details.
For vendor-risk reviews, the practical question is which of these surfaces a product uses. A pre-shared key you type in yourself is a static secret that you must generate, distribute and rotate, which is a different control from a tool that negotiates and refreshes the key over the network. Ask each vendor whether its WireGuard pre-shared key is set manually, derived from a post-quantum exchange, or left at the default of 32 zero bytes, and whether the Rosenpass or ML-KEM path is on for each platform. Record the product version, the platform and the exact setting path in the evidence you collect, since the sources show that defaults and platform coverage change between releases.
How to work out which one applies to your environment
This sequence tells you which post-quantum approach a WireGuard deployment uses: a static pre-shared key you configured yourself, or a key exchange wrapper such as Rosenpass or a vendor's quantum-resistant tunnel setting. It ends with a short list of questions to put to the vendor about the algorithms and key refresh rate of the version you run. Work through the steps in order, because each one narrows what the next one needs to confirm.
Check the exact term in the vendor or tender document
Search the vendor documentation, security questionnaire, or tender response for the terms pre-shared key, Rosenpass, and quantum-resistant tunnel. Note which term the document uses and the sentence where it appears. A pre-shared key is a value you or the vendor set by hand, while Rosenpass and quantum-resistant tunnel settings refer to a software component that generates and rotates that key. Done when you can state, in one sentence, which term the vendor uses and what it claims the term does. Treat the wording as a claim to verify in the next steps, not as proof.
Inspect the WireGuard configuration for a PresharedKey field
On each WireGuard peer, open the configuration file and look for a PresharedKey line under the peer section. Record whether the field is present and whether it holds a value. The WireGuard protocol documentation says that if no pre-shared key is configured, the protocol treats it as 32 zero bytes, so an absent or empty field means no additional symmetric key is mixed in. A populated field is a static key that someone configured manually, and it does not show whether the key was produced by a post-quantum exchange. Done when you have a yes or no for each peer and a note of which peers carry a key.
Compare the client version against the release notes
Find the version of the client installed on each endpoint and compare it to the release notes for the product. For NetBird, the documentation says Rosenpass support is deprecated from v0.82.0, and a warning prints when the enable flag is used, with removal possible in a future release. For Mullvad, the desktop release 2025.2 made quantum-resistant tunnels the default on desktop, while the same post said iOS and Android were not yet enabled by default at that date. Record the exact version string and platform for each endpoint. Done when each endpoint has a version recorded and a note on whether the vendor documents a post-quantum setting for that version and platform.
Check whether the remote peers run Rosenpass
Confirm, for each connection, whether the peer at the other end runs the same post-quantum component or only standard WireGuard. The NetBird documentation says a peer with Rosenpass enabled only connects to peers that also have it enabled, unless permissive mode is on, in which case non-Rosenpass peers connect over standard WireGuard without pre-shared keys. Ask the administrator of each remote peer, or read its configuration, and record the result. Done when every connection is marked as Rosenpass to Rosenpass, Rosenpass to standard WireGuard, or standard WireGuard to standard WireGuard, because only the first combination has the key exchange on both ends.
Ask the vendor which algorithms and key refresh rate apply
Send the vendor a written question asking which key encapsulation algorithms the version you run uses, and how often the pre-shared key is refreshed. Use the algorithm and refresh values the vendor gives you for your version, and compare them against the sources named on this page, such as the Rosenpass repository, which reports a two-minute refresh, and the Mullvad post, which names Classic McEliece and ML-KEM. Confirm the answer applies to the exact version and platform from the earlier step. Done when you have a written answer that names the algorithms, the refresh rate, and the version, and you have flagged any difference from the published sources for follow-up.
Record the findings for the review file
Collect the term, configuration result, version, peer result, and vendor answer for each environment into one table, and mark which configuration applies to each connection. Note any gap, such as a peer that runs standard WireGuard, a version past its deprecation note, or an answer the vendor has not given. Keep the file with the date of each check, because release notes and vendor statements change over time. Done when a reviewer can read the table and see, for each connection, what protection is in use and what remains unconfirmed.
Common mix-ups between the pre-shared key and Rosenpass
Teams comparing WireGuard's pre-shared key with Rosenpass often assume the two are the same kind of protection, or that a setting or label proves more than it does. The cards below separate what a configured key shows from what it leaves unknown, and what Rosenpass is from what WireGuard is. Check each claim against the source that makes it before you record it in a review.
A key alone does not prove post-quantum protection
A configured WireGuard pre-shared key is a symmetric key mixed into the public-key exchange, and the protocol page says it can add a layer of symmetric-key cryptography if post-quantum resistance is required. The key does not show how it was produced. Before you record a tunnel as post-quantum protected, confirm where the key came from, such as whether a post-quantum key exchange generated it or an operator entered it by hand. A pre-shared key that was typed in or copied from another system carries no post-quantum property on its own.
WireGuard protocol pageRosenpass is not part of WireGuard
Rosenpass is a separate project. Its repository describes it as a post-quantum-secure VPN that uses WireGuard to transport the actual data. Rosenpass establishes a symmetric key and passes it to WireGuard through the preshared key feature, so WireGuard still does the tunnel work. Reviewers who read WireGuard documentation alone will not find Rosenpass described there, and should look at the Rosenpass repository to see what it adds and which components it depends on.
Rosenpass repositoryA quantum-resistant label is not a certification
Vendors sometimes name a feature quantum-resistant, quantum-safe or post-quantum in product settings or marketing. Such a label describes what the vendor built and does not mean an independent body has validated it. Mullvad's January 2025 post describes its quantum-resistant tunnels, which use Classic McEliece and ML-KEM to exchange the WireGuard pre-shared key, and it lists the setting by name. Ask for the algorithms, the version, and whether any independent review exists, and record the label as the vendor's claim.
Mullvad blog postThe zero-byte default is not a configured key
When no pre-shared key is configured, WireGuard treats it as 32 zero bytes. A tunnel showing this default has no symmetric key added to the exchange, so it gets no post-quantum benefit from a pre-shared key. Check the configuration for an actual key value instead of assuming one exists because the field is present. Also check for mixed fleets: NetBird's permissive mode lets peers without Rosenpass connect over standard WireGuard without pre-shared keys, so one tunnel in a group may carry no added key.
NetBird docsQuestions people ask about WireGuard pre-shared keys and Rosenpass
Are a WireGuard pre-shared key and Rosenpass the same thing?
No. A WireGuard pre-shared key is an optional symmetric key that WireGuard mixes into its public-key handshake, and it is a feature of the WireGuard protocol itself. Rosenpass is a separate project that runs its own post-quantum key exchange and then supplies the resulting symmetric key to WireGuard through that same pre-shared key feature. The two share a mechanism, but Rosenpass is the component that creates the post-quantum key, while the pre-shared key is the slot where a key is placed. Per the WireGuard protocol page, if no pre-shared key is configured WireGuard treats it as 32 zero bytes, and a configured key can add a layer of symmetric-key cryptography if post-quantum resistance is required. The sources listed on this page do not describe any other way that Rosenpass and the pre-shared key differ in internal design.
When a vendor says post-quantum WireGuard, which mechanism does it mean?
Read the vendor document for the exact mechanism, because the phrase can point to two different designs. In the sources listed on this page, Mullvad describes its 2025.2 desktop release, dated 9 January 2025, as making quantum-resistant WireGuard tunnels the default on desktop by using post-quantum key encapsulation to exchange the WireGuard pre-shared key. Mullvad names Classic McEliece and ML-KEM as its algorithms and says it moved from the earlier Kyber standard to ML-KEM. NetBird instead runs an embedded Rosenpass server that rotates and applies pre-shared keys per connection every two minutes. Ask the vendor which algorithms it uses, whether it is a pre-shared key layer or a separate handshake, and which platforms and versions it covers. The sources listed on this page do not say how any other vendor implements its post-quantum WireGuard option.
Do you need both a WireGuard pre-shared key and Rosenpass?
The sources listed on this page do not say that both are needed, and they do not say that one of them replaces the other either. Rosenpass, according to its project, is a post-quantum-secure VPN that uses WireGuard to transport the actual data, and it feeds its symmetric key into WireGuard's pre-shared key feature. Seen this way, Rosenpass is the source of the key that the pre-shared key slot carries, so a separate hand-configured pre-shared key is a different arrangement from a Rosenpass deployment. Whether a given environment needs one, the other, or some combination is a design decision, and the sources listed on this page do not make that recommendation. Confirm the requirement with the security owner and the standard or policy that governs your environment, and check the protocol documentation for the exact behaviour you expect.
Is Rosenpass still supported in NetBird?
The NetBird documentation says Rosenpass support is deprecated from v0.82.0. When a user runs the client with --enable-rosenpass or --rosenpass-permissive, a warning is printed, and the documentation says that the feature may be removed in a future release. So Rosenpass is still present in the client, but it is no longer a long-term commitment and it should not be treated as a stable option for new planning. Check the version you run against the NetBird documentation, and confirm with the vendor what it plans to do for your release. The sources listed on this page do not give a removal date, and they do not say what replacement, if any, NetBird will offer for post-quantum key exchange.
What does permissive mode mean for connections in NetBird?
Permissive mode changes which peers a Rosenpass-enabled peer will connect to. By default, a peer with Rosenpass enabled can only talk to peers that also have it enabled. With permissive mode turned on, using netbird up --enable-rosenpass --rosenpass-permissive, the peer can still reach peers that lack Rosenpass, and those peers connect over standard WireGuard without pre-shared keys. The practical consequence is that a connection to a non-Rosenpass peer gets no post-quantum pre-shared key layer, even though the local peer is configured for it. Reviewers should therefore check whether permissive mode is set on every client, since a single permissive peer may fall back to standard WireGuard. The sources listed on this page do not say how often such fallback happens in a real fleet.
What should I ask a vendor about post-quantum WireGuard?
Ask the vendor a short set of specific questions that the sources on this page make answerable. Which mechanism do you use: a pre-shared key that you set yourself, a pre-shared key that a post-quantum exchange supplies, or both? Which algorithms are used, and do they include ML-KEM, Classic McEliece, or Kyber? Which versions and platforms enable it by default, and which need a setting? For desktop clients, where is the setting, for example Mullvad's Settings, VPN settings, WireGuard settings, Quantum-resistant tunnel, set to Automatic or On? Is the feature deprecated or scheduled for removal, as NetBird's deprecation note shows for Rosenpass? And what happens when a peer does not support it, including whether a permissive mode allows fallback to plain WireGuard? Ask for the documentation that answers each point, and check it against the version you run. The sources listed on this page do not contain an assessment of any vendor's implementation.
Which post-quantum algorithms do these WireGuard options rely on?
The sources on this page name Classic McEliece and ML-KEM for Mullvad, and they say NetBird's embedded Rosenpass implementation relies on Classic McEliece and Kyber. ML-KEM is the name NIST gave to its standardized key-encapsulation mechanism in FIPS 203, published as a final standard on 13 August 2024, with the parameter sets ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The IETF draft draft-ietf-tls-mlkem-11 lists the encapsulation key and ciphertext sizes for these sets, which are relevant when you check how a key exchange fits into a handshake, although that draft concerns TLS rather than WireGuard. The sources listed on this page do not say which ML-KEM parameter set Mullvad or NetBird selects. Confirm that with each vendor before assuming a security level.
How DeployOpen helps with post-quantum VPN work
DeployOpen approaches this comparison by first confirming which WireGuard-based setup your organization runs and whether it is a self-hosted or managed product. The work then covers scoping, configuration, testing and documentation inside your own infrastructure, so your security and compliance teams can review what was deployed.
How we scope
- We confirm which WireGuard version, client platforms and key exchange wrapper, if any, are in use across your tunnels.
- We record which endpoints are desktop, mobile or server, since vendor documentation says support can differ by platform.
- We agree the scope in writing before work starts, including which tunnels and peers are covered by the engagement.
How we build
- We configure the pre-shared key setting or a Rosenpass deployment on the endpoints in scope, inside your own environment.
- We check the key refresh behavior and peer compatibility rules for the exact version you run before rollout.
- We test interoperability between post-quantum and non-post-quantum peers, including any permissive mode settings in use.
How we hand over
- We document the configuration, key handling and peer rules so your security team can review the deployed design.
- We provide a written record of tested tunnels, versions and known limits, including any deprecation notices that apply.
- We walk your engineers through the settings so they can operate and audit the tunnels after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- We can retest tunnels after client, server or WireGuard upgrades to confirm the configuration still behaves as documented.
- We help you track deprecation notices and version changes so your VPN design stays current with its vendor documentation.

