'sslchecker' ändern

This commit is contained in:
Kaisa Marysia 2020-05-07 00:22:44 +02:00
parent 00cda0be1a
commit c97be46f36

View file

@ -66,26 +66,29 @@ ValidDate()
{
grep "Not" | sed 's/^[^:]*: //g'
}
Records()
{
dig A $host +short
dig AAAA $host +short
}
if [[ "$source" == "local" ]]; then
if [ -z "$file" ]; then
exit 1
fi
echo -e '\e[90m\e[1m\e[104mCert is valid for:\e[0m'
LocalCheck | AltName
echo -e '\e[90m\e[1m\e[101mValidated by:\e[0m'
LocalCheck | Validation
echo -e '\e[90m\e[1m\e[43mValidated from to:\e[0m'
LocalCheck | ValidDate
LocalCheck
fi
if [ "$source" == "remote" ]; then
if [ -z "$port" ]; then
port="443"
fi
echo -e '\e[90m\e[1m\e[104mCert is valid for:\e[0m'
RemoteCheck | AltName
echo -e '\e[90m\e[1m\e[101mValidated by:\e[0m'
RemoteCheck | Validation
echo -e '\e[90m\e[1m\e[43mValidated from to:\e[0m'
RemoteCheck | ValidDate
echo -e '\e[90m\e[1m\e[102mA and AAAA Records:\e[0m'
Records
fi