From c607bf4d9246db011eb880a60ccd5c0ae61a0b55 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 7 Nov 2019 13:01:21 -0500 Subject: [PATCH] Check stderr for "no cipher list" run_prototest_openssl() currently checks only stdout for the string "no cipher list", which is an indication that the server supports SSLv2, but no ciphers for that protocol. However, the output that includes "no cipher list" is sent to stderr. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index a5c2441..9245d80 100755 --- a/testssl.sh +++ b/testssl.sh @@ -4798,12 +4798,12 @@ run_prototest_openssl() { # check whether the protocol being tested is supported by $OPENSSL $OPENSSL s_client "$1" -connect x 2>&1 | grep -aq "unknown option" && return 7 - $OPENSSL s_client $(s_client_options "-state $1 $STARTTLS $BUGS -connect $NODEIP:$PORT $PROXY $SNI") >$TMPFILE 2>$ERRFILE $TMPFILE 2>&1 $TMPFILE 2>$ERRFILE $TMPFILE 2>&1