From 0012adf47efc36cc508c8b313ddeb8cbf95c2f88 Mon Sep 17 00:00:00 2001 From: Steve Mokris Date: Tue, 5 Oct 2021 13:53:58 -0400 Subject: [PATCH] Add a test to verify that expired.badssl.com's chain of trust is expired. --- t/51_badssl.com.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/51_badssl.com.t b/t/51_badssl.com.t index 9b9e278..40b6e91 100755 --- a/t/51_badssl.com.t +++ b/t/51_badssl.com.t @@ -22,6 +22,7 @@ cmp_ok(@$okjson,'>',10,"We have more then 10 findings"); $tests++; # Expiration pass("Running testssl against expired.badssl.com"); $tests++; $out = `./testssl.sh -S --jsonfile tmp.json --color 0 expired.badssl.com`; +like($out, qr/Chain of trust\s+NOT ok \(expired\)/,"The chain of trust should be expired"); $tests++; like($out, qr/Certificate Validity \(UTC\)\s+expired/,"The certificate should be expired"); $tests++; $json = json('tmp.json'); unlink 'tmp.json';