diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 547f17ab..2493477c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -97,9 +97,11 @@ LISTCERTS(){ if [ "${#SUBJECTNAMES[*]}" -gt 1 ]; then anid=1 for ALTNAME in "${SUBJECTNAMES[@]}"; do - if [ "${anid}" = 1 ]; then alttitle='Alternate Subject:'; else alttitle=' '; fi - echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}" - anid=`expr $anid + 1` + if [ "${ALTNAME}" != "${SUBJECT}"]; then + if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi + echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}" + anid=`expr $anid + 1` + fi done fi if [ $DUEIN -gt $CERTEXPIRE ]; then