diff --git a/testssl.sh b/testssl.sh index dc57005..2ea445d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1192,7 +1192,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 | wc -w` + nrsaved=`ls $TEMPDIR/level?.crt 2>/dev/null | wc -w` outln " # of certificates provided $nrsaved" cd $savedir