summaryrefslogtreecommitdiffstats
path: root/wg-genkey
diff options
context:
space:
mode:
Diffstat (limited to 'wg-genkey')
-rwxr-xr-xwg-genkey6
1 files changed, 6 insertions, 0 deletions
diff --git a/wg-genkey b/wg-genkey
new file mode 100755
index 0000000..d7410e4
--- /dev/null
+++ b/wg-genkey
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+key=$(wg genkey)
+echo "private: $key"
+printf "public: "
+wg pubkey <<<"$key"