check_cert.pl
changeset 3 50f5a78ba6fa
parent 2 b4dbae8f141c
child 4 7a88e0574d1b
--- 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 <signature algorithm>\n";
-    print "     Return CRITICAL stauts if <signature algorithm> is used.\n";
+    print "     Return WARNING status if <signature algorithm> is used (default: md5WithRSAEncryption).\n";
     print "  -f, --certfile <file,file,file, ...>\n";
     print "     Absolute path of x509 or pkcs12 openssl certificate files, use comma-separated lists for multiple files.\n";
     print "  -h, --help\n";