Created
October 16, 2020 15:19
-
-
Save pd12bbf7608ae1/2a4aea703dfd8a428919ff610601a502 to your computer and use it in GitHub Desktop.
Generate wireguard key pair
This file contains hidden or 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 | |
PrivateKey=$(wg genkey) | |
PublicKey=$(echo "$PrivateKey" | wg pubkey) | |
echo "PublicKey=${PublicKey} # PrivateKey=${PrivateKey}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment