'sslchecker' ändern
This commit is contained in:
parent
00cda0be1a
commit
c97be46f36
1 changed files with 9 additions and 6 deletions
15
sslchecker
15
sslchecker
|
|
@ -66,26 +66,29 @@ ValidDate()
|
||||||
{
|
{
|
||||||
grep "Not" | sed 's/^[^:]*: //g'
|
grep "Not" | sed 's/^[^:]*: //g'
|
||||||
}
|
}
|
||||||
|
Records()
|
||||||
|
{
|
||||||
|
dig A $host +short
|
||||||
|
dig AAAA $host +short
|
||||||
|
}
|
||||||
if [[ "$source" == "local" ]]; then
|
if [[ "$source" == "local" ]]; then
|
||||||
if [ -z "$file" ]; then
|
if [ -z "$file" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo -e '\e[90m\e[1m\e[104mCert is valid for:\e[0m'
|
LocalCheck
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$source" == "remote" ]; then
|
if [ "$source" == "remote" ]; then
|
||||||
if [ -z "$port" ]; then
|
if [ -z "$port" ]; then
|
||||||
port="443"
|
port="443"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e '\e[90m\e[1m\e[104mCert is valid for:\e[0m'
|
echo -e '\e[90m\e[1m\e[104mCert is valid for:\e[0m'
|
||||||
RemoteCheck | AltName
|
RemoteCheck | AltName
|
||||||
echo -e '\e[90m\e[1m\e[101mValidated by:\e[0m'
|
echo -e '\e[90m\e[1m\e[101mValidated by:\e[0m'
|
||||||
RemoteCheck | Validation
|
RemoteCheck | Validation
|
||||||
echo -e '\e[90m\e[1m\e[43mValidated from to:\e[0m'
|
echo -e '\e[90m\e[1m\e[43mValidated from to:\e[0m'
|
||||||
RemoteCheck | ValidDate
|
RemoteCheck | ValidDate
|
||||||
|
echo -e '\e[90m\e[1m\e[102mA and AAAA Records:\e[0m'
|
||||||
|
Records
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue