1
0
mirror of https://github.com/drwetter/testssl.sh.git synced 2025-05-15 20:56:04 +02:00

Check for RSA exponent of 1

As suggested in , 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

@ -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:}"