Post-quantum requirements to plan for with WireGuard

WireGuard is not post-quantum secure by default, and its protocol has no setting that selects a post-quantum algorithm. Planning starts with the Curve25519 handshake and the optional pre-shared key slot, which the project itself names as the place for post-quantum protection.

On this page

Does WireGuard need post-quantum requirements planned now?

WireGuard is not post-quantum secure by default. The project's known limitations page, checked on 2026-12-03, says so directly. Its key exchange rests on Curve25519 elliptic-curve Diffie-Hellman with static peer public keys, and the protocol contains no certificates and no signature algorithms. Anyone who runs WireGuard as a site-to-site tunnel, a remote access VPN or a管理 link between hosts should record this in their readiness inventory, because the cryptography that authenticates peers and establishes session keys is the part a future quantum computer would target. Security leads, network engineers and vendor-risk reviewers who must answer for this product need the same picture: the algorithms are fixed by the protocol, and no configuration setting selects a different cipher suite.

The project has published nothing on ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0 on the pages checked: the home page, protocol page, known limitations page and compilation page, all reviewed on 2026-12-03. The protocol page and the known limitations page both say the optional pre-shared key could provide post-quantum resistance, but neither names a post-quantum algorithm. The known limitations page also recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. That is an approach a team can plan around, not a supported feature of the project.

What to plan now is an inventory and a decision, not an upgrade. Confirm which of your WireGuard peers use a pre-shared key today. The wg(8) manual says the preshared key is optional and that the protocol treats an unset key as an all-zero 32-byte value, so a peer without one has no added symmetric layer. Check where those keys are stored and how they are distributed, because the quickstart does not document a key-distribution mechanism and the pre-shared key is only useful if both ends hold it. Record which tunnels carry data that must stay confidential for years, since that determines whether the gap matters for your risk assessment. Then decide whether to plan a separate post-quantum handshake layer, such as the Rosenpass project that the known limitations page does not name but which is an independent open-source key-exchange project meant to pair with WireGuard through pre-shared keys, or to wait for statements from the WireGuard project. Any such choice should be tested in your own environment and documented as your decision, since the project has not endorsed a specific pairing.

What applies to WireGuard, by component and source date

This table lists each WireGuard component that bears on post-quantum planning, what it does, and the page where it was checked. Read the rows to see which parts are fixed by the protocol, which are optional, and which come from a separate project. The main takeaway is that the documented post-quantum step is the optional pre-shared key, and the algorithms that set the default protection are not post-quantum.

ComponentWhat the documentation saysSource page and date checked
Handshake primitivesCurve25519 for ECDH key exchange, BLAKE2s for hashing, ChaCha20 with Poly1305 for authenticated encryption, SipHash24 for hashtable keys, and HKDF for key derivationWireGuard protocol page, checked 2026-12-03
Noise_IKpsk2 constructionHandshake named Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, the Noise IK pattern with a pre-shared key mixed in at the second messageWireGuard protocol page, checked 2026-12-03
Optional pre-shared keyAdds a symmetric-key layer on top of public-key cryptography and is described as included for post-quantum resistance, but no post-quantum algorithm is namedwg(8) manual and WireGuard protocol page, checked 2026-12-03
All-zero defaultWhen no pre-shared key is configured, it is treated as an all-zero 32-byte valueWireGuard protocol page, checked 2026-12-03
Signatures and certificatesThe protocol uses no signature algorithms, certificates or certificate authorities, and no setting selects a cipher suiteWireGuard protocol page and wg(8) manual, checked 2026-12-03
Default post-quantum statusThe project states WireGuard is not, by default, post-quantum secureWireGuard known limitations, checked 2026-12-03
Recommended extra stepRun a post-quantum handshake on top of WireGuard and insert the resulting key into the pre-shared key slotWireGuard known limitations, checked 2026-12-03
RosenpassA separate open-source key-exchange project, not part of WireGuard, that names Classic McEliece and Kyber and is meant to pair through pre-shared keysRosenpass site, checked 2026-12-03

Which WireGuard functions depend on public-key algorithms

