What a post-quantum upgrade of WireGuard involves: kernel, tools, key management

WireGuard has no built-in post-quantum algorithm, so an upgrade means adding a post-quantum handshake outside the protocol and feeding its output into the pre-shared key slot. The project has published no ML-KEM or hybrid setting as of 2026-12-03.

On this page

Does a WireGuard post-quantum upgrade need a new kernel, new tools or new key management?

If you run WireGuard tunnels, the first thing to know is that WireGuard is not post-quantum secure by default. Its primitives are fixed by the protocol: Curve25519 for key exchange, ChaCha20-Poly1305 for encryption, BLAKE2s for hashing and HKDF for key derivation. No setting in the product selects a different algorithm. The only documented hook for added protection is the optional pre-shared key slot. Checked on 2026-12-03, the project's home, protocol, known limitations and compilation pages do not mention ML-KEM, ML-DSA, FIPS or CNSA 2.0, so the project has published no post-quantum support on those points. Engineers running the tunnels and vendor-risk leads recording an answer should both work from that finding.

The upgrade path that the project itself describes is not a kernel or tool replacement. The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. That means the work sits in the key layer: generating and storing a pre-shared key with wg genpsk, distributing it to each peer and writing it into PresharedKey in the configuration. Ask who will own that secret, how it is stored and rotated, and whether wg and wg-quick setups read it from a file, since the wg manual says the preshared key option takes a file path. The quickstart does not document how peers should exchange public keys, so the distribution process is yours to design and confirm.

Because WireGuard uses no certificates or signatures, a post-quantum signature upgrade has no target in the documented design, and the project documents no such support. Rosenpass is a separate open-source project that pairs with WireGuard through pre-shared keys and names Classic McEliece and Kyber. It is not part of the WireGuard project, and its site does not mention ML-KEM, so treat it as a third-party component whose fit and maintenance you must assess yourself. Record the vendor position as: the project documents an optional pre-shared key for post-quantum resistance and publishes no ML-KEM, ML-DSA or CNSA 2.0 support as of 2026-12-03.

WireGuard post-quantum facts by component and source date

This table lists each WireGuard component that touches post-quantum questions, what the cited source says about it, and what does not apply. Read the third column to see where the documented design has no setting, signature or certificate to change. Each row carries the source page and its check date, so you can confirm the same fact in your own environment before recording it.

ComponentWhat the facts sayWhat does not applySource and checked date
Protocol handshakeThe handshake is Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, using Curve25519 ECDH with static peer public keys. The WireGuard known limitations page says WireGuard is not, by default, post-quantum secure.No cipher suite list, TLS settings or negotiated algorithms exist, so no setting selects a different key exchange.WireGuard protocol page and known limitations page, checked 2026-12-03
Pre-shared keyThe protocol page says the optional pre-shared key could provide post-quantum resistance and names no algorithm. The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot.No post-quantum algorithm is named for this slot. When no pre-shared key is set, it is treated as an all-zero 32-byte value.WireGuard protocol page, wg(8) manual and known limitations page, checked 2026-12-03
Kernel and wg toolsThe wg(8) manual describes the tools that set keys and peers. The manual and protocol page describe no cipher suite list or TLS setting in the tools or the kernel module.The documented tools expose no option that selects a post-quantum key exchange. Any change would come from a new release, which the checked pages do not describe.wg(8) manual and WireGuard protocol page, checked 2026-12-03
wg-quick configurationThe wg-quick(8) manual reads /etc/wireguard/INTERFACE.conf and shows PrivateKey, PublicKey and PresharedKey entries. PreUp and PostUp run bash snippets, and the manual suggests keeping keys encrypted, for example with pass(1).No configuration key exists for selecting a post-quantum algorithm. The PresharedKey entry takes only the symmetric key itself.wg-quick(8) manual, checked 2026-12-03
Key generationThe wg(8) manual says genkey prints a random base64 private key, pubkey derives the public key, and genpsk prints a random pre-shared key. The quickstart shows umask 077 before wg genkey, and wg set takes key file paths.The quickstart does not cover genpsk or how public keys should be distributed between peers, so no documented distribution mechanism exists.wg(8) manual and WireGuard quickstart, checked 2026-12-03
Rosenpass as a separate projectRosenpass is a separate open-source key-exchange project that names Classic McEliece and Kyber and is meant to pair with WireGuard through pre-shared keys. Its latest release on the site is v0.2.3, dated 3 August 2026.The Rosenpass site does not describe it as part of the WireGuard project and does not mention ML-KEM. It is not a WireGuard setting.Rosenpass site, checked 2026-12-03
Signature questionThe protocol uses no signatures or certificates. The WireGuard home page, protocol page, known limitations page and compilation page do not mention ML-DSA, SLH-DSA, FIPS or CNSA 2.0.No post-quantum signature support is documented, and none applies to the documented design, which has no signatures to replace.WireGuard protocol page, known limitations page, home page and compilation page, checked 2026-12-03

