mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Merge pull request #1043 from dcooper16/expired_certs
Don't check expired certificates
This commit is contained in:
commit
6d919de0ad
12
testssl.sh
12
testssl.sh
@ -7445,8 +7445,10 @@ certificate_info() {
|
|||||||
else
|
else
|
||||||
if [[ $(count_lines "$crl") -eq 1 ]]; then
|
if [[ $(count_lines "$crl") -eq 1 ]]; then
|
||||||
out "$crl"
|
out "$crl"
|
||||||
check_revocation_crl "$crl" "cert_CRLrevoked_${json_postfix}"
|
if [[ "$expfinding" != "expired" ]]; then
|
||||||
ret=$((ret +$?))
|
check_revocation_crl "$crl" "cert_CRLrevoked_${json_postfix}"
|
||||||
|
ret=$((ret +$?))
|
||||||
|
fi
|
||||||
outln
|
outln
|
||||||
else # more than one CRL
|
else # more than one CRL
|
||||||
first_crl=true
|
first_crl=true
|
||||||
@ -7457,8 +7459,10 @@ certificate_info() {
|
|||||||
out "$spaces"
|
out "$spaces"
|
||||||
fi
|
fi
|
||||||
out "$line"
|
out "$line"
|
||||||
check_revocation_crl "$line" "cert_CRLrevoked_${json_postfix}"
|
if [[ "$expfinding" != "expired" ]]; then
|
||||||
ret=$((ret +$?))
|
check_revocation_crl "$line" "cert_CRLrevoked_${json_postfix}"
|
||||||
|
ret=$((ret +$?))
|
||||||
|
fi
|
||||||
outln
|
outln
|
||||||
done <<< "$crl"
|
done <<< "$crl"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user