Update nodemgmt-scripts.sh
This commit is contained in:
@@ -600,13 +600,6 @@ LISTCERTS(){
|
|||||||
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g")
|
SUBJECTNAMES=$(echo $SUBJECTNAMES | sed "s/${SUBJECT}//g")
|
||||||
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certdir}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
|
DAYS=14; DUEIN=$(($(date +%s) + (86400*$DAYS)));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SUBJECT=$(${OPENSSL} x509 -in ${certdir}/cert.pem -text -subject -noout -inform pem | \
|
|
||||||
${SED} -e 's/.*CN=//' | \
|
|
||||||
${SED} -e 's/\/.*//')
|
|
||||||
|
|
||||||
|
|
||||||
declare -i cw; declare -i spc1; declare -i c
|
declare -i cw; declare -i spc1; declare -i c
|
||||||
c=0; cw=30; spc=''
|
c=0; cw=30; spc=''
|
||||||
|
|||||||
Reference in New Issue
Block a user