Check for RSA exponent of 1

As suggested in #1576, set the grade cap to F if the RSA key has an exponent of 1.
This commit is contained in:
David Cooper 2020-05-06 14:25:59 -04:00
parent 9dba2a8c9c
commit a8c9133fc6
1 changed files with 1 additions and 0 deletions

View File

@ -8547,6 +8547,7 @@ certificate_info() {
if [[ -n "$cert_spki_info" ]]; then
out " (exponent is $cert_spki_info)"
json_msg+=" (exponent is $cert_spki_info)"
[[ $cert_spki_info -eq 1 ]] && set_grade_cap "F" "RSA certificate uses exponent of 1"
fi
;;
"EC") cert_spki_info="${cert_txt##*Subject Public Key Info:}"