In WireGuard, public-key cryptography is confined to the handshake, where Curve25519 ECDH carries both key exchange and peer authentication. Each peer holds a static private key and publishes the matching public key, and the handshake, built on the Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s construction, derives session keys from exchanges between those static keys. Authentication is implicit: a peer is trusted because it can complete the exchange using the private key that matches a public key already configured on the other side. The protocol's own documentation names Curve25519 as the elliptic-curve primitive for this exchange, so the public-key dependence sits in that one primitive rather than spread across several.

Several parts of the design are absent, and their absence shapes the inventory. The WireGuard protocol page and the wg(8) manual describe no certificates, no certificate authority, no signature algorithm and no cipher suite list, and no TLS settings. Because no configuration option selects an algorithm, an administrator cannot switch the handshake to a different public-key algorithm through a setting. The primitives are fixed by the protocol: ChaCha20 with Poly1305 for authenticated encryption, BLAKE2s for hashing, and HKDF for key derivation, with Curve25519 for the exchange. Planning for a change therefore means planning for a protocol-level change or a supplementary layer, not a configuration change.

The only other public-key-related input is the static key material itself. Keys are generated with wg genkey and derived with wg pubkey, and the wg(8) manual notes that the optional preshared key is symmetric material, not a public key. The wg(8) manual and the WireGuard known limitations page state that WireGuard is not, by default, post-quantum secure, and the vendor has published no post-quantum algorithm for the handshake on the pages checked on 2026-12-03. Teams should confirm with the WireGuard project and in their own deployment which peers hold which static keys, because the sources state how keys are generated and used but do not document a key-distribution mechanism between peers.

Components the post-quantum question touches

WireGuard has few moving parts, so the post-quantum question centers on a short list of components: the handshake, the optional pre-shared key slot, the key files that hold secrets, and the absence of certificates. Each item below changes what you must inventory and what you can verify before planning a move.

Curve25519 handshake and static keys

WireGuard's handshake uses Curve25519 ECDH with each peer's static public key, so key exchange and peer authentication both rest on an elliptic-curve algorithm. The protocol page names no alternative key exchange, so this is the component a post-quantum plan must replace or supplement. Check which peers hold which static keys, because every peer pair depends on these values. The handshake itself is the dependency to record in your inventory.

WireGuard protocol page

Optional pre-shared key slot

The pre-shared key is optional and adds a symmetric-key layer on top of the public-key exchange. The wg(8) manual describes it as included for post-quantum resistance, and the known limitations page recommends inserting a key from a separate post-quantum handshake into this slot. Whether that produces post-quantum protection depends on how the key was derived, and the vendor names no post-quantum algorithm for it. Confirm the exact mechanism with the project before relying on it.

wg(8) manual

All-zero default when unset

When no pre-shared key is configured, the protocol treats it as an all-zero 32-byte value. A tunnel with an empty slot therefore has no post-quantum layer at all, and an audit that only checks whether the key is present will miss the difference. Check each peer's configuration for a real value, not just an entry in the file. An unset slot provides no additional protection.

WireGuard protocol page

Key files in wg-quick

The PrivateKey and PresharedKey entries in wg-quick configuration files hold the secrets that the post-quantum slot would use. The wg-quick manual runs PreUp snippets in bash and suggests encrypting keys, for example through pass(1). Record where each key file lives, who can read it, and how it is backed up. These files become the storage points for any new key material you add.

wg-quick(8) manual

No certificates or signatures

WireGuard uses no certificates, certificate authorities or signature algorithms. A certificate-based post-quantum migration plan does not map onto this design, and the signature families that certificate authorities migrate to have no place in WireGuard's handshake. Your inventory should show zero certificate dependencies for this product. Peer identity comes only from static public keys that operators distribute themselves.

WireGuard known limitations

Rosenpass as a separate project

Rosenpass is an independent open-source key-exchange project meant to pair with WireGuard through the pre-shared key slot. Its site does not describe it as part of the WireGuard project, and it names Classic McEliece and Kyber without mentioning ML-KEM. Treat it as a third-party component with its own release cycle and review, and list it separately in your inventory. Confirm which algorithms your build uses before making any claim about it.

Rosenpass site

How the answer changes by deployment and by peer type

When both ends of a WireGuard link are systems your organization runs, you control the key generation, the key storage and the configuration files. The protocol fixes its algorithms: the WireGuard protocol page lists ChaCha20 with Poly1305, Curve25519, BLAKE2s, SipHash24 and HKDF, and the page describes no cipher suite list, so no setting on these systems changes them. The post-quantum question therefore becomes whether you add a pre-shared key layer and how you manage it.

  • Key generation: the wg(8) manual says wg genpsk prints a random pre-shared key in base64, so you can create one on the same host where you generate peer keys.
  • Key storage: the wg(8) manual says the private-key and preshared-key options take file paths, because command-line arguments are not considered private on most systems.
  • Configuration files: wg-quick(8) reads /etc/wireguard/INTERFACE.conf first and shows PresharedKey entries in its example files.
  • Encrypted keys: the wg-quick(8) manual suggests keeping keys encrypted, for example with pass(1) through PreUp.
  • Handshake dependence: the handshake still uses Curve25519 for key exchange, so a pre-shared key sits on top of that dependence rather than replacing it.

Before planning, confirm which WireGuard version and tooling each system runs, and record where each private key and pre-shared key is stored.

What to do next, in order

This sequence turns the WireGuard readiness questions into dated evidence. It inventories where pre-shared keys are used or missing, confirms where secret material is stored, checks the project's current notices, decides whether to test a post-quantum handshake, and records the outcome.

  1. Inventory every WireGuard interface and peer

    List each WireGuard interface on every host, along with its peers and their public keys, and record the configuration file that defines each one. For every peer, note whether a PresharedKey entry is set. A peer with no PresharedKey line falls back to an all-zero 32-byte value, so mark it as having no pre-shared key. Use wg show to confirm the live state, since a file on disk may not match what is running. This step is done when every interface and peer appears in one inventory with a clear yes or no for pre-shared key use.

  2. Confirm where private and pre-shared keys are stored

    The wg(8) manual says the private-key and preshared-key options take file paths, and the wg-quick(8) manual reads configuration from /etc/wireguard/INTERFACE.conf and distro-specific paths. Check which file holds each PrivateKey and PresharedKey, who can read those files, and whether the file permissions match the umask 077 approach shown in the quickstart. Also check whether any PreUp script fetches keys from encrypted storage, as the wg-quick(8) manual suggests with pass(1). Record the path and access controls for each key. This step is done when every key location is written down and the file permissions have been checked against the host.

  3. Check the project's notices on the review date

    Open the WireGuard known limitations, protocol and compilation pages on the day of the review and record what each says about post-quantum support. As of 2026-12-03, none of these pages mentions ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0, and the known limitations page states that WireGuard is not, by default, post-quantum secure. Save a dated copy or note the check so the result can be compared later. Ask the vendor or project directly if you need a written statement, since the pages above do not describe a roadmap. This step is done when the review date and the wording found on each page are recorded.

  4. Decide whether to test a post-quantum handshake

    The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting its output into the pre-shared key slot. Decide, with the people who own the risk, whether to test this approach in a non-production environment. Note that Rosenpass is a separate open-source project that is meant to pair with WireGuard through pre-shared keys, and that its site does not describe it as part of the WireGuard project. If you test, define the peers, the key-rotation steps, and the rollback path before any change is made. This step is done when a written decision exists, whether to test or not, with its owner and reasons.

  5. Test the chosen handshake approach outside production

    If the decision in the previous step is to test, build a lab that mirrors one production interface and its peers. Apply the chosen post-quantum handshake, feed its output into PresharedKey on both sides, and confirm the tunnel comes up and passes traffic. Verify with wg show that the pre-shared key is set on every tested peer. Record the software versions used, since the project pages do not give a version for this approach. This step is done when the test results, including any failures, are recorded against the tested versions.

  6. Record the result with its date

    Write one dated record that covers the inventory, the key storage locations, the notices checked, the decision, and any test results. Name the person who made each check and the host or interface it applies to. Mark each open item with what must be confirmed and who will confirm it, such as the vendor or the platform owner. Keep the record with the configuration backups so that a later review can compare the state against the same facts. This step is done when the record is saved, dated, and linked from the readiness file for WireGuard.

What the vendor has not published, and what to ask

