File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10002,7 +10002,7 @@ certificate_info() {
1000210002
1000310003 out "$indent"; pr_bold " OCSP stapling "
1000410004 jsonID="OCSP_stapling"
10005- if grep -a "OCSP response" <<< "$ocsp_response" | grep -q "no response sent" ; then
10005+ if grep -a "OCSP response" <<< "$ocsp_response" | grep -Eq "no response[s]? sent" ; then
1000610006 if [[ -n "$ocsp_uri" ]]; then
1000710007 pr_svrty_low "not offered"
1000810008 fileout "${jsonID}${json_postfix}" "LOW" "not offered"
@@ -10418,10 +10418,10 @@ run_server_defaults() {
1041810418 # response so that certificate_info() can determine
1041910419 # whether it includes a certificate transparency extension.
1042010420 ocsp_response_binary[certs_found]="$STAPLED_OCSP_RESPONSE"
10421- if grep -a "OCSP response:" $TMPFILE | grep -q "no response sent"; then
10421+ if grep -aE "OCSP response[s]? :" $TMPFILE | grep -Eq "no response[s]? sent"; then
1042210422 ocsp_response[certs_found]="$(grep -a "OCSP response" $TMPFILE)"
1042310423 else
10424- ocsp_response[certs_found]="$(awk -v n=2 '/OCSP response:/ {start=1; inc=2} /======================================/ { if (start) {inc--} } inc' $TMPFILE)"
10424+ ocsp_response[certs_found]="$(awk -v n=2 '/OCSP response[s]? :/ {start=1; inc=2} /======================================/ { if (start) {inc--} } inc' $TMPFILE)"
1042510425 fi
1042610426 ocsp_response_status[certs_found]=$(grep -a "OCSP Response Status" $TMPFILE)
1042710427 previous_hostcert[certs_found]=$newhostcert
You can’t perform that action at this time.
0 commit comments