Update nodemgmt-scripts.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user