summaryrefslogtreecommitdiff
path: root/hosts/surtr/tls/tsig_key.gup
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-22 15:48:59 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-22 15:48:59 +0100
commita7255ba16633d70c22e8bed75ae52c49f08e1c18 (patch)
tree71f1cdc442efef13fe239e8694b4fe9bcc58b923 /hosts/surtr/tls/tsig_key.gup
parentef600c518e5fdb4962fdd4d4851413a024fa52f7 (diff)
downloadnixos-a7255ba16633d70c22e8bed75ae52c49f08e1c18.tar
nixos-a7255ba16633d70c22e8bed75ae52c49f08e1c18.tar.gz
nixos-a7255ba16633d70c22e8bed75ae52c49f08e1c18.tar.bz2
nixos-a7255ba16633d70c22e8bed75ae52c49f08e1c18.tar.xz
nixos-a7255ba16633d70c22e8bed75ae52c49f08e1c18.zip
surtr: dns/tls: rfc2136
Diffstat (limited to 'hosts/surtr/tls/tsig_key.gup')
-rw-r--r--hosts/surtr/tls/tsig_key.gup6
1 files changed, 6 insertions, 0 deletions
diff --git a/hosts/surtr/tls/tsig_key.gup b/hosts/surtr/tls/tsig_key.gup
new file mode 100644
index 00000000..3d81b603
--- /dev/null
+++ b/hosts/surtr/tls/tsig_key.gup
@@ -0,0 +1,6 @@
1#!/usr/bin/env zsh
2
3keyFile=../dns/keys/${2:t}_acme.yaml
4gup -u $keyFile
5sops -d --input-type=binary --output-type=binary ${keyFile} | yq -r '.key[0].secret' > $1
6sops -p '7ED22F4AA7BB55728B643DC5471B7D88E4EF66F8,30D3453B8CD02FE2A3E7C78C0FB536FB87AE8F51' --input-type=binary -e -i $1 \ No newline at end of file