Skip to content

Instantly share code, notes, and snippets.

@pd12bbf7608ae1
Created October 16, 2020 15:19
Show Gist options
  • Save pd12bbf7608ae1/2a4aea703dfd8a428919ff610601a502 to your computer and use it in GitHub Desktop.
Save pd12bbf7608ae1/2a4aea703dfd8a428919ff610601a502 to your computer and use it in GitHub Desktop.
Generate wireguard key pair
#!/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