From 5b294618c0dc3258f86e4fea2233348908d392c6 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 2 Oct 2017 15:11:58 +0200 Subject: [PATCH] first part of #371 --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index b1503f8..eff3135 100755 --- a/testssl.sh +++ b/testssl.sh @@ -5543,7 +5543,7 @@ get_server_certificate() { $OPENSSL s_client $STARTTLS $BUGS $1 -showcerts -connect $NODEIP:$PORT $PROXY $SNI -tlsextdebug -status $ERRFILE >$TMPFILE sclient_connect_successful $? $TMPFILE && grep -a 'TLS server extension' $TMPFILE >$TEMPDIR/tlsext.txt for proto in $protocols_to_try; do - # we could know here which protcols are supported + [[ 1 -eq $(has_server_protocol $proto) ]] && continue addcmd="" $OPENSSL s_client $(s_client_options "$STARTTLS $BUGS $1 -showcerts -connect $NODEIP:$PORT $PROXY $SNI -$proto -tlsextdebug $npn_params -status") $ERRFILE >$TMPFILE if sclient_connect_successful $? $TMPFILE; then