Self-hosting Rosenpass: what your team needs to run it

Self-hosting Rosenpass means your team owns the key exchange, WireGuard integration, root-level setup and upgrades. This page lists what to plan for before deciding between in-house running and paid help.

On this page

What Rosenpass is and what self-hosting it involves

Rosenpass is an open-source post-quantum-secure VPN. It uses WireGuard to carry the actual data and supplies a symmetric key to WireGuard through WireGuard's pre-shared key (PSK) feature. Self-hosting Rosenpass means your team runs the key exchange, the configuration and the upgrades inside its own environment, rather than relying on a provider to do it. Before you commit, decide which operating model fits your network, because the two modes place different work on your team.

The project documents two modes. In stand-alone mode, the rp tool runs the exchange and writes the resulting key to a file, and the manual's examples use rp exchange with sudo, along with the Linux tools ip and wg. The rosenpass manual also describes a mode where each peer's wireguard option deploys the PSK directly to a WireGuard peer, and an outfile option writes it to a file instead. The Rosenpass documentation says that in stand-alone mode with the outfile parameter, a key is written to the file every two minutes. The stand-alone mode can run in a container, a VM or on another host. Confirm which mode and version your design needs against the manuals linked from the project.

Rosenpass is maintained by a research association seated in Germany, founded by Karolin Varner, and the project describes itself as run by cryptographers, researchers, open-source developers and designers. Your engineering lead should check three things before adopting it. First, the rp README notes that the tool runs as root, so plan privilege separation and review who can reach the host. Second, confirm the release you intend to run: the latest GitHub release as of 4 December 2026 is v0.2.3, published 3 August 2026. Third, decide who will track releases and apply upgrades, because the project's packaging varies by distribution and the Quick Start guides cover Ubuntu, Debian, Arch Linux and a manual Linux setup. Confirm compatibility with your own distribution and kernel before you roll it out.

Which components and skills does a self-hosted deployment require?

The rp tool is the entry point for a Rosenpass deployment on Linux, and its manual, dated 16 September 2024, shows the commands used for setup. The examples run rp exchange with sudo and rely on the Linux networking tools ip and wg, which means the host needs both available and the account running the tool needs the privileges to create network devices. The README is direct about the trade-off: rp is easy to start with but has drawbacks, including that it runs as root.

  • Root execution: the README lists running as root as one of rp's drawbacks, so the team should decide how that is handled on its hosts.
  • Network device creation: the manual's examples create a device such as rosenpass0, so the team should confirm which privileges their policy allows for that.
  • Tooling dependencies: the examples use ip and wg, and the manual lists wg(1) under See also.
  • Deployment location: the README says stand-alone mode can run in a container, a VM or on another host, so the host choice is open.
  • Packaging: the README says Rosenpass is packaged for more and more distributions and is available through Nix and prebuilt Docker images.

Before a rollout, check the privilege model against your host hardening rules and confirm the exact ip and wg versions your distribution ships.

How the setup options compare on what the documentation says

This table compares the deployment paths the Rosenpass documentation describes, including the rp tool, the rosenpass tool, stand-alone hosting and packaged installs. Read each row as what the docs say about that path, then confirm the version and privilege model against your own environment before you commit. The main takeaway is that the rp path runs as root, so plan privilege and isolation before you choose it.

Deployment pathWhat the documentation saysPrivilege or accessWhat to confirm before you choose it
rp command-line toolSetup uses rp genkey, rp pubkey and rp exchange, per the Debian manual dated 16 September 2024. Examples use ip and wg and create a device such as rosenpass0.Examples run rp exchange with sudo. The README says rp runs as root.Whether root-level execution fits your host policy, and the version you install.
rosenpass tool with gen-keys and exchangeCommands are rosenpass gen-keys and rosenpass exchange. Each peer must set either outfile or wireguard.The manual does not describe a root requirement for this path. Confirm this in your environment.Which peer mode (outfile or wireguard) matches your WireGuard setup.
WireGuard peer deploymentThe wireguard peer option deploys the pre-shared key directly to a WireGuard peer. The README says the key is refreshed every two minutes.Depends on how WireGuard is configured on the host. Check your own setup.How your WireGuard peers consume the key, and how refresh affects your sessions.
Outfile key outputThe outfile option writes the resulting key to a file. In stand-alone mode with outfile, the docs say a key is written every two minutes.Depends on file permissions and where the file is written.Who reads the output file, and how that file is protected on disk.
Stand-alone mode in a container, VM or other hostThe README says stand-alone mode can run in a container, VM or on another host.Container and VM privilege settings are set by your platform, not by Rosenpass.Network reachability between hosts, and how the chosen platform handles the required privileges.
Nix packagingThe README says Rosenpass is available through Nix.Depends on how your Nix setup is managed.The Nix package version you pull and whether it matches the release you tested.
Docker imagesThe README says prebuilt Docker images are available.Container runtime privileges depend on your configuration.The image tag and version you deploy, and how you rebuild or update it.
Quick Start guides (Ubuntu, Debian, Arch Linux, manual Linux)The website provides Quick Start guides for these four setups.Depends on the path you follow in each guide.Which guide matches your distribution, and whether its steps match the version you install.

