summaryrefslogtreecommitdiffstats
path: root/.local/bin/wgkey
diff options
context:
space:
mode:
authorPavel Egorov <[email protected]>2026-01-08 22:20:28 +0300
committerPavel Egorov <[email protected]>2026-01-08 22:20:28 +0300
commitcf61cfc560adbc195e534bff84b55b1828f8fe2f (patch)
tree2261999683c78db4840a9768e055e025bc167467 /.local/bin/wgkey
parent250d645f2b452e72df54d8ec0a502c7b59af3a03 (diff)
downloaddotfiles-cf61cfc560adbc195e534bff84b55b1828f8fe2f.tar.gz
dotfiles-cf61cfc560adbc195e534bff84b55b1828f8fe2f.zip
[script] Add wg keygen helper script
Diffstat (limited to '')
-rwxr-xr-x.local/bin/wgkey12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/wgkey b/.local/bin/wgkey
new file mode 100755
index 0000000..5aa710f
--- /dev/null
+++ b/.local/bin/wgkey
@@ -0,0 +1,12 @@
1#!/usr/bin/env fish
2
3umask 077
4
5set keyname "$argv[1]"
6
7if test -z "$keyname"
8 echo "No keyname given"
9 exit 1
10end
11
12wg genkey | tee "$keyname" | wg pubkey > "$keyname.pub"