We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a47bc20 + 6e6b873 commit 55785afCopy full SHA for 55785af
1 file changed
testssl.sh
@@ -8947,7 +8947,7 @@ certificate_info() {
8947
out "$indent"; pr_bold " Certificate Revocation List "
8948
jsonID="cert_crlDistributionPoints"
8949
# ~ get next 50 lines after pattern , strip until Signature Algorithm and retrieve URIs
8950
- crl="$(awk '/X509v3 CRL Distribution/{i=50} i&&i--' <<< "$cert_txt" | awk '/^$/,/^ [a-zA-Z0-9]+|^ Signature Algorithm:/' | awk -F'URI:' '/URI/ { print $2 }')"
+ crl="$(awk '/X509v3 CRL Distribution/{i=50} i&&i--' <<< "$cert_txt" | awk '/^$|^.*Name.*$|^.*Reasons.*$|^.*CRL Issuer.*$/,/^ [a-zA-Z0-9]+|^ Signature Algorithm:/' | awk -F'URI:' '/URI/ { print $2 }')"
8951
if [[ -z "$crl" ]] ; then
8952
fileout "${jsonID}${json_postfix}" "INFO" "--"
8953
outln "--"
0 commit comments