Update certs.inc

This commit is contained in:
2023-11-13 20:03:31 -06:00
parent 7b09042034
commit b7e15d3327

View File

@@ -321,11 +321,11 @@ LISTCERTS(){
[ "${CHECKCERT_DOMAINS[${SUBJECT}]}" != "" ] && monitored="Yes" || monitored='-'
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]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')"
echo -e "\033[K ${idsCL[White]} Cert Common Name: ${idsCL[Cyan]}${SUBJECT}${idsST[Reset]}"
echo
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]}"
echo -e "\033[K ${idsCL[Green]}1) ${idsCL[White]}Cert Alternate Names: ${idsCL[Cyan]}${SUBJECTNAMES//,/, }"
echo -e "\033[K ${idsCL[Green]}2) ${idsCL[White]}Monitored: ${idsCL[Cyan]}${monitored}"
if [ "${editc}" != "s" ]; then
echo -e "\033[K"
echo -e "\033[K"