diff options
Diffstat (limited to 'config/shione/wireguard/generate_keys.sh')
-rwxr-xr-x | config/shione/wireguard/generate_keys.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/shione/wireguard/generate_keys.sh b/config/shione/wireguard/generate_keys.sh new file mode 100755 index 0000000..4c564a4 --- /dev/null +++ b/config/shione/wireguard/generate_keys.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eux + +cd -- files/etc/wireguard +(umask 077; wg genkey | tee shione.private.key | wg pubkey > shione.public.key) +# TODO: chmod 0600 all files under files/etc/wireguard. +# TODO: Update files/etc/wireguard/wg0.conf accordingly. +cd -- - |