Skip to content

Instantly share code, notes, and snippets.

View TheGithubJoshua's full-sized avatar

Joshua Wheeler TheGithubJoshua

  • Northern Ireland, United Kingdom
  • 10:04 (UTC)
View GitHub Profile
@izzyleung
izzyleung / README.md
Last active February 18, 2026 14:52
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' \