What the setup sequence looks like on a Linux host

The documented sequence generates a key pair for each peer, exchanges keys over the network, and feeds a post-quantum pre-shared key into WireGuard so that a WireGuard device, such as rosenpass0, carries the traffic. The steps below follow the Rosenpass manuals, and the exact command forms should be checked against the manual for the version you run.

  1. Generate a secret key for each peer

    On each host, an administrator runs rp genkey with a file name for the secret key, for example rp genkey server.rosenpass-secret. The rosenpass manual uses a different form, rosenpass gen-keys --secret-key <file-path> --public-key <file-path>, which writes both keys in one call. The secret key stays on the host that created it. You know this step is done when the secret key file exists and is readable only by the account that will run Rosenpass. Confirm the command form in the manual for your version before you script it.

  2. Derive the public key from the secret key

    Next, run rp pubkey against the secret key file, for example rp pubkey server.rosenpass-secret server.rosenpass-public. The public key file is the one you share with the other peer. Copy it over a channel you trust, then confirm the file is present on the remote host. Do not send the secret key file to any other machine. Repeat this on every host in the tunnel so that each peer holds its own secret key and the public keys of the others.

  3. Start the exchange with sudo

    On each host, start the key exchange with rp exchange under sudo, since the rp manual runs it as root and the tool's README notes that it runs as root. The manual's examples also use the Linux ip and wg tools. Starting the exchange on both peers is what allows the handshake to complete. Keep the terminal output or service logs, because they are the first place to look if the exchange does not complete. Check the command and its flags against the rp manual for your release.

  4. Configure each peer with outfile or wireguard

    Each peer entry in the configuration must specify either outfile or wireguard. Use wireguard <dev> <peer> <extra_params> to deploy the pre-shared key directly to a WireGuard peer, or outfile <file-path> to write the key to a file. The outfile option is written to a file every two minutes in stand-alone mode, which matters if another process reads that file. Choose one option per peer, and confirm the peer block against the rosenpass manual for your version, since the configuration syntax is version-specific.

  5. Confirm the WireGuard device appears

    When the wireguard option is in use and the exchange is running, check that the WireGuard device, such as rosenpass0, is present on the host. The rp manual's examples create a device of this name, and wg shows the peers and their handshake state. You know the step is done when the device is listed and the peer shows a recent handshake. If the device is missing, check the exchange output and the configuration before changing WireGuard itself.

  6. Verify the key refresh and record the setup

    The Rosenpass README says the key it supplies to WireGuard is refreshed every two minutes, so a working setup should show ongoing handshake activity rather than a single event. Confirm this on both peers, then record the versions of Rosenpass, WireGuard and the distribution, along with the secret key locations and the configuration used. Ask your vendor or the project for the current recommended steps if your version differs from the manuals you followed.

Which teams are a good fit to run Rosenpass themselves?

The Rosenpass documentation describes a tool that runs as root, sits next to WireGuard, and refreshes its key on a fixed schedule. Each situation below is a team condition the documentation implies, with the consequence to plan for before self-hosting.

Teams already running WireGuard

Rosenpass supplies a key to WireGuard through WireGuard's pre-shared key feature, so it only adds value on top of a working WireGuard deployment. The rp and rosenpass manuals both reference wg(1) and the wireguard peer option. Your team needs to know how its WireGuard peers are configured and must be able to test key exchange against them. Check that your current tunnels already run before adding a second layer to diagnose.

rosenpass manual

Teams that accept root-level tooling

The Rosenpass README says the rp tool runs as root, and the rp exchange example is run with sudo while creating a device such as rosenpass0. Hosts that run it need an owner who has reviewed what root access means on that machine, and who controls who can log in. Confirm your change control and privileged access policy allow this before you plan a rollout.

rp manual

Teams planning for two-minute key refresh

The Rosenpass documentation says that in stand-alone mode with the outfile parameter, a key is written to the given file every two minutes. Any process that reads that file, or any monitoring that expects stable key material, must handle that refresh cycle. Confirm that your consumers pick up a new file without breaking active sessions, and test the refresh behavior in a staging environment before production use.

Key refresh interval
2 minutes
Rosenpass docs

Teams running in containers or VMs

The Rosenpass README says stand-alone mode can run in a container, a VM or on another host, and prebuilt Docker images are available. Each deployment target changes how the tool reaches WireGuard, which network namespace it uses and how root access is granted inside the container. Your team needs to decide where the process runs, confirm the image source and check that the network setup matches your WireGuard topology.

Rosenpass README

Teams without a Rust package owner

The Rosenpass README says the tool is written in Rust and is packaged for more and more distributions, with availability through Nix and prebuilt Docker images. Someone on your team must track which package version each host runs, watch the release notes and apply updates. The v0.2.0 notes list a new CLI and configuration file support, so changes between versions can affect how your hosts are set up. Without that owner, updates will fall behind.

Rosenpass releases

Teams that need contracted support

The Rosenpass project lists its help channels as a Matrix room, GitHub Issues and Discussions, and mirrors on NotABug and GitLab. These are community channels, and the sources listed on this page do not describe a paid support contract. A team that needs a support agreement with response commitments should confirm with the project or a third party what is available before it relies on Rosenpass in production.

Rosenpass README

Where Rosenpass sits between WireGuard peers in a self-hosted setup

The diagram starts with two peers, each running the rp or rosenpass tool. The Rosenpass key exchange runs between them and hands a pre-shared key (PSK) to each WireGuard endpoint, either through the outfile path, which writes the PSK to a file, or through the wireguard peer option, which deploys it directly to a WireGuard peer. WireGuard then carries the data traffic, and the key is refreshed every two minutes. Before go-live, check that each peer specifies exactly one of outfile or wireguard, that the tool runs with the privileges it needs, and that the refresh cycle is working on both ends.

Rosenpass supplies the WireGuard PSK, and WireGuard carries the data between two peers.

What upkeep does the project's release history imply for your team?

Running Rosenpass yourself means someone on your team has to track its releases on GitHub and plan for upgrades. The sources show that the latest release as of 4 December 2026 is v0.2.3, published 2026-08-03 and described as a backport release with upgraded dependencies. A backport release carries fixes into an older line and updates the libraries it depends on, so the upgrade you need to plan for may be a dependency refresh rather than new features. Check the release page and the release notes for each version you run, and confirm which of your deployed hosts are on which build.

The earlier release history also shows how much a version can change. The release notes for v0.2.0 say it added a new CLI, configuration file support, multiple listen sockets, dual-stack IPv4 and IPv6 support, and macOS CI builds. If your deployment moved from a pre-0.2 build to a later one, your command lines, configuration files and listening addresses may need rewriting, so test the new version against a copy of your real setup before you upgrade production hosts. Keep a record of which version runs on each peer, because a mismatch between peers is a failure mode you will want to catch in testing.

The sources do not describe an upgrade schedule or a support window for any version, so your team should not assume how long a given release will receive fixes. Ask the project, through its GitHub Issues and Discussions or its Matrix room, what it promises, and decide internally how often you will review new releases. The same goes for any commitment you might make to your own users or auditors about patch timing: the sources do not give one, so confirm it before you write it down.

What should we ask the Rosenpass project before we commit?

Which Rosenpass releases receive security fixes?

