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