Which WireGuard parts an upgrade touches and what each means

A post-quantum upgrade of WireGuard reaches fewer places than a TLS upgrade, because the protocol has a fixed algorithm set and no certificates. The work centers on the pre-shared key slot, the key files and the configuration that carries them, with the kernel and userspace builds following from the same design.

Fixed handshake construction

WireGuard uses the Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s construction, with Curve25519 for key exchange and ChaCha20-Poly1305, BLAKE2s and HKDF for the rest. No setting in the WireGuard protocol or the wg(8) manual selects these algorithms. Changing the public-key part of the handshake would mean a new protocol version rather than a configuration change, and the facts do not establish a schedule or method for that. Confirm with the project before assuming any handshake change is planned.

Protocol page

Pre-shared key slot

The optional pre-shared key adds a symmetric layer on top of the Curve25519 exchange, and the protocol page says it could provide post-quantum resistance without naming an algorithm. The WireGuard known limitations page recommends running a post-quantum handshake outside WireGuard and inserting its result into this slot. When no key is configured, the slot holds an all-zero 32-byte value, so an unset peer has no added layer. Check every peer for this value.

Known limitations

Key files and genpsk

Private, public and pre-shared keys are base64 values, and the wg(8) manual says wg genpsk prints a random pre-shared key. The wg set options take file paths for private and preshared keys, because command-line arguments are not considered private on most systems. An upgrade that introduces a new pre-shared key must distribute it to each peer through a channel the vendor does not document. The quickstart does not cover PresharedKey or key distribution, so ask how your deployment will move these values.

wg(8) manual

Configuration and SaveConfig

The wg-quick configuration file at /etc/wireguard/INTERFACE.conf holds PrivateKey, PublicKey and PresharedKey entries. With SaveConfig set to true, the current interface state is written back to the file on shutdown, which can overwrite a manual edit to the pre-shared key. PreUp, PostUp, PreDown and PostDown run as bash snippets, and the manual suggests keeping keys encrypted through PreUp with pass(1). Review these hooks before changing key material.

wg-quick(8) manual

No certificates or signatures

WireGuard has no certificate authority, certificate chain or signature algorithm, so there is no PKI to migrate and no signed material to re-issue. Peer identity rests on static Curve25519 public keys exchanged out of band. This removes a common migration task, but it also means the protocol offers no post-quantum signature option. The WireGuard known limitations page notes that hashing public keys could help but would not give forward-secure post-quantum secrecy and is not part of the Noise Protocol Framework.

Known limitations

Kernel module and userspace build

WireGuard runs either as a Linux kernel module or as a userspace implementation, and the compilation page describes both builds. An update to the cryptographic code therefore reaches each deployment through a different path: a kernel update or module rebuild on one, and a userspace binary on the other. The facts do not state whether either build carries post-quantum code, and the WireGuard home page, protocol page, known limitations page and compilation page do not mention ML-KEM, ML-DSA or FIPS. Confirm the build and version each host runs.

Compilation page

How an external post-quantum key feeds the WireGuard pre-shared key

The diagram starts with two peers running the standard WireGuard handshake, Noise_IKpsk2 with Curve25519 static keys, which is not post-quantum by default. A separate post-quantum key exchange, run by a tool outside the WireGuard project such as Rosenpass or a vendor-supplied tool, produces a shared secret. That secret is written to the PresharedKey entry in the configuration or to a file passed to wg set preshared-key, and WireGuard then mixes it into the handshake to establish the tunnel. Check which tool and version you use, since the WireGuard known limitations page recommends this pattern but names no algorithm.

External post-quantum secret feeds the WireGuard pre-shared key slot.

How the upgrade differs for self-built, distribution-packaged and managed WireGuard

When your team compiles the WireGuard kernel module or the userspace tools, you control the code version, the build flags and the timing of every change. The project documents the commands for generating keys with wg on the host where the interface runs, and the wg-quick manual shows configuration read from /etc/wireguard/INTERFACE.conf. Key generation and pre-shared key handling therefore happen on machines you operate, which is where your upgrade work begins.

  • Key generation: wg genkey prints a random private key, wg pubkey derives the public key, and wg genpsk prints a random pre-shared key, all in base64.
  • Pre-shared key storage: the wg set options take file paths for private and pre-shared keys, because command line arguments are not considered private on most systems.
  • Configuration files: the wg-quick example files hold PrivateKey, PublicKey and PresharedKey entries, so file permissions on those files matter.
  • Hooks: PreUp and PostUp entries are run by bash, and the manual suggests keeping keys encrypted, for example with pass(1).
  • Not documented: the sources give no procedure for rotating an installed pre-shared key across peers.

Confirm each of these steps on your own build and record the version you compiled.

Steps to scope a WireGuard post-quantum upgrade in order

This sequence gives you a dated, checkable record of your WireGuard interfaces, their key material and the tool versions in use, before you decide on and test an external post-quantum handshake. Each step ends with a check you can record, so the result is evidence you can hand to a security or vendor-risk reviewer. WireGuard's documentation says the pre-shared key slot is the intended place to insert such a key.

  1. Inventory every interface and peer

    Run wg show all dump or wg show on each host and list every interface, its listening port and every peer. For each interface, confirm where its PrivateKey is stored in the /etc/wireguard/INTERFACE.conf file and whether a PresharedKey is already set on each peer. Per the wg-quick(8) manual, that file is read first, before distro-specific paths, so record the path your host actually loads. Record the result in a table with one row per peer. The step is closed when every peer appears in your table with its key status noted, and you can name any peer that currently has no pre-shared key.

  2. Confirm wg and wg-quick versions

    On each host, run wg --version and record the output, then find the wg-quick version from your distribution's package manager. Note the kernel version with uname -r, since WireGuard may be built into the kernel or run as a module depending on your system. Check the version against the documentation you intend to follow, because the WireGuard protocol and tool behavior described in the project's pages may differ across releases. The step is closed when you have a version string for each host in your inventory and you can state which tool and kernel versions a post-quantum handshake would need to work with.

  3. Decide whether an external handshake fits your risk

    Note that WireGuard's known limitations page says it is not, by default, post-quantum secure. It also states the pre-shared key could provide post-quantum resistance, and recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. Decide, with your security lead, whether that approach is acceptable for the data and sessions each interface carries. Document the decision and its owner. The step is closed when you have a written decision for each interface, and you can name who approved it.

  4. Choose and test the handshake outside WireGuard

    If the decision is to proceed, select the external key-exchange tool and test it in a lab that mirrors your production peers. The WireGuard known limitations page names no specific tool, and the Rosenpass site describes a separate open-source project meant to pair with WireGuard through pre-shared keys. Verify any project's claims against its own documentation and record its version, since the Rosenpass site lists a latest release as of its check date. The step is closed when a test handshake completes in the lab and you have recorded the tool name, version and the algorithms its documentation says it uses.

  5. Feed the output to the pre-shared key slot

    Pass the handshake output to WireGuard using the file-path option, since the wg(8) manual says the preshared-key option of wg set takes a file path and that command-line arguments are not considered private on most systems. Use wg set INTERFACE peer PUBLIC_KEY preshared-key /path/to/file on a test interface first, and keep the file readable only by root. The wg(8) manual also describes wg genpsk for generating a random pre-shared key, which you can use to confirm the behavior in your lab. The step is closed when a test peer shows the pre-shared key slot populated after the command runs.

  6. Test rekey and reconnect across all peers

    Force a reconnect on each test peer, for example by stopping and starting the interface with wg-quick down and wg-quick up, and confirm traffic resumes with wg show reporting a recent handshake timestamp. Repeat the test on every peer in your inventory, including peers on other platforms that you have confirmed interoperate. Record any peer that fails to reconnect and the error it reports. Note that the WireGuard protocol page says that when no pre-shared key is configured, it is treated as an all-zero 32-byte value, so a peer missing the key will not match its partner. The step is closed when every peer completes a handshake after reconnect and the results are logged.

  7. Record the result and check each peer

    Run wg show on each production interface after the change and confirm a preshared key appears against every peer that was configured for it. If you use SaveConfig in wg-quick, note that the wg-quick(8) manual says it saves the current interface state to the config file on shutdown, so check the saved file afterward. Write the date, tool versions, handshake tool name and version, and the names of the peers covered into your record. The step is closed when your record lists each peer with its pre-shared key status and its last successful handshake, and an owner has signed off on it.

