Skip to content

Instantly share code, notes, and snippets.

@gpprojekt-marcin
Created March 9, 2021 08:57
Show Gist options
  • Save gpprojekt-marcin/fcd56dace2b1f659d35e31f344bd4a17 to your computer and use it in GitHub Desktop.
Save gpprojekt-marcin/fcd56dace2b1f659d35e31f344bd4a17 to your computer and use it in GitHub Desktop.
Generate WireGuard keys
#! /usr/bin/env bash
umask go=
wg genkey | tee wg_${1}.key | wg pubkey > wg_${1}.pub
wg genpsk > wg_${1}.psk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment