summaryrefslogtreecommitdiff
path: root/hosts/surtr/tls/tsig_key.gup
blob: 3d81b603590f2f87f69d3047274132f28438eff0 (plain)
1
2
3
4
5
6
#!/usr/bin/env zsh

keyFile=../dns/keys/${2:t}_acme.yaml
gup -u $keyFile
sops -d --input-type=binary --output-type=binary ${keyFile} | yq -r '.key[0].secret' > $1
sops -p '7ED22F4AA7BB55728B643DC5471B7D88E4EF66F8,30D3453B8CD02FE2A3E7C78C0FB536FB87AE8F51' --input-type=binary -e -i $1