Merge pull request #2018 from drwetter/cab_is4browsers_3.0

Add browser requirement for the entropy of cert serial (3.0)
This commit is contained in:
Dirk Wetter 2021-10-21 09:50:21 +02:00 committed by GitHub
commit 0ac95be1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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