mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Added check for certificate validity longer than 398 days
This commit is contained in:
parent
e3b62341ba
commit
47e9814baa
@ -9150,7 +9150,7 @@ certificate_info() {
|
|||||||
outln ">= 825 days certificate life time but issued before 2018/03/01"
|
outln ">= 825 days certificate life time but issued before 2018/03/01"
|
||||||
fileout "cert_validityPeriod${json_postfix}" "INFO" "$((diffseconds / (3600 * 24) )) =< 825 days"
|
fileout "cert_validityPeriod${json_postfix}" "INFO" "$((diffseconds / (3600 * 24) )) =< 825 days"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# All is fine with valididy period
|
# All is fine with valididy period
|
||||||
# We ignore for now certificates < 2018/03/01. On the screen we only show debug info
|
# We ignore for now certificates < 2018/03/01. On the screen we only show debug info
|
||||||
[[ "$DEBUG" -ge 1 ]] && outln "${spaces}DEBUG: all is fine with total certificate life time"
|
[[ "$DEBUG" -ge 1 ]] && outln "${spaces}DEBUG: all is fine with total certificate life time"
|
||||||
|
Loading…
Reference in New Issue
Block a user