Skip to content

Commit c07bbed

Browse files
committed
Checks for curl when checking for HTTP headers
Fixes #538
1 parent 2ec5743 commit c07bbed

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ authors:
269269
- name: Zadkiel
270270
website: https://github.com/aslafy-z
271271
title: "check_ssl_cert"
272-
version: 2.90.0
272+
version: 2.91.0
273273
date-released: 2025-04-04
274274
url: "https://github.com/matteocorti/check_ssl_cert"
275275
repository-code: "https://github.com/matteocorti/check_ssl_cert"

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* check_ssl_cert (check_crl): Fixes an issue with CRL checks
44
* check_ssl_cert (parse_command_line_options): Checks alternative names when checking a file
5+
* check_ssl_cert (main): Checks for curl when checking for HTTP headers
56

67
2025-04-01 Matteo Corti <[email protected]>
78

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# News
22

3+
* 2025-04-04 Version 2.91.0
4+
* Checks for curl when checking for HTTP headers
35
* 2025-04-04 Version 2.90.0
46
* Fixes an issue with CRL checks
57
* Checks alternative names when checking a file

RELEASE_NOTES.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
* Fixes an issue with CRL checks
2-
* Checks alternative names when checking a file
1+
Checks for curl when checking for HTTP headers

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.90.0
1+
2.91.0

check_ssl_cert

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
################################################################################
2727
# Constants
2828

29-
VERSION=2.90.0
29+
VERSION=2.91.0
3030
SHORTNAME="SSL_CERT"
3131

3232
# reset possibly set variables
@@ -157,7 +157,7 @@ add_required_header() {
157157
fi
158158
}
159159

160-
################################################################################
160+
################################################################################551
161161
# Add the specified header to the list of unrequired HTTP headers
162162
# Usage:
163163
# add_unrequired_header X-Powered-By
@@ -4552,9 +4552,10 @@ main() {
45524552
if [ -n "${SSL_LAB_CRIT_ASSESSMENT}" ] ||
45534553
[ -n "${OCSP}" ] ||
45544554
[ -n "${CRL}" ] ||
4555+
[ -n "${REQUIRED_HTTP_HEADERS}" ] ||
45554556
[ -n "${IGNORE_CONNECTION_STATE}" ] ||
45564557
[ -n "${FILE_URI}" ]; then
4557-
debuglog "curl binary needed. SSL Labs = ${SSL_LAB_CRIT_ASSESSMENT}, OCSP = ${OCSP}, CURL = ${CRL}, IGNORE_CONNECTION_STATE=${IGNORE_CONNECTION_STATE}, FILE_URI=${FILE_URI}"
4558+
debuglog "curl binary needed. SSL Labs = ${SSL_LAB_CRIT_ASSESSMENT}, OCSP = ${OCSP}, CURL = ${CRL}, IGNORE_CONNECTION_STATE=${IGNORE_CONNECTION_STATE}, FILE_URI=${FILE_URI}, REQUIRED_HTTP_HEADERS=${REQUIRED_HTTP_HEADERS}"
45584559
debuglog "curl binary not specified"
45594560

45604561
check_required_prog curl

check_ssl_cert.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" Process this file with
22
.\" groff -man -Tascii check_ssl_cert.1
33
.\"
4-
.TH "check_ssl_cert" 1 "April, 2025" "2.90.0" "USER COMMANDS"
4+
.TH "check_ssl_cert" 1 "April, 2025" "2.91.0" "USER COMMANDS"
55
.SH NAME
66
check_ssl_cert \- checks the validity of X.509 certificates
77
.SH SYNOPSIS

check_ssl_cert.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%global version 2.90.0
1+
%global version 2.91.0
22
%global release 0
33
%global sourcename check_ssl_cert
44
%global packagename nagios-plugins-check_ssl_cert
@@ -54,6 +54,9 @@ rm -rf $RPM_BUILD_ROOT
5454
%endif
5555

5656
%changelog
57+
* Fri Apr 4 2025 Matteo Corti <[email protected]> - 2.91.0-0
58+
- Updated to 2.91.0
59+
5760
* Fri Apr 4 2025 Matteo Corti <[email protected]> - 2.90.0-0
5861
- Updated to 2.90.0
5962

0 commit comments

Comments
 (0)