summaryrefslogtreecommitdiffstats
path: root/wg-genkey
blob: d7410e47e60547fef34fbe47173364ab36e5a82d (plain)
1
2
3
4
5
6
#!/bin/bash

key=$(wg genkey)
echo "private: $key"
printf "public: "
wg pubkey <<<"$key"