File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -7814,7 +7814,11 @@ determine_trust() {
7814
7814
out "$code"
7815
7815
fi
7816
7816
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
7818
7822
else
7819
7823
# alt least one ok and other(s) not ==> display the culprit store(s)
7820
7824
if "$some_ok"; then
@@ -7834,7 +7838,12 @@ determine_trust() {
7834
7838
if ! [[ ${certificate_file[i]} =~ Java ]]; then
7835
7839
# Exemption for Java AND rating, as this store doesn't seem to be as complete.
7836
7840
# 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
7838
7847
fi
7839
7848
fi
7840
7849
done
You can’t perform that action at this time.
0 commit comments