Skip to content

Instantly share code, notes, and snippets.

@HuanMeng0
Created July 25, 2019 12:28
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 HuanMeng0/66a1a263c4d4430e84a62310c5185449 to your computer and use it in GitHub Desktop.
Save HuanMeng0/66a1a263c4d4430e84a62310c5185449 to your computer and use it in GitHub Desktop.
wgkey.sh
#!/bin/bash
privatekey=`wg genkey`
echo "Private Key:" ${privatekey}
publickey=`echo ${privatekey} | wg pubkey `
echo "Public Key:" ${publickey}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment