Does WireGuard depend on RSA or elliptic-curve keys?
WireGuard uses no RSA keys and no certificates. Its handshake depends on Curve25519 ECDH static keys, so key exchange and peer authentication are elliptic-curve based. The protocol page describes a Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s handshake in which each peer's static public key is the identity that the other side checks. Because there are no signatures or certificate chains in the design, there is no RSA or ECDSA signing step to inventory. Your question is answered by the protocol itself, which the project documents on its site, so the scope here is the protocol as described there, not a particular distribution's build. The sources were checked on 2026-12-03.
The project states that WireGuard is not post-quantum secure by default, and its known limitations page says so in plain terms. An elliptic-curve key exchange built on Curve25519 is the part that a future quantum attacker would target, so the default configuration should be treated as not post-quantum protected. The protocol page mentions an optional pre-shared key that could provide post-quantum resistance, but it names no post-quantum algorithm and does not say how to produce that key. When no pre-shared key is configured, the protocol treats it as an all-zero 32-byte value. For your inventory, record WireGuard as elliptic-curve dependent with no default post-quantum protection, and confirm with the vendor what, if anything, is planned.
Practical next steps: check each deployed interface for a PresharedKey entry in its configuration, since the wg and wg-quick tools only set this value if an administrator supplies it. Note that the quickstart does not document how public keys or pre-shared keys should be distributed between peers, so ask whoever owns your deployment how those keys are exchanged and stored. The known limitations page recommends running a post-quantum handshake alongside WireGuard and inserting the resulting key into the pre-shared key slot, but that is a design the organization would have to build and test itself. The project pages checked on 2026-12-03 do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0, so do not read any of those as supported without a vendor statement.
Which WireGuard functions use which keys, by source and date
This table lists each WireGuard function, the key type it uses, and whether that key type is post-quantum, with the source page and the date it was checked. Read the RSA column as a confirmation that RSA is not used anywhere in the protocol. The main takeaway is that the handshake's static keys rest on Curve25519, which is not post-quantum, and the optional pre-shared key is the only documented place where post-quantum resistance could be added.
| Function | Key type used | Post-quantum | Source and checked date |
|---|---|---|---|
| Static key exchange | Curve25519 ECDH with static peer public keys | No | WireGuard protocol page, checked 2026-12-03 |
| Handshake | Noise_IKpsk2 with Curve25519 and ChaCha20-Poly1305 | No | WireGuard protocol page, checked 2026-12-03 |
| Optional pre-shared key | Symmetric 32-byte key mixed into the handshake | Not applicable | WireGuard protocol page and wg(8) manual, checked 2026-12-03 |
| Key generation (wg genkey, wg genpsk) | Random base64 private key or pre-shared key | Not applicable | wg(8) manual, checked 2026-12-03 |
| Configuration files read by wg-quick | Stores PrivateKey, PublicKey and PresharedKey entries | Not applicable | wg-quick(8) manual, checked 2026-12-03 |
| Hashing and key derivation | BLAKE2s hashing and HKDF key derivation | Not applicable | WireGuard protocol page, checked 2026-12-03 |
| RSA | Not used | No | WireGuard protocol page and wg(8) manual, checked 2026-12-03 |
| Signatures and certificates | Not used, no certificate authority or signature algorithm | No | WireGuard protocol page and known limitations, checked 2026-12-03 |
Which WireGuard components touch public-key material
WireGuard has no certificates or signature algorithms, so its public-key dependence sits in a few places: the Curve25519 static keys, the handshake that uses them, and the key files and config entries operators handle. Each card below names one of these and says what to check when you inventory a deployment.
Curve25519 static peer keys
Each peer holds a static Curve25519 key pair, and the public half is what other peers use to identify it. The handshake performs elliptic-curve Diffie-Hellman with these static keys, so peer authentication and key exchange both rest on this one elliptic-curve algorithm. Check that every peer's public key is recorded in your inventory, because the static keys are the public-key material that a post-quantum review has to account for first.
WireGuard protocol pageNoise_IKpsk2 handshake construction
The protocol names its handshake Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, which is the Noise IK pattern with a pre-shared key mixed in at the second message. For your inventory, this means the handshake is fixed by the protocol: no setting selects the algorithms, and no certificates or certificate authorities appear anywhere in it. Confirm this against the version you run, since the handshake name is the reference for every key exchange question you will answer about WireGuard.
WireGuard protocol pageOptional pre-shared key and its default
The pre-shared key is optional and adds a layer of symmetric-key cryptography on top of the public-key exchange. When none is configured, the protocol treats it as an all-zero 32-byte value, so a peer without a configured pre-shared key has no extra layer at all. Record for each peer whether a pre-shared key is set, because the vendor's own guidance points to this slot as the place where post-quantum key material would be inserted.
Known limitations pageBase64 key generation with wg
The quickstart says WireGuard requires base64-encoded public and private keys generated with the wg tool, and shows umask 077 followed by wg genkey > privatekey. The manual adds that wg pubkey derives the public key from a private key on standard input, and wg genpsk prints a random pre-shared key. Check how your team generates keys, because keys produced outside wg or with a loose umask fall outside the documented procedure.
Key files read by wg set
The private-key and preshared-key options of wg set take file paths rather than values on the command line, because the manual says command-line arguments are not considered private on most systems. In an inventory, list where each private-key and preshared-key file lives, who can read it, and how it is backed up. Private-key file permissions and location are the controls to verify on every peer, since those files hold the secret half of each key pair.
Key entries in wg-quick configuration
The wg-quick manual reads configuration from /etc/wireguard/INTERFACE.conf first, then distro-specific paths, and its examples include PrivateKey, PublicKey and PresharedKey entries. Those entries are where key material typically sits in a deployed interface. The manual also notes that PreUp and similar entries run as bash snippets and that keys can be kept encrypted, for example with pass(1). Review each interface file for plaintext keys and for any script hooks that read them, because a config file is often the single place where all of a host's key material is written down.
wg-quick(8) manualHow the answer changes with the peer setup
A standard peer-to-peer tunnel with no pre-shared key relies entirely on the public-key handshake. Each peer holds a static Curve25519 private key, and the handshake uses Curve25519 ECDH with the static public keys to set up the session. When no pre-shared key is configured, the protocol treats it as an all-zero 32-byte value, so the handshake still runs but adds no separate symmetric secret. The known limitations page says WireGuard is not, by default, post-quantum secure, so this setup has no added post-quantum protection from the protocol itself.
- Key exchange: The session key comes from Curve25519 ECDH, which is an elliptic-curve dependency.
- Peer authentication: Static public keys authenticate peers, with no certificates or signatures in the protocol.
- Default pre-shared key value: An absent key is treated as all zeros, so the slot is filled but holds no secret.
- Algorithm choice: The cipher suite is fixed by the protocol, and no setting selects other algorithms.
- Post-quantum status: The vendor says the default is not post-quantum secure.
Confirm with your own configuration whether a PresharedKey entry exists on every peer. If none does, the record should show the dependency on Curve25519 without a symmetric layer.
When a pre-shared key is configured, the handshake mixes that symmetric key into the second message of the Noise_IKpsk2 pattern, so the session depends on both Curve25519 and the pre-shared key. The wg(8) manual says the preshared key is optional and adds a layer of symmetric-key cryptography on top of the public-key cryptography, and that it is included for post-quantum resistance. The protocol page says the optional pre-shared key could provide post-quantum resistance, but it names no post-quantum algorithm for the key itself. The key is a random value from genpsk, so its strength depends on how it is generated and kept.
- Generation: Create the key with wg genpsk, which prints a random base64 value.
- Placement: Set it with the PresharedKey entry in the interface configuration, and pass it to wg set as a file path, because the manual says command line arguments are not private on most systems.
- Distribution: The quickstart does not document how keys should move between peers, so the method is the operator's responsibility to define and record.
- Limit on the claim: The protocol page does not say the key alone gives post-quantum secrecy for a given threat, so state only what the vendor documents.
- Key storage: The wg-quick manual suggests keeping keys encrypted, for example with pass(1) through PreUp.
Confirm the generation, storage and distribution method for each tunnel, and record whether the Curve25519 dependency remains in place alongside the pre-shared key.
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. In this setup, a separate key-exchange tool produces a shared secret, and that secret is used as the WireGuard pre-shared key. The Rosenpass site describes a separate open-source key-exchange project that names Classic McEliece and Kyber and is meant to pair with WireGuard through pre-shared keys, but its site does not describe it as part of WireGuard and does not mention ML-KEM. The WireGuard project has published no post-quantum algorithm selection of its own in the checked pages, so the algorithm choice sits with whichever external tool the operator adopts.
- Source of the secret: The post-quantum handshake is a separate tool, not part of WireGuard.
- Vendor statement: The known limitations page recommends the approach but does not name the algorithms.
- Rosenpass details: The site lists v0.2.3 dated 3 August 2026, and names Classic McEliece and Kyber.
- Refresh: The inserted key must be updated as the external tool produces new secrets, and the update process belongs to the operator to define.
- Interoperability: Confirm that both ends run the same external tool and version before expecting the pre-shared key to match.
Confirm the external tool, its version, the algorithms it names, and whether the WireGuard peers accept the inserted key on both sides. Record that the post-quantum component is not part of the WireGuard project.
This project's pages do not address CNSA 2.0. A federal customer or contract may cite it, and the requirement then applies to the work you deliver under that contract. CNSA 2.0 is not binding on a commercial organization. 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. The facts therefore give no basis for stating that a WireGuard deployment meets a CNSA 2.0 requirement.
- Vendor position: No vendor page checked names CNSA 2.0 or FIPS-approved algorithms.
- Algorithm set: The fixed primitives include ChaCha20 with Poly1305, Curve25519, BLAKE2s, SipHash24 and HKDF, none of which this page maps to a named standard.
- Signatures: The protocol uses no signatures or certificates, so no post-quantum signature support applies to the documented design.
- Contract clauses: Ask the customer which document and version the clause cites, and what evidence they accept.
- Evidence: Obtain written confirmation from the vendor or the contracting authority before recording compliance.
If a contract cites CNSA 2.0, ask the customer and the vendor in writing which requirements apply to WireGuard and what evidence will be accepted, and record any gap as open.
What to check next in your WireGuard inventory
This sequence confirms which WireGuard peers rely on the optional pre-shared key, how keys are stored and passed, and whether any certificate or signature material is present. Each step ends with a recorded check, so the inventory shows which public-key dependencies are documented and which still need follow-up with the project.
Confirm PresharedKey entries in every peer config
Work through each tunnel's configuration file, usually under /etc/wireguard/INTERFACE.conf or the distro-specific path your system uses, and record whether each [Peer] section contains a PresharedKey entry. Compare these results with the peer list on the other end of each tunnel, since a pre-shared key must be set on both sides to take effect. The step is complete when every tunnel appears in your inventory with a yes or no for PresharedKey on each side, and any mismatches are flagged for review.
Check key file permissions and argument handling
Confirm that each private key and pre-shared key file is readable only by the account that needs it, which the quickstart's umask 077 example illustrates for newly generated keys. Also check your scripts, service units and shell history for any place where a key value is passed directly on the command line, because the wg(8) manual notes that command line arguments are not considered private on most systems. The step is complete when you have a recorded list of key file paths with their permissions and a list of any command-line exposures found, each with an owner for remediation.
Record peers that use the all-zero default
Identify each peer whose configuration has no PresharedKey entry, since the protocol treats the missing value as an all-zero 32-byte key. Record these peers by tunnel and by name, and note which of them you intend to change and which you are leaving as they are for a documented reason. The step is complete when the inventory lists every peer on the all-zero default, with the tunnel it belongs to, and a note on whether it is planned for change.
Confirm no certificates or signature keys exist
Search the deployment for certificate files, certificate authority material and any signing keys, including files under your configuration directories and any tooling that wraps WireGuard. The WireGuard protocol page and wg(8) manual describe no certificates, certificate authorities or signature algorithms, so anything you find points to a wrapper or an adjacent system that should be recorded separately. The step is complete when you have either an empty search result or a list of any such files, each identified by the system that uses it.
Check the project site for post-quantum notices
Visit the WireGuard home page, protocol page and known limitations page, and read them for any new post-quantum notice, roadmap entry or statement about ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0. As of the checked date of 2026-12-03, those pages did not mention these terms, so record the date of your own check and whatever you find. The step is complete when you have a dated note stating what each page says on this point, along with the URL and date of each page you read.
What the WireGuard project has not published
The checked WireGuard pages cover the primitives, the handshake and the key tools in detail, but they are silent on several points that a post-quantum review needs answered. Each card below names one gap, explains why it matters for deciding which WireGuard functions depend on RSA and elliptic-curve keys, and states what to ask the project or the vendor that distributes your build. Treat each gap as an open question until a dated written answer is on file.
No post-quantum algorithm names on the main pages
The WireGuard home page, protocol page, known limitations page and compilation page, all checked on 2026-12-03, do not mention ML-KEM, ML-DSA, SLH-DSA, FIPS or CNSA 2.0. The absence of these names is the finding: the project has published no statement that it plans to adopt any NIST-standardized post-quantum algorithm. Ask the project whether it has a timeline for any of them, and ask your distributor whether it has made any such commitment for the build you run. Record the answer with the date it was given.
Known limitationsNo built-in post-quantum key exchange
The handshake is fixed as Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s, and its key exchange is Curve25519 ECDH. No setting in the protocol page, the wg(8) manual or the quickstart selects a different key exchange, and no hybrid mode is documented. The key exchange is therefore classical in every documented configuration. Ask the project whether a hybrid or post-quantum key exchange is planned for the protocol itself, and ask whether any future version would change the handshake or only add an option.
Protocol pageNo documented pre-shared key distribution
The known limitations page recommends running a post-quantum handshake on top of WireGuard and inserting the result into the pre-shared key slot, and the wg(8) manual describes the optional pre-shared key as included for post-quantum resistance. Yet the quickstart does not cover wg genpsk, PresharedKey, or how public keys and pre-shared keys should be shared between peers. For example, an administrator could generate a key on one host and copy it to another over an unauthenticated channel, and nothing in the project documentation would flag that risk. Ask the project for a supported distribution method, and check how your vendor delivers those keys.
No externally managed pre-shared key workflow
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 suggests keeping keys encrypted, for example with pass(1) through PreUp, and says PreUp, PostUp, PreDown and PostDown entries run as bash snippets. The project does not document a key lifecycle for pre-shared keys: rotation, storage, backup or revocation. Ask whether the project recommends any rotation interval, and check whether your deployment scripts with SaveConfig could overwrite a stored key on shutdown.
No post-quantum signature support
The protocol uses no certificates, no certificate authorities and no signature algorithms, so authentication rests on the static Curve25519 public keys and the all-zero default used when no pre-shared key is set. Because the design has no signatures, there is no post-quantum signature option to enable, and none is documented as planned. For a reviewer, the practical question is not which signature scheme to pick but whether peer identity is protected by an elliptic-curve key that a future quantum attacker could compute from the public key. Ask the project to confirm that reasoning in writing, and record the answer in your inventory.
Protocol pageNo statement on the Rosenpass pairing
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. Its site is not part of the WireGuard project and does not mention ML-KEM, and its latest release listed is v0.2.3, dated 3 August 2026. The WireGuard project has not published any endorsement, integration guide or support statement for Rosenpass. Ask the project whether it reviews or supports external pairings, and if your deployment uses Rosenpass, ask your vendor who supports the combined setup and what happens when one component changes.
Rosenpass siteWhere a WireGuard inventory can go wrong
The most common error in a WireGuard inventory is assuming a pre-shared key is in use when it is not. The protocol treats an absent pre-shared key as an all-zero 32-byte value, so a tunnel can run with no pre-shared key at all and look configured. Check each peer's PresharedKey entry in /etc/wireguard/INTERFACE.conf and the live state reported by wg show, and record a peer as having a pre-shared key only when one is present. Do not infer the setting from a template or from a neighbouring peer. The known limitations page says WireGuard is not, by default, post-quantum secure, and the pre-shared key is the only documented place where a post-quantum layer could sit, so a tunnel without one has no such layer.
A second group of errors concerns where keys are stored and how they reach the host. The quickstart shows umask 077 before wg genkey > privatekey, and the wg manual says set takes file paths for keys because command-line arguments are not private on most systems. Check file permissions on private keys and pre-shared keys, and check shell history for any key typed on a command line. Also review PreUp, PostUp and the other script hooks in wg-quick, since they run in bash and can read key material. The wg-quick manual suggests encrypting keys, for example through pass(1) in PreUp. A hook that reads a key from a world-readable location exposes the key regardless of how well the tunnel itself is configured.
Two conceptual mistakes can distort the result. First, Rosenpass is a separate open-source key-exchange project that names Classic McEliece and Kyber and is designed to pair with WireGuard through pre-shared keys. It is not part of the WireGuard project, and its site does not mention ML-KEM, so do not record it as a WireGuard feature or as a vendor-stated algorithm choice without confirming the configuration in your own environment. Second, the known limitations page says hashing public keys before sending them could help, but that approach is not part of the Noise Protocol Framework and would not give forward-secure post-quantum secrecy. Record it as an unsupported idea, not as a protection in place.
Common questions about WireGuard and RSA or elliptic-curve keys
Does WireGuard use RSA keys?
No. WireGuard does not use RSA. Its protocol page lists fixed primitives: Curve25519 for the ECDH key exchange, ChaCha20 with Poly1305 for authenticated encryption, BLAKE2s for hashing, SipHash24 for hashtable keys, and HKDF for key derivation. The handshake is named Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s. Peer identity comes from static Curve25519 public keys listed in each configuration, not from certificates. Because no cipher suite list, TLS settings or certificate authorities exist in the design, no configuration option selects RSA. Confirm this against the protocol page for the version you run.
Is WireGuard quantum safe by default?
No. The WireGuard known limitations page says WireGuard is not, by default, post-quantum secure. Its key exchange relies on Curve25519 elliptic-curve Diffie-Hellman, which a future quantum computer could attack. Recorded traffic that is captured today could therefore be exposed later, so an organization should not describe a default WireGuard deployment as post-quantum protected. Any post-quantum protection depends on an additional setting or mechanism that the reader must put in place and verify.
Does the WireGuard pre-shared key make it post-quantum?
Not by itself, and the documentation does not name an algorithm that makes it so. The wg(8) manual describes the optional preshared key as a layer of symmetric-key cryptography on top of public-key cryptography, included for post-quantum resistance. The protocol page says it could provide post-quantum resistance but names no post-quantum algorithm. The known limitations page recommends running a separate post-quantum handshake on top of WireGuard and inserting the resulting key into the pre-shared key slot. Treat the pre-shared key as the place where such a key goes, and ask the vendor to confirm the exact guarantee for your version.
Does moving WireGuard to a post-quantum setup cost extra?
The supplied facts give no cost figures, so no price can be stated. WireGuard is open source, so license cost is not the main driver. The main cost components are the engineering time to inventory peers and configuration files, to choose and deploy an additional post-quantum key exchange, to distribute and rotate keys, and to test interoperability with each peer. Ask for these items in a written scope of work: which peers and configuration files are covered, how keys will be generated and stored, how testing will be done, and what remains recurring after the first change, such as key rotation and upgrades.
What breaks if WireGuard keys are changed?
Changing a key affects every peer that relies on it. The documented key material is the private key, the public key shared with peers, and the optional pre-shared key, all stored as base64 values in configuration files. The wg(8) manual says the private-key and preshared-key options of wg set take file paths. The wg-quick(8) manual reads configuration from /etc/wireguard/INTERFACE.conf and includes PrivateKey, PublicKey and PresharedKey entries, plus PreUp, PostUp, PreDown and PostDown scripts. Changing a public key means each remote peer must receive and apply the new value before the tunnel works again. Since the quickstart does not document how public keys are distributed between peers, the reader must define that process and test it before a change. The SaveConfig option can also overwrite a file on shutdown, so check it before a change.
Can our team inventory WireGuard keys ourselves, or do we need outside help?
Your team can start the inventory itself with the documented tools. Locate the configuration files, usually /etc/wireguard/INTERFACE.conf or distro-specific paths, and record each PrivateKey, PublicKey and PresharedKey entry along with the peers they serve. Confirm which interfaces use a pre-shared key, and check the PreUp and PostUp scripts for any key-handling steps, including any that use pass(1). Note the WireGuard version in use, since the protocol and known limitations pages should be checked against it. Outside help is useful when the peer count is large, when keys are distributed through systems not described in the documentation, or when the team needs a tested change plan and retest. Ask any provider for a written scope that names the files, peers and deliverables covered.
How DeployOpen helps with WireGuard key inventory
DeployOpen approaches WireGuard key inventory as a scoped piece of work: we map which keys and key exchanges your tunnels depend on, then document what you can and cannot change today. The output is a written inventory your security and network teams can check against the project's documentation.
How we scope
- We agree the written scope before work starts, naming the WireGuard hosts, interfaces and peers included.
- The scope lists which key types to inventory, including Curve25519 static keys, pre-shared keys and any wrapper keys.
- Ongoing support and repeat inventories can be added as a retainer, with the scope confirmed in writing.
How we build
- We record each interface's PrivateKey, PublicKey and PresharedKey entries and where each file is stored on disk.
- We check whether pre-shared keys are set, since the protocol treats an unset value as an all-zero 32-byte key.
- We review pre- and post-up scripts in wg-quick configurations to see whether keys are read or handled there.
How we hand over
- You receive a written inventory listing each key, its role, its storage location and its owner.
- The report states that WireGuard uses no certificates or signatures, and that its key exchange rests on Curve25519.
- Open questions, such as how peers distribute public keys, are listed for you to confirm with the vendor.
How we support
- We can retest the inventory after configuration changes, so the record matches the live tunnels.
- Items the project has not documented, such as post-quantum support, are flagged as open rather than assumed.
- Follow-up on the pre-shared key option or upgrade planning can be scoped separately under a written agreement.