The WireGuard project's pages checked on 2026-12-03 say little about post-quantum support. Each gap below is a point where the documentation is silent or incomplete, and each has a question to put to the project or to a distributor before planning an upgrade.

No ML-KEM or FIPS mention

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. The vendor has published nothing on these points there. Ask the project whether it plans to add any NIST-standardized post-quantum key exchange, and if so, which parameter set, which release and whether it will be an option or the default. Ask distributors whether they ship any build that includes such an option.

Known limitations page

No signature support to document

The protocol uses Curve25519 ECDH for key exchange and has no certificates or signature algorithms, so no post-quantum signature support is documented and none is needed for the documented design. Confirm this with the project, and ask whether any future version would add signatures or certificates. If it would, the signature algorithm, its key sizes and its handshake impact would all need to be stated before any migration plan is made.

Protocol page

No key distribution method documented

The quickstart explains how to generate keys with wg and shows umask 077 with wg genkey, but it does not cover wg genpsk, PresharedKey or how public keys should move between peers. A pre-shared key is the documented route for post-quantum resistance, so the missing distribution method matters. Ask the project how pre-shared keys should be generated, delivered and rotated between peers, and whether it recommends a specific transport for them.

Quickstart

No roadmap statement in pages checked

The pages checked on 2026-12-03 contain no statement on a post-quantum roadmap, timeline or deprecation plan. Ask the project whether a post-quantum roadmap exists, whether it will be published, and what triggers a change in default behavior. Ask distributors whether they have received any roadmap commitment from the project that they can share in writing.

Known limitations

Hashed public keys do not give forward secrecy

The known limitations page says that hashing public keys before sending them could enable post-quantum security, but that this is not part of the Noise Protocol Framework and would not give forward-secure post-quantum secrecy. Ask the project whether it plans to adopt any such scheme, and if it does not, which of its documented options it considers sufficient for forward secrecy. Ask distributors whether any build applies the hashing approach.

Known limitations page

What can go wrong during a WireGuard post-quantum review

The most common gap is a pre-shared key that was never set. The WireGuard protocol page says that when no pre-shared key is configured, the slot is treated as an all-zero 32-byte value. The handshake still completes, so a tunnel can look healthy while providing no added layer. A review should check each peer's configuration for a PresharedKey entry and confirm that the value is not all zeros. The wg show output on each interface can be used to confirm that a preshared key is in place for every peer, and the reviewer should ask who generated the key with wg genpsk and how it was distributed to the other end.

A second failure is a post-quantum key that is generated outside WireGuard and never inserted into the pre-shared key slot. The WireGuard known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the resulting key into that slot. A reviewer should confirm that the key is actually the value WireGuard uses, not a separate secret that the team believes is protecting the tunnel. The protocol page states that the pre-shared key is optional and that it could provide post-quantum resistance, but it names no algorithm, so the reviewer should ask the team which tool produced the key, which algorithm it used, and how the output was passed into the configuration. Rosenpass is one project the team may have chosen for this; its own site describes the pairing with WireGuard through pre-shared keys.

The third failure is storing pre-shared keys in plain text in configuration files. 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. The wg-quick(8) manual shows PresharedKey entries in example files under /etc/wireguard/, and it suggests keeping keys encrypted, for example with pass(1) through a PreUp script. A review should check the file permissions on each configuration file, confirm whether the keys are encrypted at rest, and note where a SaveConfig = true setting would write the current interface state back to disk. Also confirm that the team has not mistaken Rosenpass for part of the WireGuard project. The Rosenpass site describes it as a separate open-source key-exchange project and does not say it belongs to WireGuard, so the review record should name it as a separate component with its own release, and should list its version.

Questions engineers and vendor-risk reviewers ask about WireGuard

Is WireGuard quantum safe?

Not by default. The WireGuard project states on its known limitations page that WireGuard is not, by default, post-quantum secure. Its handshake uses Curve25519 elliptic-curve Diffie-Hellman for key exchange and peer authentication, and those public-key operations are not designed to resist attacks from a cryptographically relevant quantum computer. The project's documentation points to an optional pre-shared key as the place where post-quantum protection could be added, but it names no post-quantum algorithm for that purpose. Confirm the current position on the project's known limitations page before recording an answer for an audit file.

