From 52144bc2771f3d74d94fcf9a831ccc79cc61ddf3 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Thu, 6 Feb 2020 00:53:44 +0100 Subject: [PATCH] ssl-certificate-expiry: remove hardcoded CA directory path This should allow the plugin to be usable on all platforms. --- plugins/ssl/ssl-certificate-expiry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ssl/ssl-certificate-expiry b/plugins/ssl/ssl-certificate-expiry index 055af6f5..c757c8a9 100755 --- a/plugins/ssl/ssl-certificate-expiry +++ b/plugins/ssl/ssl-certificate-expiry @@ -123,7 +123,7 @@ print_expire_days() { [ -n "$starttls" ] && s_client_args="-starttls $starttls" # shellcheck disable=SC2086 - echo "" | openssl s_client -CApath /etc/ssl/certs \ + echo "" | openssl s_client \ -servername "$host" -connect "${host}:${port}" \ $s_client_args 2>/dev/null \ | parse_valid_days_from_certificate