mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-31 22:09:44 +01:00
Update certificate_info function to include key algorithm in error messages
This commit is contained in:
parent
3f9cc7b6a5
commit
f4b1bb28a0
@ -9110,7 +9110,7 @@ certificate_info() {
|
|||||||
json_rating="OK"; json_msg="$short_keyAlgo $cert_keysize bits"
|
json_rating="OK"; json_msg="$short_keyAlgo $cert_keysize bits"
|
||||||
else
|
else
|
||||||
out "keysize: $cert_keysize (not expected, FIXME)"
|
out "keysize: $cert_keysize (not expected, FIXME)"
|
||||||
json_rating="DEBUG"; json_msg=" $cert_keysize bits (not expected)"
|
json_rating="DEBUG"; json_msg=" $short_keyAlgo $cert_keysize bits (not expected)"
|
||||||
((ret++))
|
((ret++))
|
||||||
fi
|
fi
|
||||||
out " bits"
|
out " bits"
|
||||||
@ -9139,7 +9139,7 @@ certificate_info() {
|
|||||||
out " bits"
|
out " bits"
|
||||||
else
|
else
|
||||||
pr_warning "weird key size: $cert_keysize bits"; out " (could cause compatibility problems)"
|
pr_warning "weird key size: $cert_keysize bits"; out " (could cause compatibility problems)"
|
||||||
json_rating="WARN"; json_msg="$cert_keysize bits (Odd)"
|
json_rating="WARN"; json_msg="$short_keyAlgo $cert_keysize bits (Odd)"
|
||||||
((ret++))
|
((ret++))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user