testssl.sh/t/05_ca_hashes_up_to_date.t

17 lines
387 B
Perl
Raw Normal View History

#!/usr/bin/env perl
use strict;
use Test::More;
printf "\n%s\n", "Testing whether CA certificates are newer their SPKI hashes \"~/etc/ca_hashes.txt\" ...";
my $newer_bundles=`find etc/*.pem -newer etc/ca_hashes.txt`;
2024-10-14 17:11:55 +02:00
is($newer_bundles,"","Checking if there's an output with a *.pem file run \"~/utils/create_ca_hashes.sh\"");
printf "\n";
2020-01-13 23:50:14 +01:00
done_testing;
# vim:ts=5:sw=5:expandtab