Skip to content

Commit

Permalink
Fixes #413
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Sep 24, 2022
1 parent 2f06f66 commit 978accc
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ authors:
given-names: "Дилян"
website: https://github.com/dilyanpalauzov
title: "check_ssl_cert"
version: 2.47.0
date-released: 2022-09-23
version: 2.48.0
date-released: 2022-09-24
url: "https://github.com/matteocorti/check_ssl_cert"
repository-code: "https://github.com/matteocorti/check_ssl_cert"
keywords:
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2022-09-24 Matteo Corti <matteo@corti.li>

* check_ssl_cert (add_unrequired_header): Fixing #413

2022-09-23 Matteo Corti <matteo@corti.li>

* check_ssl_cert (check_attr): use only integers for the certificate max duration of 13 months
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* 2022-09-24 Version 2.48.0
* Fixes the parsing of --require-no-http-header
* 2022-09-23 Version 2.47.0
* New options to check HTTP headers (see ```--help```)
* Options can now be specified in a configuration file (see README.md)
Expand Down
4 changes: 1 addition & 3 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
* New options to check HTTP headers (see ```--help```)
* Options can now be specified in a configuration file (see README.md)
* Fixed a bug in the total certificate validity check if ```--precision``` is specified
Fixes the parsing of --require-no-http-header
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.47.0
2.48.0
7 changes: 5 additions & 2 deletions check_ssl_cert
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
################################################################################
# Constants

VERSION=2.47.0
VERSION=2.48.0
SHORTNAME="SSL_CERT"

VALID_ATTRIBUTES=",startdate,enddate,subject,issuer,modulus,serial,hash,email,ocsp_uri,fingerprint,"
Expand Down Expand Up @@ -101,7 +101,7 @@ add_unrequired_header() {
if [ -z "${UNREQUIRED_HTTP_HEADERS}" ] ; then
UNREQUIRED_HTTP_HEADERS="${header}"
else
UNREQUIRED_HTTP_HEADERS="${REQUIRED_HTTP_HEADERS},${header}"
UNREQUIRED_HTTP_HEADERS="${UNREQUIRED_HTTP_HEADERS},${header}"
fi
}

Expand Down Expand Up @@ -3948,6 +3948,9 @@ main() {

fi

debuglog "Required HTTP headers: ${REQUIRED_HTTP_HEADERS}"
debuglog "Unrequired HTTP headers: ${UNREQUIRED_HTTP_HEADERS}"

##############################
# Check options: sanity checks

Expand Down
2 changes: 1 addition & 1 deletion check_ssl_cert.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" Process this file with
.\" groff -man -Tascii check_ssl_cert.1
.\"
.TH "check_ssl_cert" 1 "September, 2022" "2.47.0" "USER COMMANDS"
.TH "check_ssl_cert" 1 "September, 2022" "2.48.0" "USER COMMANDS"
.SH NAME
check_ssl_cert \- checks the validity of X.509 certificates
.SH SYNOPSIS
Expand Down
5 changes: 4 additions & 1 deletion check_ssl_cert.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%global version 2.47.0
%global version 2.48.0
%global release 0
%global sourcename check_ssl_cert
%global packagename nagios-plugins-check_ssl_cert
Expand Down Expand Up @@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
%endif

%changelog
* Sat Sep 24 2022 Matteo Corti <matteo@corti.li> - 2.48.0-0
- Updated to 2.48.0

* Fri Sep 23 2022 Matteo Corti <matteo@corti.li> - 2.47.0-0
- Updated to 2.47.0

Expand Down

0 comments on commit 978accc

Please sign in to comment.