Skip to content

Instantly share code, notes, and snippets.

@ewpratten
Last active November 20, 2021 23:35
Show Gist options
  • 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