Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-10 16:55:21 -06:00
parent 08505a56ac
commit 8bb43d915a

View File

@@ -601,7 +601,7 @@ LISTCERTS(){
SED=$(which sed)
CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -enddate | grep 'Not After')
#CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -enddate | grep 'Not After')
COMMONNAME=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -subject | \
${SED} -e 's/.*CN=//' | \
@@ -619,7 +619,7 @@ LISTCERTS(){
else
date="${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}"
fi
echo -e "${idsCL[Cyan]}${SUBJECT}${spc}${CERTDATE} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
echo -e "${idsCL[Cyan]}${SUBJECT}${spc}${date} ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
done
echo
if [ -z $action ] || [ "${action}" = "gui" ]; then