Skip to content

Instantly share code, notes, and snippets.

@ewpratten
Last active November 20, 2021 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewpratten/1d049970141dc3018b21d5a3cbe9a124 to your computer and use it in GitHub Desktop.
Save ewpratten/1d049970141dc3018b21d5a3cbe9a124 to your computer and use it in GitHub Desktop.
Generate and print a wireguard keypair
#! /bin/bash
set -e
KEY=$(wg genkey); echo "priv: $KEY"; echo "pub: $(echo $KEY | wg pubkey)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment