Skip to content

Instantly share code, notes, and snippets.

View TheGithubJoshua's full-sized avatar

Joshua Wheeler TheGithubJoshua

  • Northern Ireland, United Kingdom
  • 07:14 (UTC)
View GitHub Profile
@izzyleung
izzyleung / README.md
Last active December 8, 2025 08:26
Update your WireGuard public key in Mullvad via its public API

Generate a new pair of keys via wg

$ wg genkey | tee privatekey | wg pubkey > publickey

Rotate your public key via the same logic as in Mullvad's source code:

  • Step 1: Obtaining an access token:
$ curl -fsSL -X POST \
    -H 'Content-Type: application/json' \