Skip to content

Commit 2b6b2c4

Browse files
committed
Add cert/CRL capabilities: skid, akid, dist point, netscape
1 parent 9239adc commit 2b6b2c4

9 files changed

Lines changed: 668 additions & 135 deletions

File tree

scripts/crl-gen-openssl.test

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,8 @@ check_crl() {
9595
-CRLfile "$crl" \
9696
"$revoked_cert" 2>&1) || verify_rc=$?
9797
verify_rc=${verify_rc:-0}
98-
# Normalize to avoid case/CR differences and accept common OpenSSL error
99-
# formats (some builds report only an error code).
100-
verify_out_norm=$(printf '%s' "$verify_out" | tr '[:upper:]' '[:lower:]' | \
101-
tr -d '\r')
102-
if ! echo "$verify_out_norm" | grep -q "revoked" && \
103-
! echo "$verify_out_norm" | grep -q "error 23"; then
98+
# Avoid pipefail/SIGPIPE false negatives with `grep -q` in a pipeline.
99+
if ! grep -qi "revoked" <<< "$verify_out"; then
104100
echo "expected revoked verification failure for $label CRL"
105101
echo "$verify_out"
106102
return 1

0 commit comments

Comments
 (0)