Skip to content

Commit 0ac95be

Browse files
authored
Merge pull request #2018 from drwetter/cab_is4browsers_3.0
Add browser requirement for the entropy of cert serial (3.0)
2 parents 3e68dbd + a580c20 commit 0ac95be

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

testssl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8429,8 +8429,9 @@ certificate_info() {
84298429
outln
84308430
prln_svrty_low "${spaces}NOT ok: length must not exceed 20 bytes (is: $len_cert_serial bytes)"
84318431
fileout "cert_serialNumberLen${json_postfix}" "LOW" "$len_cert_serial is too long"
8432-
elif [[ $len_cert_serial -lt 8 ]]; then
8433-
# Wording is from https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.8.0.pdf
8432+
elif [[ $len_cert_serial -lt 8 ]] && [[ $SERVICE == HTTP ]]; then
8433+
# We only want this check for browsers as this requirement comes from the CA browser forum,
8434+
# see e.g. https://cabforum.org/wp-content/uploads/CA-Browser-Forum-BR-1.8.0.pdf
84348435
prln_svrty_low " NOT ok: length should be >= 64 bits entropy (is: $len_cert_serial bytes)"
84358436
fileout "cert_serialNumberLen${json_postfix}" "LOW" "$len_cert_serial is not enough entropy"
84368437
else

0 commit comments

Comments
 (0)