Skip to content

Commit 71f0f32

Browse files
authored
Merge pull request #2798 from secinto/3.2
Modify grading for incomplete chain. suggested corrections will be done after merge
2 parents a209f92 + 529a373 commit 71f0f32

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

testssl.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7814,7 +7814,11 @@ determine_trust() {
78147814
out "$code"
78157815
fi
78167816
fileout "${jsonID}${json_postfix}" "CRITICAL" "failed $code. $addtl_warning"
7817-
set_grade_cap "T" "Issues with the chain of trust $code"
7817+
if [[ "$code" =~ "chain incomplete" ]]; then
7818+
set_grade_cap "B" "Issues with chain of trust $code"
7819+
else
7820+
set_grade_cap "T" "Issues with chain of trust $code"
7821+
fi
78187822
else
78197823
# alt least one ok and other(s) not ==> display the culprit store(s)
78207824
if "$some_ok"; then
@@ -7834,7 +7838,12 @@ determine_trust() {
78347838
if ! [[ ${certificate_file[i]} =~ Java ]]; then
78357839
# Exemption for Java AND rating, as this store doesn't seem to be as complete.
78367840
# We won't penalize this but we still need to raise a red flag. See #1648
7837-
set_grade_cap "T" "Issues with chain of trust $code"
7841+
# set_grade_cap "T" "Issues with chain of trust $code"
7842+
if [[ "$code" =~ "chain incomplete" ]]; then
7843+
set_grade_cap "B" "Issues with chain of trust $code"
7844+
else
7845+
set_grade_cap "T" "Issues with chain of trust $code"
7846+
fi
78387847
fi
78397848
fi
78407849
done

0 commit comments

Comments
 (0)