diff --git a/testssl.sh b/testssl.sh index aeff429..d96fe5f 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1184,7 +1184,7 @@ server_defaults() { savedir=`pwd`; cd $TEMPDIR $OPENSSL s_client -showcerts $STARTTLS -connect $NODEIP:$PORT $SNI 2>/dev/null ("level" c ".crt")} /---END CERTIFICATE-----/{inc=0}' - nrsaved=`ls $TEMPDIR/level?.crt 2>/dev/null | wc -w` + nrsaved=`ls $TEMPDIR/level?.crt 2>/dev/null | wc -w | sed 's/^ *//'` outln " # of certificates provided $nrsaved" cd $savedir