From 5e7f1b75f608c95e702a1f4553f6c68898f59f8b Mon Sep 17 00:00:00 2001 From: David Cooper Date: Fri, 25 May 2018 10:51:22 -0400 Subject: [PATCH] Check for HTTP errors Added back in check for HTTP error codes. --- testssl.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/testssl.sh b/testssl.sh index a72695f..3e7ca69 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1541,6 +1541,7 @@ check_revocation_ocsp() { [[ -s "$tmpfile" ]] || response="empty ocsp response" [[ -z "$response" ]] && response="$(awk '/Responder Error:/ { print $3 }' "$tmpfile")" [[ -z "$response" ]] && grep -Fq "Response Verify Failure" "$tmpfile" && response="unable to verify response" + [[ -z "$response" ]] && response="$(awk -F':' '/Code/ { print $NF }' $tmpfile)" out ", " pr_warning "error querying OCSP responder" fileout "$jsonID" "WARN" "$response"