mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-07 09:10:57 +01:00
commit
3261e6e7a9
@ -15646,7 +15646,7 @@ run_drown() {
|
|||||||
# to $CERT_FINGERPRINT_SHA2, so if $CERT_FINGERPRINT_SHA2 is not empty, but
|
# to $CERT_FINGERPRINT_SHA2, so if $CERT_FINGERPRINT_SHA2 is not empty, but
|
||||||
# $RSA_CERT_FINGERPRINT_SHA2 is empty, then the server doesn't have an RSA certificate.
|
# $RSA_CERT_FINGERPRINT_SHA2 is empty, then the server doesn't have an RSA certificate.
|
||||||
if [[ -z "$CERT_FINGERPRINT_SHA2" ]]; then
|
if [[ -z "$CERT_FINGERPRINT_SHA2" ]]; then
|
||||||
get_host_cert "-cipher aRSA"
|
get_host_cert "-cipher aRSA -no_ssl2"
|
||||||
[[ $? -eq 0 ]] && cert_fingerprint_sha2="$($OPENSSL x509 -noout -in $HOSTCERT -fingerprint -sha256 2>>$ERRFILE | sed -e 's/^.*Fingerprint=//' -e 's/://g' )"
|
[[ $? -eq 0 ]] && cert_fingerprint_sha2="$($OPENSSL x509 -noout -in $HOSTCERT -fingerprint -sha256 2>>$ERRFILE | sed -e 's/^.*Fingerprint=//' -e 's/://g' )"
|
||||||
else
|
else
|
||||||
cert_fingerprint_sha2="$RSA_CERT_FINGERPRINT_SHA2"
|
cert_fingerprint_sha2="$RSA_CERT_FINGERPRINT_SHA2"
|
||||||
|
Loading…
Reference in New Issue
Block a user