Update nodemgmt-scripts.sh
This commit is contained in:
@@ -94,9 +94,14 @@ LISTCERTS(){
|
|||||||
|
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
echo -e "Certificate Subject: ${idsST[Bold]}${idsCL[Cyan]}${SUBJECT}${idsST[Reset]}${idsCL[Default]}"
|
echo -e "Certificate Subject: ${idsST[Bold]}${idsCL[Cyan]}${SUBJECT}${idsST[Reset]}${idsCL[Default]}"
|
||||||
for ALTNAME in "${SUBJECTNAMES[@]}"; do
|
if [ "${#foo[*]}" -gt 1 ]; then
|
||||||
echo -e "Alternate Subject: ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
|
anid=1
|
||||||
done
|
for ALTNAME in "${SUBJECTNAMES[@]}"; do
|
||||||
|
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject:'; else alttitle=' '; fi
|
||||||
|
echo -e " ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
|
||||||
|
anid=`expr $nid + 1`
|
||||||
|
done
|
||||||
|
fi
|
||||||
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
||||||
echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user