add script to generate vpn keys
This commit is contained in:
parent
771a67df7d
commit
3804edfa0a
3 changed files with 8 additions and 1 deletions
|
@ -19,7 +19,7 @@ import yaml
|
||||||
|
|
||||||
import qrcode
|
import qrcode
|
||||||
|
|
||||||
VAR_FILE = "group_vars/all/totp.yml"
|
VAR_FILE = "../group_vars/all/totp.yml"
|
||||||
|
|
||||||
with open(VAR_FILE) as f:
|
with open(VAR_FILE) as f:
|
||||||
VARS = yaml.safe_load(f)
|
VARS = yaml.safe_load(f)
|
7
utils/gen_vpn_keys.sh
Executable file
7
utils/gen_vpn_keys.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/sh
|
||||||
|
|
||||||
|
PRIVKEY=`wg genkey`
|
||||||
|
PUBKEY=`echo $PRIVKEY | wg pubkey`
|
||||||
|
|
||||||
|
echo "private key $PRIVKEY"
|
||||||
|
echo "public key $PUBKEY"
|
Loading…
Reference in a new issue