main: Added tlsa and a few bug fixes
All checks were successful
Build Docker / Build Master (push) Successful in 26s
Build Docker / Build Bot (push) Successful in 25s

This commit is contained in:
2023-08-17 13:27:57 +10:00
parent 1f316e3a94
commit d6db4adf50
6 changed files with 65 additions and 7 deletions

11
worker/tlsa.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
domain=$1
# Check if args passed
if [ -z "$1" ]
then
echo "No domain name supplied"
exit 1
fi
echo -n "3 1 1 " && openssl x509 -in /etc/ssl/$domain.crt -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | xxd -p -u -c 32