From 341b5813108fb2367ada81e866da989ea4fb29e7 Mon Sep 17 00:00:00 2001 From: Matteo Corti Date: Tue, 28 May 2024 15:57:50 +0200 Subject: [PATCH] Small spell / syntax fixes --- CITATION.cff | 4 ++-- CODE_OF_CONDUCT.md | 2 +- NEWS.md | 2 ++ RELEASE_NOTES.md | 3 +-- VERSION | 2 +- check_ssl_cert | 4 ++-- check_ssl_cert.1 | 2 +- check_ssl_cert.spec | 5 ++++- test/unit_tests.sh | 3 ++- 9 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 7363415..a420b38 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -266,8 +266,8 @@ authors: given-names: "Дилян" website: https://github.com/dilyanpalauzov title: "check_ssl_cert" -version: 2.81.0 -date-released: 2024-03-27 +version: 2.81.1 +date-released: 2024-05-28 url: "https://github.com/matteocorti/check_ssl_cert" repository-code: "https://github.com/matteocorti/check_ssl_cert" keywords: diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2cf401c..c292282 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -6,7 +6,7 @@ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal +level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards diff --git a/NEWS.md b/NEWS.md index 4dac840..a49c276 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ * Better error handling in subroutines +* 2024-05-28 Version 2.81.1 + * Fix in the Icinga2 configuration file * 2024-03-27 Version 2.81.0 * Support for SNI with nmap * Added the ```--fingerprint-alg``` option to specify which algorithm to be used with --fingerprint. diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 087699e..f63c4f6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,2 +1 @@ -* Support for SNI with nmap -* Added the ```--fingerprint-alg``` option to specify which algorithm to be used with --fingerprint. +Fix in the Icinga2 configuration file diff --git a/VERSION b/VERSION index e1667ac..cf744f5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.81.0 +2.81.1 diff --git a/check_ssl_cert b/check_ssl_cert index 5ce7a08..187d98c 100755 --- a/check_ssl_cert +++ b/check_ssl_cert @@ -26,7 +26,7 @@ ################################################################################ # Constants -VERSION=2.81.0 +VERSION=2.81.1 SHORTNAME="SSL_CERT" VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint," @@ -4697,7 +4697,7 @@ main() { fi if grep -q '"Status":0' "${DNS_OVER_HTTP}" ; then - debuglog "Reolved via HTTP" + debuglog "Resolved via HTTP" else critical "${SHORTNAME} CRITICAL: Cannot resolve ${HOST} over HTTP using ${RESOLVE_OVER_HTTP}" fi diff --git a/check_ssl_cert.1 b/check_ssl_cert.1 index 9ceb8ff..66f7bed 100644 --- a/check_ssl_cert.1 +++ b/check_ssl_cert.1 @@ -1,7 +1,7 @@ .\" Process this file with .\" groff -man -Tascii check_ssl_cert.1 .\" -.TH "check_ssl_cert" 1 "March, 2024" "2.81.0" "USER COMMANDS" +.TH "check_ssl_cert" 1 "May, 2024" "2.81.1" "USER COMMANDS" .SH NAME check_ssl_cert \- checks the validity of X.509 certificates .SH SYNOPSIS diff --git a/check_ssl_cert.spec b/check_ssl_cert.spec index ffccfc4..6523972 100644 --- a/check_ssl_cert.spec +++ b/check_ssl_cert.spec @@ -1,4 +1,4 @@ -%global version 2.81.0 +%global version 2.81.1 %global release 0 %global sourcename check_ssl_cert %global packagename nagios-plugins-check_ssl_cert @@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue May 28 2024 Matteo Corti - 2.81.1-0 +- Updated to 2.81.1 + * Sun Mar 17 2024 Matteo Corti - 2.81.0-0 - Updated to 2.81.0 diff --git a/test/unit_tests.sh b/test/unit_tests.sh index 4e7ea9a..37ba412 100755 --- a/test/unit_tests.sh +++ b/test/unit_tests.sh @@ -361,7 +361,8 @@ testMissingArgument2() { testGroupedVariables() { # shellcheck disable=SC2086 - ${SCRIPT} ${TEST_DEBUG} --rootcert-file cabundle.crt -H www.google.com -vvv >/dev/null 2>&1 + ${SCRIPT} ${TEST_DEBUG} --rootcert-file cabundle.crt -H www.google.com -vvv + # >/dev/null 2>&1 EXIT_CODE=$? assertEquals "wrong exit code" "${NAGIOS_OK}" "${EXIT_CODE}" }