summaryrefslogtreecommitdiffstats
path: root/misc/wg-genkeys
blob: f964fc05eb13155fba9a16d9c4c250413cadb625 (plain)
1
2
3
4
5
#!/bin/sh
priv=$(wg genkey)
printf "PrivateKey:   %s\n" "$priv"
printf "PublicKey:    %s\n" "$(wg pubkey <<< "$priv")"
printf "PresharedKey: %s\n" "$(wg genpsk)"