Last active
November 20, 2021 23:35
-
-
Save ewpratten/1d049970141dc3018b21d5a3cbe9a124 to your computer and use it in GitHub Desktop.
Generate and print a wireguard keypair
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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