Check for HTTP errors
Added back in check for HTTP error codes.
This commit is contained in:
parent
feb48c0295
commit
5e7f1b75f6
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue