Adding verbosity for debugging & flipping output order for check-domain
This commit is contained in:
@@ -2,12 +2,17 @@
|
||||
|
||||
source /opt/aninix/Uniglot/Bash/dns.bash
|
||||
|
||||
if [ "$1" == '-v' ]; then
|
||||
set -x
|
||||
shift
|
||||
fi
|
||||
|
||||
domain="$1"
|
||||
|
||||
function checkTLSA() {
|
||||
### Usage: $0 "${domain}" tlsa _443._tcp
|
||||
identity="$1"
|
||||
git diff --no-index <(GenerateTLSA-211 "${identity}" | sed 's/\s\+//g' | tr '[[:upper:]]' '[[:lower:]]' | sort) <(dig _443._tcp."${domain}" TLSA +short | sed 's/\s\+//g' | tr '[[:upper:]]' '[[:lower:]]' | sort)
|
||||
git diff --no-index <(dig _443._tcp."${domain}" TLSA +short | sed 's/\s\+//g' | tr '[[:upper:]]' '[[:lower:]]' | sort) <(GenerateTLSA-211 "${identity}" | sed 's/\s\+//g' | tr '[[:upper:]]' '[[:lower:]]' | sort)
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user