The sources listed on this page do not say which releases receive fixes or for how long. The most recent release on GitHub as of 4 December 2026 is v0.2.3, published 2026-08-03 and described as a backport release with upgraded dependencies. Ask the project in its Matrix room (#rosenpass:matrix.org) or GitHub Issues whether earlier branches such as v0.2.x are maintained, and how fixes are announced. Record the answer and the version you deploy, so you can check it against each future release.

Are any support terms published for Rosenpass?

The sources listed on this page do not describe any published support terms, service levels or response times. The project describes itself as run by a team of cryptographers, researchers, open-source developers, hackers and designers, and as a research association seated in Germany. Ask through GitHub Discussions or the Matrix room whether commercial support terms exist, and whether any are offered directly by the project. If none are published, plan for community-based support and document that choice in your risk register.

How is root-level operation meant to be restricted?

The Rosenpass README says the rp tool runs as root, which is one of its listed drawbacks, and the rp exchange example in the manual is run with sudo while using ip and wg to create a device such as rosenpass0. The sources do not describe a supported way to drop privileges or limit capabilities. Ask the project whether it plans or recommends a least-privilege mode, and whether the stand-alone mode is intended to run in a container or separate VM as a way to contain that access. Test any proposed approach in your own environment before you rely on it.

Which configuration method should we use in production?

The sources describe two peer options: wireguard <dev> <peer> <extra_params>, which deploys the pre-shared key directly to a WireGuard peer, and outfile <file-path>, which writes the PSK to a file. The stand-alone mode with outfile writes a fresh key every two minutes, and the README says the key given to WireGuard is refreshed on the same schedule. Ask the project which option it recommends for your topology, and whether the configuration file support added in v0.2.0 is the preferred way to manage these settings. Confirm the behavior on the exact version you run.

Does the project test and document builds for our platform?

The release notes for v0.2.0 say the project added macOS CI builds, dual-stack IPv4 and IPv6 support and multiple listen sockets. The README says Rosenpass is packaged for more and more distributions, is available through Nix and provides prebuilt Docker images. The Quick Start guides on the project website cover Ubuntu, Debian, Arch Linux and a manual setup on Linux. Ask which platforms are tested in CI for each release, and whether the prebuilt Docker images are built from the same tagged source as the GitHub releases.

Where do licensing and contribution terms stand for our legal review?

The Rosenpass website says all contributions are provided under both an Apache 2.0 and an MIT license, and that users may choose which license applies. Ask the project to confirm that this dual licensing covers the code in the release you deploy, including any dependencies that carry their own terms. Your legal or vendor-risk reviewer should verify the license texts in the repository directly before the software enters your supply chain.

What exactly does Rosenpass not do for our VPN?

The sources describe Rosenpass as a post-quantum-secure VPN that uses WireGuard to transport the actual data, and that it supplies a symmetric key to WireGuard through the pre-shared key feature. Rosenpass therefore does not carry your traffic, manage peers or handle routing on its own. Ask the project to confirm which parts of the VPN stack remain with WireGuard and your existing tooling, so that your inventory and migration plan assigns each responsibility to a named owner.

How Rosenpass is licensed and whether a price is published

Rosenpass contributions are provided under both an Apache 2.0 license and an MIT license, and the user may choose which of the two to use Rosenpass under, according to the project's About page. For a self-hosting team, this means the license is a choice made at adoption rather than a fee or a seat count. Legal and vendor-risk reviewers should record which license the team elects, and should confirm that choice against the license file in the repository, which holds the legal text. The About page at Rosenpass About page is the place to check the project's own statement, and the repository's license file is the document to cite in an internal review.

The sources listed on this page do not publish a price for the Rosenpass software. Running the rp tool or the rosenpass tool on your own hosts carries no license fee under the terms described above, but your costs still come from the hardware, the staff time to deploy and maintain it, and any upkeep you take on, such as tracking releases. The latest release on GitHub as of 4 December 2026 is v0.2.3, published 2026-08-03, so a team should plan for regular updates and not treat the initial setup as a one-time cost.

Where paid help exists, it is arranged outside the project and quoted separately, so the sources listed here do not give a rate or a package. Ask any provider for a written scope covering installation, key handling, upgrades and incident response, and compare that quote with the internal hours your team would spend doing the same work. Confirm the exact terms with the provider and the repository's license file before signing anything.

Can our team run Rosenpass without outside help?

What is Rosenpass and what does it do?

Rosenpass is a post-quantum-secure VPN tool written in Rust. It uses WireGuard to carry the actual data and supplies WireGuard with a symmetric key through WireGuard's pre-shared key (PSK) feature. According to the project's GitHub README, the key supplied to WireGuard is refreshed every two minutes. Rosenpass therefore handles the post-quantum key exchange, while WireGuard still encrypts the traffic. Your team still needs WireGuard in place to use it. The sources listed on this page do not describe how Rosenpass compares with other key exchange approaches, so confirm the fit against your own design before relying on it. The Rosenpass GitHub README is the natural starting point.

Can we self-host Rosenpass in a container or virtual machine?

Yes, according to the project's README, the stand-alone mode can run in a container, a VM or on another host. The README also says prebuilt Docker images are available, and Rosenpass is packaged for more distributions and through Nix. The Rosenpass website's Quick Start guides cover Ubuntu, Debian, Arch Linux and a manual setup on Linux. The sources do not give hardware sizing or resource requirements, so your team should test on a staging host to measure what it needs. Confirm which image tag or package version you deploy, since the latest release is v0.2.3 as of 4 December 2026.

Why does Rosenpass need root access on the host?

The project's README lists running as root as one of the tool's drawbacks. The rp manual shows rp exchange run with sudo, and its examples use the Linux tools ip and wg to create a network device such as rosenpass0. Creating and configuring that interface requires elevated privileges. Your security team should review what the process can change on the host, limit the deployment to a dedicated VM or container where possible, and document the privilege boundary for the review. The sources do not say whether the tool can drop privileges after setup, so ask the maintainers or test it yourself.

How often does Rosenpass refresh its keys?

The Rosenpass README says the key supplied to WireGuard is refreshed every two minutes. The Rosenpass documentation says that in stand-alone mode, with the outfile parameter, Rosenpass writes a key to the given file every two minutes. Your operations team should plan for that rotation: check that the consuming service picks up each new key and alert when it does not. The sources do not describe failure behavior or how to monitor rotation, so verify both in a test environment before production use.

Where can we get help if we get stuck running Rosenpass?

The project lists three contact channels: a Matrix room at #rosenpass:matrix.org, GitHub Issues and GitHub Discussions. Mirrors are also hosted on NotABug and GitLab. The project describes itself as run by a team of cryptographers, researchers, open-source developers and designers, and its About page says it is a research association seated in Germany. The sources do not describe a commercial support contract or service-level terms. If your team needs guaranteed response times, ask the project directly or compare with paid options, and confirm what is offered in writing.

Should we run Rosenpass in-house or buy outside support?

The choice depends on your team's skills, how much downtime you can accept and how much your compliance reviewers want documented support. Running it in-house means your staff own installation, privilege review, monitoring of the two-minute key rotation and upgrades to new releases. Buying help shifts some of that work to an outside party, which you should pay for and specify in writing. The sources do not give costs, staffing levels or support prices, so ask any provider for a quote with a defined scope. DeployOpen plans, implements, hardens, upgrades and documents self-hosted open-source platforms inside a client's own infrastructure, and sets up fixed-scope engagements agreed in writing before work starts. DeployOpen does not publish a price list, and a quote follows from the written scope.

What does Rosenpass license allow us to do?

The Rosenpass website says all contributions are provided under both the Apache 2.0 and MIT licenses, and that you may choose which license applies to your use. Your legal or vendor-risk team should confirm the license terms against the repository before adding the tool to your software supply chain. The sources do not cover how these licenses interact with your own distribution or modification plans, so have counsel review the specific use case. The Rosenpass About page is a useful reference for the project's own statement.

How DeployOpen works on this

DeployOpen plans and runs self-hosted Rosenpass deployments inside your own infrastructure, from the first scoping conversation through handover and ongoing support. We begin by agreeing on what your team needs to run it, then build and test the setup against that written scope.

How we scope

  • We confirm which hosts will run the rp or rosenpass stand-alone mode, in a container, VM or on another host.
  • We agree in writing which WireGuard peers receive the PSK and whether they use the wireguard or outfile peer option.
  • We identify who will own the root-level access that rp requires, since the Rosenpass README notes it runs as root.

How we build

  • We install Rosenpass on your chosen Linux distribution using the packages or prebuilt Docker images that suit your environment.
  • We generate and store key pairs with the rp genkey or rosenpass gen-keys commands, keeping secret keys outside shared repositories.
  • We configure and test the key exchange and confirm that the PSK refresh, documented as every two minutes, works with your WireGuard setup.

How we hand over

  • We document the exact commands, configuration files and peer settings used in your deployment so your engineers can repeat them.
  • We record which Rosenpass version is running and note that the latest GitHub release as of 4 December 2026 is v0.2.3, so you can check for updates.
  • We walk your team through the parts that remain yours, such as monitoring the tunnel, rotating keys and deciding when to upgrade.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped separately from the initial deployment.
  • We can help your team track Rosenpass releases and review changes to dependencies before they reach production.
  • Your team should confirm the support channels it will rely on, including the Rosenpass Matrix room, GitHub Issues and Discussions, before the handover is complete.

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.