Skip to content

Instantly share code, notes, and snippets.

@ToroNZ
ToroNZ / README.md
Created October 24, 2023 19:33 — forked from izzyleung/README.md
Mullvad WireGuard Public Key API (Upload and Revoke)

Generate a new pair of keys via wg

wg genkey | tee privatekey | wg pubkey > publickey

Upload the newly generate key to Mullvad

curl https://api.mullvad.net/wg/ -d account=YOUR_ACCOUNT_NUMBER --data-urlencode pubkey="$(cat publickey)"