From 7eac18abc3db4d434d34673d7ce139c6b69e3c0a Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 30 Sep 2009 01:20:38 -0700 Subject: [PATCH] verify that n0ll cert is broken --- lib/hx509/test_cert.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/hx509/test_cert.in b/lib/hx509/test_cert.in index bc7003553..9ce67d640 100644 --- a/lib/hx509/test_cert.in +++ b/lib/hx509/test_cert.in @@ -65,5 +65,15 @@ ${hxtool} certificate-copy DER-FILE:cert-der.tmp PEM-FILE:cert-pem2.tmp || exit cmp cert-pem.tmp cert-pem2.tmp || exit 1 +echo "verify n0ll cert (fail)" +${hxtool} verify --missing-revoke \ + --hostname=foo.com \ + cert:FILE:$srcdir/data/n0ll.pem \ + anchor:FILE:$srcdir/data/n0ll.pem && exit 1 + +echo "verify n0ll cert (fail)" +${hxtool} verify --missing-revoke \ + cert:FILE:$srcdir/data/n0ll.pem \ + anchor:FILE:$srcdir/data/n0ll.pem && exit 1 exit 0