mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 22:05:26 +01:00 
			
		
		
		
	Change exception for removed root certificates into easy edit multi-value regular expression for Organization name and making it clear that CA's are actively removed from 1+ root stores.
This commit is contained in:
		| @@ -9416,10 +9416,11 @@ certificate_info() { | |||||||
| 
 | 
 | ||||||
|      out "$indent"; pr_bold " Chain of trust"; out "               " |      out "$indent"; pr_bold " Chain of trust"; out "               " | ||||||
|      jsonID="cert_chain_of_trust" |      jsonID="cert_chain_of_trust" | ||||||
|      if [[ "$issuer_O" =~ StartCom ]] || [[ "$issuer_O" =~ WoSign ]] || [[ "$issuer_CN" =~ StartCom ]] || [[ "$issuer_CN" =~ WoSign ]]; then |      # Looks for CA's that have their trust removed by the first part of their Organization Name as they can only used verified names | ||||||
|           # Shortcut for this special case here. |      if [[ "$issuer_O" =~ ^(TrustCor Systems|WoSign|StartCom) ]]; then | ||||||
|           pr_italic "WoSign/StartCom"; out " are " ; prln_svrty_critical "not trusted anymore (NOT ok)" |           # Shortcut for this special case here. There is a difference between not being in a root store and being removed from a root store. | ||||||
|           fileout "${jsonID}${json_postfix}" "CRITICAL" "Issuer not trusted anymore (WoSign/StartCom)" |           pr_italic "$issuer_O"; out " is " ; prln_svrty_critical "actively removed from one or more root stores (NOT ok)" | ||||||
|  |           fileout "${jsonID}${json_postfix}" "CRITICAL" "Issuer removed from one or more root stores ($issuer_O)" | ||||||
|           set_grade_cap "T" "Untrusted certificate chain" |           set_grade_cap "T" "Untrusted certificate chain" | ||||||
|      else |      else | ||||||
|           # Also handles fileout, keep error if happened |           # Also handles fileout, keep error if happened | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sole
					Sole