[-]
[+]
|
Changed |
check_ssl_cert.changes
|
|
[-]
[+]
|
Changed |
check_ssl_cert.spec
^
|
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/AUTHORS
^
|
@@ -27,6 +27,7 @@
* Many thanks to Sven Nierlein for the client certificate authentication patch
* Many thanks to Rob Yamry for the help in debugging a problem with
certain versions of OpenSSL and TLS extensions
+* Many thanks to Jim Hopp for the "No certificate returned" enhancement patch
# File version information:
# $Id: AUTHORS 1103 2009-12-07 07:49:19Z corti $
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/ChangeLog
^
|
@@ -1,3 +1,7 @@
+2012-09-19 Matteo Corti <matteo.corti@id.ethz.ch>
+
+ * check_ssl_cert: improved the "No certificate returned" error message
+
2012-07-13 Matteo Corti <matteo.corti@id.ethz.ch>
* check_ssl_cert: added the number of days from or to expiration in the
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/NEWS
^
|
@@ -1,3 +1,5 @@
+2012-09-19 Version 1.14.3 Improved the error message in case of a failure in
+ the certificate download
2012-07-13 Version 1.14.2 Added the name since or to expiration in the plugin
output.
2012-07-11 Version 1.14.1 FIxed a bug with Perl date computation on some systems
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/VERSION
^
|
@@ -1 +1 @@
-1.14.2
+1.14.3
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/check_ssl_cert
^
|
@@ -19,15 +19,15 @@
# enable substitution with:
# $ svn propset svn:keywords "Id Revision HeadURL Source Date"
#
-# $Id: check_ssl_cert 1309 2012-07-18 09:31:45Z corti $
-# $Revision: 1309 $
+# $Id: check_ssl_cert 1316 2012-09-19 13:55:19Z corti $
+# $Revision: 1316 $
# $HeadURL: https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert $
-# $Date: 2012-07-18 11:31:45 +0200 (Wed, 18 Jul 2012) $
+# $Date: 2012-09-19 15:55:19 +0200 (Wed, 19 Sep 2012) $
################################################################################
# Constants
-VERSION=1.14.2
+VERSION=1.14.3
SHORTNAME="SSL_CERT"
VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint,"
@@ -586,7 +586,23 @@
if [ -n "${FILE}" ] ; then
critical "'${FILE}' is not a valid certificate file"
else
- critical "No certificate returned"
+
+ # See
+ # http://stackoverflow.com/questions/1251999/sed-how-can-i-replace-a-newline-n
+ #
+ # - create a branch label via :a
+ # - the N command appends a newline and and the next line of the input
+ # file to the pattern space
+ # - if we are before the last line, branch to the created label $!ba
+ # ($! means not to do it on the last line (as there should be one final newline))
+ # - finally the substitution replaces every newline with a space on
+ # the pattern space
+
+ ERROR_MESSAGE=$(sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/; /g' ${ERROR})
+ if [ -n "${VERBOSE}" ] ; then
+ echo "Error: ${ERROR_MESSAGE}"
+ fi
+ critical "No certificate returned (${ERROR_MESSAGE})"
fi
fi
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/check_ssl_cert.1
^
|
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii foo.1
.\"
-.TH "check_ssl_cert" 1 "July, 2012" "1.14.2" "USER COMMANDS"
+.TH "check_ssl_cert" 1 "July, 2012" "1.14.3" "USER COMMANDS"
.SH NAME
check_ssl_cert \- checks the validity of X.509 certificates
.SH SYNOPSIS
|
[-]
[+]
|
Changed |
check_ssl_cert-1.14.3.tar.bz2/check_ssl_cert.spec
^
|
@@ -6,7 +6,7 @@
# $Date: 2010-02-16 21:06:11 +0100 (Tue, 16 Feb 2010) $
################################################################################
-%define version 1.14.2
+%define version 1.14.3
%define release 0
%define sourcename check_ssl_cert
%define packagename nagios-plugins-check_ssl_cert
@@ -53,6 +53,9 @@
%{_mandir}/man1/%{sourcename}.1*
%changelog
+* Wed Sep 19 2012 Matteo Corti <matteo.corti@id.ethz.ch> - 1.14.3-0
+- Updated to 1.14.3
+
* Fri Jul 13 2012 Matteo Corti <matteo.corti@id.ethz.ch> - 1.14.2-0
- Updated to 1.14.2
|