mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
remove string GMT from certificate start+end time
This commit is contained in:
parent
01f7612bd0
commit
02b5497864
@ -6981,6 +6981,9 @@ certificate_info() {
|
||||
days2expire=$(( $(parse_date "$enddate" "+%s" $'%b %d %T %Y %Z') - $(LC_ALL=C date "+%s") )) # first in seconds
|
||||
days2expire=$((days2expire / 3600 / 24 ))
|
||||
|
||||
enddate="$(strip_trailing_space "${enddate//GMT/}")"
|
||||
startdate="$(strip_trailing_space "${startdate//GMT/}")"
|
||||
|
||||
# we adjust the thresholds by %50 for LE certificates, relaxing those warnings
|
||||
if grep -q "^Let's Encrypt Authority" <<< "$issuer_CN"; then
|
||||
days2warn2=$((days2warn2 / 2))
|
||||
|
Loading…
Reference in New Issue
Block a user