Key generation

As root:

apt install wireguard-tools
cd /etc/wireguard
wg genkey > privatekey
chmod 600 privatekey
wg pubkey < privatekey > publickey