Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-10 15:58:09 -06:00
parent 0e754a70bb
commit 000844c7ac

View File

@@ -594,9 +594,9 @@ LISTCERTS(){
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
OPENSSL=$(which openssl)
CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -enddate -noout -inform pem | \
CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -enddate -noout -inform pem | \
${SED} 's/notAfter\=//')
COMMONNAME=$(${OPENSSL} x509 -in ${certdir}/cert.pem -subject -noout -inform pem | \
COMMONNAME=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -subject -noout -inform pem | \
${SED} -e 's/.*CN=//' | \
${SED} -e 's/\/.*//')