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:
parent
9dba2a8c9c
commit
a8c9133fc6
|
@ -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:}"
|
||||
|
|
Loading…
Reference in New Issue