1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

ssl-certificate-expiry: remove hardcoded CA directory path

This should allow the plugin to be usable on all platforms.
This commit is contained in:
Lars Kruse 2020-02-06 00:53:44 +01:00
parent 60782f9d72
commit 52144bc277

View file

@ -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