mailcow.yml aktualisiert
This commit is contained in:
parent
1816b87083
commit
c2d7caec4d
@ -442,6 +442,7 @@
|
|||||||
[ "${certname}" != "${host}.pem" ] && continue
|
[ "${certname}" != "${host}.pem" ] && continue
|
||||||
tlsa=$(openssl x509 -in "${cert}" -noout -pubkey 2>/dev/null | openssl rsa -pubin -outform DER 2>/dev/null | openssl dgst -sha256 -hex 2>/dev/null | cut -d" " -f2)
|
tlsa=$(openssl x509 -in "${cert}" -noout -pubkey 2>/dev/null | openssl rsa -pubin -outform DER 2>/dev/null | openssl dgst -sha256 -hex 2>/dev/null | cut -d" " -f2)
|
||||||
dnstlsa=$(host -t TLSA *._tcp.${host} | cut -d" " -f 8,9 | tr '[:upper:]' '[:lower:]' | sed 's/ //g')
|
dnstlsa=$(host -t TLSA *._tcp.${host} | cut -d" " -f 8,9 | tr '[:upper:]' '[:lower:]' | sed 's/ //g')
|
||||||
|
echo ${dnstlsa} | egrep -q "^bereached$" && continue
|
||||||
[ "${tlsa}" != "${dnstlsa}" ] && g_echo_error "DNS TLSA incorrect! *._tcp.${host} should be ${tlsa} but is ${dnstlsa} (host -t TLSA *._tcp.${host})"
|
[ "${tlsa}" != "${dnstlsa}" ] && g_echo_error "DNS TLSA incorrect! *._tcp.${host} should be ${tlsa} but is ${dnstlsa} (host -t TLSA *._tcp.${host})"
|
||||||
done
|
done
|
||||||
rm *.pem
|
rm *.pem
|
||||||
|
Loading…
Reference in New Issue
Block a user