From fcfb077a95826d378b25a2bb9903b3c27874128e Mon Sep 17 00:00:00 2001 From: Lukas Schauer Date: Thu, 2 Apr 2020 12:44:40 +0200 Subject: [PATCH] redirect output of cert expiry check (fixes #713) --- dehydrated | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dehydrated b/dehydrated index 0965af9..842e721 100755 --- a/dehydrated +++ b/dehydrated @@ -1347,7 +1347,7 @@ command_sign_domains() { valid="$("${OPENSSL}" x509 -enddate -noout -in "${cert}" | cut -d= -f2- )" printf " + Valid till %s " "${valid}" - if "${OPENSSL}" x509 -checkend $((RENEW_DAYS * 86400)) -noout -in "${cert}"; then + if ("${OPENSSL}" x509 -checkend $((RENEW_DAYS * 86400)) -noout -in "${cert}" > /dev/null 2>&1); then printf "(Longer than %d days). " "${RENEW_DAYS}" if [[ "${force_renew}" = "yes" ]]; then echo "Ignoring because renew was forced!" -- 2.47.3