Does a WireGuard version or setting add post-quantum support?

The documentation reviewed does not name one. 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. The protocol page and the wg(8) manual describe no cipher suite list or setting that selects a different algorithm, because the algorithms are fixed by the protocol. The only documented route is the optional pre-shared key, which the known limitations page suggests filling with the output of a separate post-quantum handshake. Ask the vendor directly whether a future release will add post-quantum key exchange, and record the answer with its date.

Does moving WireGuard to post-quantum protection cost anything?

The WireGuard project publishes no price, and the facts reviewed give no figure for the work. The cost of a review depends on its scope: how many tunnels and peers exist, whether each peer's keys can be changed without disruption, whether a separate key-exchange tool such as Rosenpass is evaluated, and whether client, server and key-distribution processes need changes. Costs are usually a mix of one-time work (inventory, testing, rollout planning) and recurring work (key rotation, monitoring of project notices). Ask any party quoting the work to list each component, who performs it, and what drives the total. DeployOpen sets its quotes from a written scope agreed before the work starts.

What breaks if a pre-shared key is added to a WireGuard peer?

The documentation reviewed says the pre-shared key is optional and adds a layer of symmetric-key cryptography on top of the public-key cryptography. When no key is configured, the protocol treats it as an all-zero 32-byte value. The sources do not describe how peers behave when only one side has a key, or whether a key mismatch fails the handshake, so those points need to be tested. Generate a key with wg genpsk, keep it in a file readable only by root, and set the same value on both peers. Test the change on a non-production tunnel before rollout, and confirm the behaviour with the project if an exact answer is needed.

What should we ask WireGuard's vendor before a post-quantum review?

Ask the questions that the public documentation leaves open:

  • Whether any release or roadmap item adds post-quantum or hybrid key exchange, and its date.
  • Whether the project will publish guidance on using a pre-shared key for post-quantum protection, and how peers should distribute that key.
  • How peers should behave when only one side has a pre-shared key, and whether a mismatch fails the handshake.
  • Whether any project-supported path exists for key distribution, since the quickstart does not cover it.
  • Whether signatures or certificates will ever be added, and what that would mean for the design.

Record each answer with the date and the version it applies to.

Can our team review WireGuard for post-quantum readiness without outside help?

Yes, a team with WireGuard administration experience can complete the first pass. The work is an inventory: list every tunnel, every peer, the public and private keys in use, whether a pre-shared key exists, and where the keys are stored. The wg and wg-quick manuals explain how keys and configuration files are handled. Outside help is worth considering when the review needs independent evidence for an assessor, when many peers depend on the tunnels, or when a separate key-exchange tool would have to be integrated and tested. DeployOpen plans, implements and documents such reviews inside the client's own infrastructure under a fixed-scope agreement, and it does not issue audit reports.

How DeployOpen helps plan WireGuard post-quantum work

DeployOpen plans WireGuard post-quantum work from the protocol as documented, since WireGuard uses fixed primitives and no cipher suite settings. We confirm what your deployment depends on before any change is proposed, so your team gets a written picture of prerequisites, peers and key handling. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • We inventory every WireGuard interface, peer and key file so the scope reflects your actual deployment.
  • We record the protocol primitives in use and confirm which pre-shared key handling your peers already use.
  • The written scope names the kernel, tool and peer versions we verify, so both sides agree on the boundary.

How we build

  • We check how private keys and pre-shared keys are stored, using file paths and permissions rather than command line arguments.
  • We test peer key distribution and pre-shared key handling in a lab that mirrors your production topology.
  • We document any post-quantum handshake layered on WireGuard and the point where its output enters the pre-shared key slot.

How we hand over

  • You receive a written inventory of keys, peers, configuration files and the protocol primitives each one depends on.
  • The handover lists what the WireGuard project has and has not published on post-quantum algorithms, dated at the check date.
  • We provide a list of open questions to confirm with the vendor or with your own peer systems before rollout.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the handover.
  • We can retest peer configurations when WireGuard or a companion key-exchange project publishes a new release.
  • Support covers changes to your inventory as peers are added, removed or re-keyed over time.

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.