Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
9d10812945
commit
12c9223ab2
1 file changed
+3
-2
+3
-2
@@ -600,8 +600,9 @@ LISTCERTS(){
|
||||
SED=$(which sed)
|
||||
|
||||
|
||||
CERTDATE=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -enddate -noout -inform pem | ${SED} 's/notAfter\=//')
|
||||
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/\/.*//')
|
||||
|
||||
|
||||
Reference in new issue
Block a user