diff -r b4dbae8f141c -r 50f5a78ba6fa check_cert.pl --- a/check_cert.pl Tue Jun 16 14:08:35 2009 +0000 +++ b/check_cert.pl Thu Jun 18 08:28:39 2009 +0000 @@ -35,7 +35,7 @@ "f=s" => \@opt_certfiles, "certfile=s" => \@opt_certfiles); if ($opt_V) { - print_revision($ME, "0.1"); + print_revision($ME, "0.3"); exit $ERRORS{"OK"}; } @@ -131,7 +131,7 @@ foreach (sort keys %certs) { if (@{$certs{$_}}[2]) { if (@{$certs{$_}}[2] eq "$opt_s") { - push (@critical, "file: $_, CN=@{$certs{$_}}[0] Signature Algorithm: @{$certs{$_}}[2]"); + push (@warning, "file: $_, CN=@{$certs{$_}}[0] Signature Algorithm: @{$certs{$_}}[2]"); } } @@ -176,7 +176,7 @@ print " Certificat should not be more than this time older (default: 1week)\n"; print " For time can be used year, month, day, hour, minute, second and weeks.\n"; print " -s, --signature \n"; - print " Return CRITICAL stauts if is used.\n"; + print " Return WARNING status if is used (default: md5WithRSAEncryption).\n"; print " -f, --certfile \n"; print " Absolute path of x509 or pkcs12 openssl certificate files, use comma-separated lists for multiple files.\n"; print " -h, --help\n";