diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 95f1c515..4cf86cae 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -131,22 +131,23 @@ LISTCERTS(){ DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS))); DIVIDER true - echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}" - #if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then - if [ "$SUBJECTNAMES" != "" ]; then - echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}" - fi - if [ $DUEIN -gt $CERTEXPIRE ]; then - echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" - else - echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" - fi - echo "" - + #echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}" + #if [ "$SUBJECTNAMES" != "" ]; then + # echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}" + #fi + #if [ $DUEIN -gt $CERTEXPIRE ]; then + # echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}" + #else + # echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" + #fi + #echo "" + cw=30 + spc1=${cw}-${#SUBJECT} + echo -e "${SUBJECT}${spc1}$(date -d @${CERTEXPIRE} '+%m-%d-%Y') ${SUBJECTNAMES}" + done - - if [ -z $action ] || [ "${action}" = "gui" ]; then + DIVIDER true ENTER2CONTINUE fi echo ""