testssl.sh/t/05_ca_hashes_up_to_date.t

10 lines
358 B
Perl
Raw Normal View History

#!/usr/bin/env perl
use strict;
use Test::More tests => 1;
2020-01-13 23:50:14 +01:00
printf "\n%s\n", "Testing whether CA certificates are newer than \"~/etc/ca_hashes.txt\" ...";
my $newer_bundles=`find etc/*.pem -newer etc/ca_hashes.txt`;
2020-01-13 23:50:14 +01:00
is($newer_bundles,"","List of CA bundles newer then etc/ca_hashes.txt should be empty. If not run utils/create_ca_hashes.sh");
done_testing;