Why the pre-shared key is the only documented post-quantum hook

For WireGuard, the only documented place where post-quantum protection could be added is the optional pre-shared key, referred to as PresharedKey in configuration files. The WireGuard protocol page and the wg(8) manual both describe this slot as the mechanism for post-quantum resistance, and the WireGuard known limitations page states that WireGuard is not, by default, post-quantum secure. Any upgrade plan should therefore treat the pre-shared key as the single point where an additional layer could be inserted, rather than assuming the protocol itself has a post-quantum mode. When no pre-shared key is configured, the protocol treats it as an all-zero 32-byte value, so a peer pair without a configured key gets no extra protection in that slot. Teams should check every peer entry in each wg0.conf-style file to see whether PresharedKey is set, because an omitted line is equivalent to having no additional layer at all.

The wg(8) manual describes the pre-shared key as an optional layer of symmetric-key cryptography added on top of the public-key cryptography. This matters for scoping. The Curve25519 key exchange and peer authentication rest on elliptic-curve keys, and the pre-shared key adds a symmetric secret alongside them. The project does not name any post-quantum algorithm for this slot. The protocol page says only that the pre-shared key could provide post-quantum resistance, and the wg(8) manual gives no algorithm either. Neither the WireGuard home page, the protocol page, the known limitations page nor the compilation page checked on 2026-12-03 mentions ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0. Reviewers should record this as the vendor's documented position on that date, and ask the project directly whether it plans to name or support a specific post-quantum mechanism.

Because the pre-shared key carries whatever an operator provides, its strength depends entirely on the process that produces and distributes it. The wg(8) manual states that genpsk prints a random pre-shared key in base64, and the quickstart does not cover genpsk, PresharedKey, or how keys should be distributed between peers. The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot, which places the post-quantum step outside WireGuard. Teams planning this should confirm the source of each key, how it is delivered to each peer, how it is stored, and how it is rotated, and should record those answers as part of their inventory. The wg(8) manual also says the set command reads the preshared key from a file path, which keeps it off the command line. Plan for a key-management process that the project does not document, and confirm it in your own environment.

What WireGuard has not published on post-quantum upgrades and what to ask

The WireGuard project's home, protocol, known limitations and compilation pages, checked on 2026-12-03, do not describe a post-quantum key exchange, a FIPS or CNSA 2.0 position, or a key-distribution method. Each card below names one gap, what to ask the project or vendor, and where to record the answer in your inventory.

No ML-KEM or hybrid setting

The home, protocol, known limitations and compilation pages checked on 2026-12-03 do not mention ML-KEM or a hybrid key exchange, and the wg and wg-quick manuals describe no setting that selects one. Ask the project whether a post-quantum or hybrid key exchange is planned for the protocol itself, and record the answer, with the date you asked, in the protocol row of your cryptography inventory. Do not record hybrid support as present until a project source names it.

Known limitations page

No FIPS or CNSA 2.0 statement

None of the checked project pages mention FIPS or CNSA 2.0, so the project has published no position on either. If your organization must meet a federal or national security requirement, ask the project in writing whether any validation or conformance statement exists, and record a blank answer as a gap rather than as a pass. Do not treat the protocol's fixed algorithms as a validated configuration.

Compilation page

No post-quantum signatures to upgrade

WireGuard's protocol uses no signatures or certificates, so there is no signature scheme to replace with a post-quantum one. The question for your inventory is therefore about key exchange and peer authentication, not signing. Record that the signature row is not applicable under the documented design, and recheck that conclusion if a later protocol version adds signatures.

Protocol page

No documented key distribution

The quickstart explains how to generate keys with wg but does not describe how public keys should be exchanged between peers, and the pages checked do not document a method for distributing pre-shared keys. Ask the project for its recommended distribution process, and record in your key inventory who generates each pre-shared key, where it is stored, and how it reaches each peer. Use wg genpsk output only with a secure transfer method you define yourself.

Quickstart

No roadmap or transition notice

The supplied project pages contain no roadmap, transition notice or deprecation plan for post-quantum cryptography, and the known limitations page states only that WireGuard is not, by default, post-quantum secure. Ask the project for any published timeline, and record the answer with its date and source. Until a notice exists, plan around the current design and the pre-shared key option.

