add script to generate vpn keys

This commit is contained in:
Jean-Marie Mineau 2021-04-23 15:12:12 +02:00
parent 771a67df7d
commit 3804edfa0a
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 8 additions and 1 deletions

View file

@ -19,7 +19,7 @@ import yaml
import qrcode
VAR_FILE = "group_vars/all/totp.yml"
VAR_FILE = "../group_vars/all/totp.yml"
with open(VAR_FILE) as f:
VARS = yaml.safe_load(f)

7
utils/gen_vpn_keys.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/sh
PRIVKEY=`wg genkey`
PUBKEY=`echo $PRIVKEY | wg pubkey`
echo "private key $PRIVKEY"
echo "public key $PUBKEY"