GHP publish

This commit is contained in:
ace
2021-01-09 21:06:20 +03:00
commit 380dbf855f
68 changed files with 10903 additions and 0 deletions

9
tsig/tsig-key.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/bash
NAME=$(dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST $1 2>/dev/null)
ENC_NAME=$(echo $NAME|base64 -w 0)
KEY=$(cat $NAME.key |base64 -w 0)
PRIVATE=$(cat $NAME.private |base64 -w 0)
echo "tsig:
- name: $ENC_NAME
key: $KEY
private: $PRIVATE"