From a04b30a6ea752d6d2b7c86f7987ad19fcb0d4d19 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 13 Nov 2023 07:34:09 -0600 Subject: [PATCH] Update certs.inc --- inc/certs.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/certs.inc b/inc/certs.inc index 8788baf2..0d2d257f 100755 --- a/inc/certs.inc +++ b/inc/certs.inc @@ -316,11 +316,11 @@ LISTCERTS(){ [[ "$(declare -p CHECKCERT_DOMAINS)" =~ "declare -a" ]] && [ "${CHECKCERT_DOMAINS[${SUBJECT}]}" = "" ] && monitored='-' || monitored="Yes" editc=0 until [ "${editc^}" = "C" ]; do - echo -e "\033[K ${idsCL[White]} Expires: ${idsCL[Cyan]}${idsST[Bold]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}" - echo -e "\033[K ${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECT}${idsST[Reset]}" + echo -e "\033[K ${idsCL[White]} Expires: ${idsCL[Cyan]}${idsST[Bold]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}" + echo -e "\033[K ${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECT}${idsST[Reset]}" echo - echo -e "\033[K ${idsCL[Green]}1) ${idsCL[White]}Cert Alt. Names: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECTNAMES//,/, }${idsST[Reset]}" - echo -e "\033[K ${idsCL[Green]}2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${idsST[Bold]}${monitored}${idsST[Reset]}" + echo -e "\033[K ${idsCL[Green]}1) ${idsCL[White]}Cert Alternate Names: ${idsCL[Cyan]}${idsST[Bold]}${SUBJECTNAMES//,/, }${idsST[Reset]}" + echo -e "\033[K ${idsCL[Green]}2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${idsST[Bold]}${monitored}${idsST[Reset]}" if [ "${editc}" != "s" ]; then echo -e "\033[K" echo -e "\033[K"