summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2022-06-13 19:26:34 +0200
committerAlan Pearce2022-06-13 19:27:10 +0200
commit9c9fbbcce522f713a6444d77c708ddb12d577f5f (patch)
tree574efd766798c08f4b57a92d4f4ae606ae204ba6
parenta42f481fa3e97a70c8fb5bbd33324003364a4a82 (diff)
downloadnixfiles-9c9fbbcce522f713a6444d77c708ddb12d577f5f.tar.lz
nixfiles-9c9fbbcce522f713a6444d77c708ddb12d577f5f.tar.zst
nixfiles-9c9fbbcce522f713a6444d77c708ddb12d577f5f.zip
Remove sekey script
I use Secretive now, which has a GUI for generating new keys
-rwxr-xr-xgenerate-sekey.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/generate-sekey.sh b/generate-sekey.sh
deleted file mode 100755
index 760eaa41..00000000
--- a/generate-sekey.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/zsh
-# macOS-only; can assume zsh
-
-set -euo pipefail
-
-host=$1
-pubfile="${HOME}/.ssh/sekey/${host}.pub"
-
-function getKeyForHost () {
-	host=$1
-	sekey --list-keys | awk "\$2 == \"$host\" {print \$4}"
-}
-
-if [[ -z $(getKeyForHost $host) ]]
-then
-	sekey --generate-keypair $host | { ! grep --invert-match "successfully generated" }
-fi
-
-if [[ -f $pubfile ]]
-then
-	echo "Public key ${pubfile} already exists!"
-	echo "You should probably remove it, as there isn't a matching keypair in the Enclave"
-	exit 1
-fi
-
-keyid=$(getKeyForHost $host)
-
-sekey --export-key $keyid | tee "$pubfile"