Known limitations page

Unclear status of external handshakes

The known limitations page recommends running a post-quantum handshake outside WireGuard and feeding its output into the pre-shared key slot. The project has not said whether this pattern will become a built-in option. Ask the project directly, and record the answer in your upgrade plan so that an external handshake is treated as a custom integration you must own and test.

Known limitations page

What can go wrong during a WireGuard post-quantum change

The most dangerous failure in a WireGuard post-quantum change is silent. The pre-shared key is optional, and when none is configured it is treated as an all-zero 32-byte value, so a tunnel keeps working on the classical Curve25519 handshake alone. If an external post-quantum handshake fails, or its output is never written into the PresharedKey slot, nothing in the tunnel's normal operation will announce it. Teams should not assume the change took effect because the tunnel came up. Check the configured value on each peer, confirm that the interface state shows the key on both sides, and test that a handshake completes after the change.

Key handling creates the second group of risks. The wg(8) manual notes that command-line arguments are not considered private on most systems, so the wg set options for the private and preshared keys take file paths. Keep those key files readable only by the owner, and create them under a restrictive umask, as the quickstart does with umask 077. In wg-quick configurations, PreUp, PostUp, PreDown and PostDown entries are run by bash, so a script that echoes or logs a key, or that passes it on the command line, can expose it. The wg-quick(8) manual suggests keeping keys encrypted, for example through pass(1) in PreUp, and that approach should be reviewed for each host.

Configuration files cause the third group of risks. With SaveConfig set to true, wg-quick saves the current interface state to the config file on shutdown, so a PresharedKey entry that was added by hand can be overwritten if the running state does not carry it. Decide per host whether SaveConfig is needed, and after each change compare the file on disk with the expected values. Finally, peers that disagree on the pre-shared key will fail their handshakes, which shows up as a tunnel that does not pass traffic rather than as a warning. Record which key each peer holds, verify every peer individually, and roll the change out in a sequence that keeps a working path available while the remaining peers are updated.

Questions about a WireGuard post-quantum upgrade

Is WireGuard quantum safe today?

No, not by default. The WireGuard known limitations page says WireGuard is not, by default, post-quantum secure. The handshake uses Curve25519 for ECDH key exchange, and static peer public keys authenticate peers with that elliptic curve algorithm. A future quantum computer running Shor's algorithm would threaten that exchange, so an unmodified deployment should be treated as classical only. The protocol offers one documented hook for post-quantum protection: the optional pre-shared key, which the wg(8) manual says adds a layer of symmetric-key cryptography on top of the public-key cryptography, included for post-quantum resistance. Using that hook requires a separate post-quantum handshake whose output you insert into the slot. Confirm the current state of your installed version with the WireGuard project before recording an answer in your inventory, since the project pages were last checked on 2026-12-03.

Do we need a newer kernel or wg version for post-quantum?

The facts supplied name no kernel or wg version that adds a post-quantum algorithm to WireGuard. The protocol page lists the primitives as ChaCha20 with Poly1305, Curve25519, BLAKE2s, SipHash24 and HKDF, and the wg(8) manual and protocol page describe no cipher suite list or setting that selects algorithms. So a version upgrade alone does not change the cryptography. What a newer kernel or tools release does change is the operational surface: the way keys are generated and passed to wg set, and how wg-quick reads configuration. Check the release notes of the kernel module and wg-tools you run, and ask the WireGuard project whether any future release will add a post-quantum option. The WireGuard home page, protocol page, known limitations page and compilation page checked on 2026-12-03 do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0, so the vendor has published nothing on those points there.

Does a pre-shared key make WireGuard post-quantum?

Not by itself. The pre-shared key is the documented slot for post-quantum protection: the WireGuard protocol page says the optional pre-shared key could provide post-quantum resistance, and it names no algorithm. The handshake name Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s places the key at the second message position, and when no key is configured it is treated as an all-zero 32-byte value. A static pre-shared key is only a symmetric secret both peers share, so its protection depends entirely on what generated it and how it was distributed. The WireGuard known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into that slot. The algorithm and its quality therefore come from that external process, not from WireGuard. The project's quickstart does not document how pre-shared keys or public keys are distributed between peers, so you must define that process yourself and verify it in your environment.

Does a WireGuard post-quantum upgrade cost extra?

