mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Merge pull request #2798 from secinto/3.2
Modify grading for incomplete chain. suggested corrections will be done after merge
This commit is contained in:
		
							
								
								
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								testssl.sh
									
									
									
									
									
								
							| @@ -7814,7 +7814,11 @@ determine_trust() { | |||||||
|                     out "$code" |                     out "$code" | ||||||
|                fi |                fi | ||||||
|                fileout "${jsonID}${json_postfix}" "CRITICAL" "failed $code. $addtl_warning" |                fileout "${jsonID}${json_postfix}" "CRITICAL" "failed $code. $addtl_warning" | ||||||
|                set_grade_cap "T" "Issues with the chain of trust $code" |                if [[ "$code" =~ "chain incomplete" ]]; then  | ||||||
|  |                   set_grade_cap "B" "Issues with chain of trust $code" | ||||||
|  |                else | ||||||
|  |                   set_grade_cap "T" "Issues with chain of trust $code" | ||||||
|  |                fi | ||||||
|           else |           else | ||||||
|                # alt least one ok and other(s) not ==> display the culprit store(s) |                # alt least one ok and other(s) not ==> display the culprit store(s) | ||||||
|                if "$some_ok"; then |                if "$some_ok"; then | ||||||
| @@ -7834,9 +7838,14 @@ determine_trust() { | |||||||
|                               if ! [[ ${certificate_file[i]} =~ Java ]]; then |                               if ! [[ ${certificate_file[i]} =~ Java ]]; then | ||||||
|                                    # Exemption for Java AND rating, as this store doesn't seem to be as complete. |                                    # Exemption for Java AND rating, as this store doesn't seem to be as complete. | ||||||
|                                    # We won't penalize this but we still need to raise a red flag. See #1648 |                                    # We won't penalize this but we still need to raise a red flag. See #1648 | ||||||
|  |                                    # set_grade_cap "T" "Issues with chain of trust $code" | ||||||
|  |                                    if [[ "$code" =~ "chain incomplete" ]]; then  | ||||||
|  |                                       set_grade_cap "B" "Issues with chain of trust $code" | ||||||
|  |                                    else | ||||||
|                                       set_grade_cap "T" "Issues with chain of trust $code" |                                       set_grade_cap "T" "Issues with chain of trust $code" | ||||||
|                                    fi  |                                    fi  | ||||||
|                               fi |                               fi | ||||||
|  |                          fi | ||||||
|                     done |                     done | ||||||
|                     outln |                     outln | ||||||
|                     # lf + green ones |                     # lf + green ones | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter