aboutsummaryrefslogtreecommitdiffstats
path: root/config/shione/wireguard/generate_keys.sh
blob: 4c564a4fd349a1ac4b417b5e9492081029841655 (plain) (blame)
1
2
3
4
5
6
7
8
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 -- -