Skip to content

Instantly share code, notes, and snippets.

View TheGithubJoshua's full-sized avatar

Joshua Wheeler TheGithubJoshua

View GitHub Profile
@izzyleung
izzyleung / README.md
Last active December 25, 2024 06:53
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' \