Yes, the cost sits mainly in components outside WireGuard. The protocol itself is open source and the supplied facts give no licensing or price for the post-quantum step, so the cost drivers are: the external post-quantum key exchange tool you choose and its operation, testing across your peers and clients, key handling procedures, and staff time for planning and change control. Some costs are one-time, such as design, testing and the first key rollout. Others recur, such as key rotation, tool upgrades and monitoring. Costs rise with the number of peers, the variety of clients and platforms, and how many systems must be retested after each change. When you ask a provider for a quote, request an itemized scope covering the chosen external tool, the test plan, the key distribution and rotation process, documentation, and what is excluded. DeployOpen plans and implements the work in the client's infrastructure under a fixed-scope written agreement, and quotes follow from that scope. DeployOpen does not publish a price list.

What about Rosenpass for WireGuard?

Rosenpass is a separate open-source key-exchange project that names Classic McEliece and Kyber and is meant to pair with WireGuard through pre-shared keys. It is not part of the WireGuard project, and the Rosenpass site does not describe it that way. Its site does not mention ML-KEM, so do not assume a standard that the site does not name. The latest release the site lists is v0.2.3, dated 3 August 2026, checked on 2026-12-03. Using Rosenpass means you run a second system alongside WireGuard, with its own configuration, its own key lifecycle and its own updates. Before adopting it, confirm which algorithms your build uses, how the output reaches the WireGuard pre-shared key slot, and who maintains the project and its security advisories. Treat it as an option to evaluate and test rather than a built-in WireGuard feature, and record it as a separate component in your inventory.

Can our team do a WireGuard post-quantum upgrade alone?

Many teams can handle the WireGuard side alone, but the work usually needs several skills. Engineers must read the wg(8) and wg-quick(8) manuals, generate and protect keys with wg genkey, pubkey and genpsk, and store files with restrictive permissions, since the manual says the private-key and preshared-key options take file paths. Someone must own the external post-quantum handshake, its build and its updates, and test it against every peer and client that must interoperate. A security lead must define key distribution and rotation and document them as evidence. Outside help is useful when the external tool is new to the team, when many peers or mixed platforms need coordinated testing, or when a compliance review will ask for a documented, repeatable process. DeployOpen can plan, implement, test and document this under a written scope, and can support ongoing upgrades under a retainer.

Where should we store WireGuard keys during an upgrade?

Store keys in files readable only by the administrator, and never pass them on the command line. The WireGuard quickstart shows umask 077 before running wg genkey > privatekey, and the wg(8) manual says the private-key and preshared-key options of wg set take file paths because command line arguments are not considered private on most systems. In wg-quick configuration, PrivateKey and PresharedKey entries sit in /etc/wireguard/INTERFACE.conf, which is read first before distro-specific paths. The wg-quick(8) manual suggests keeping keys encrypted, for example with pass(1) through PreUp, and it notes that PreUp, PostUp, PreDown and PostDown snippets run under bash. Keep the SaveConfig option in mind too: when true, it saves the current interface state to the config file on shutdown, which can change stored settings during an upgrade. Record where each key lives, who can read it, and how it rotates, since an auditor will ask for that evidence.

How DeployOpen helps scope and run a WireGuard post-quantum upgrade

DeployOpen starts by mapping which WireGuard peers, key files and configuration paths the upgrade would touch, then agrees a written scope before any change. Work covers the kernel and tool versions in use, key handling for each peer, and any pre-shared key process, with the findings documented for your team to review.

How we scope

  • We inventory each WireGuard interface, its peers, and where the private keys and pre-shared keys are stored on each host.
  • We record the kernel, wg and wg-quick versions in use, so the written scope names the exact components each step applies to.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing support available as a retainer.

How we build

  • We test any proposed pre-shared key process in a lab that mirrors your peer layout before changing production configuration.
  • We check how keys are generated, stored and loaded, using the documented wg genkey, genpsk and file-based set options.
  • We review PreUp and PostUp scripts and SaveConfig settings, since they affect where keys are read and written.

How we hand over

  • We deliver a written record of the current key layout, the changes made, and the commands used to verify each peer.
  • We document rollback steps for each host, so your team can return to the previous configuration if a peer fails to connect.
  • We walk your administrators through the findings and mark any point the vendor documentation does not cover, for you to confirm with the project.

How we support

  • We retest peer connectivity and key handling after your team applies the changes, and record the results.
  • We track the WireGuard project's published statements on post-quantum support so your evidence stays current.
  • Ongoing support, upgrades and continuous testing are available as retainers, with scope agreed in writing.

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.