diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-11-09 23:53:25 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-11-09 23:53:25 +0100 |
commit | 64b19b328d2634f749737563ddc95cdd5502325a (patch) | |
tree | a41ea676a51d6b64e2e448190694560aab24d366 | |
parent | c935dc12550be64ac300fc995038af390b45abf5 (diff) | |
download | gnutls-64b19b328d2634f749737563ddc95cdd5502325a.tar.gz |
testdane: improved error detection in sites
-rwxr-xr-x | tests/suite/testdane | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/suite/testdane b/tests/suite/testdane index 05d9cde1cf..c2408ec7ff 100755 --- a/tests/suite/testdane +++ b/tests/suite/testdane @@ -39,7 +39,11 @@ HOSTS="good.dane.verisignlabs.com www.freebsd.org www.kumari.net torproject.org HOSTS="${HOSTS} nohats.ca" for host in ${HOSTS}; do - nc "${host}" 443 </dev/null + nc -w 5 "${host}" 443 >/dev/null <<_EOF +GET / HTTP/1.0 + +_EOF + if test $? = 0;then echo -n "${host}: " "${DANETOOL}" --check "${host}" >/dev/null 2>&1 @@ -57,7 +61,10 @@ echo "*** Testing good SMTP hosts ***" HOSTS="nlnetlabs.nl" for host in ${HOSTS}; do - nc "${host}" 25 </dev/null + nc -w 5 "${host}" 25 >/dev/null <<_EOF +QUIT +_EOF + if test $? = 0;then echo -n "${host}: " "${DANETOOL}" --check "${host}" --port 25 >/dev/null 2>&1 @@ -77,7 +84,10 @@ HOSTS="bad-hash.dane.verisignlabs.com bad-params.dane.verisignlabs.com" HOSTS="${HOSTS} bad-sig.dane.verisignlabs.com" for host in ${HOSTS}; do - nc "${host}" 443 </dev/null + nc -w 5 "${host}" 443 >/dev/null <<_EOF +GET / HTTP/1.0 + +_EOF if test $? = 0;then echo -n "${host}: " "${DANETOOL}" --check "${host}" >/dev/null 2>&1 |