Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-10 16:59:15 -06:00
parent 7295968394
commit 4d35016cfa

View File

@@ -600,8 +600,9 @@ LISTCERTS(){
SED=$(which sed)
CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -enddate -noout -inform pem | grep 'Not After')
COMMONNAME=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -subject -noout -inform pem | \
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=//' | \
${SED} -e 's/\/.*//')