wg genkey | tee privatekey | wg pubkey > publickey
Category: Self-Hosting
wg genkey | tee privatekey | wg pubkey > publickey
Generate a WireGuard private/public key pair — do this for each peer in the VPN
Generates a WireGuard key pair. The private key stays on this device; you share the public key with other peers. Never share private keys.