'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'
|
||||
}
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue