Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-25 12:36:02 -05:00
parent 71cd93e0ba
commit 7792e9d0f5

View File

@@ -915,7 +915,7 @@ LISTCERTS(){
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
#ssldir=$(${NCMD} find /opt/nginx-proxy/ssl/* -type l)
ssldir=$(${NCMD} find /opt/lb-data/letsencrypt/live/* -type l)
ssldir=$(${NCMD} find /opt/lb-data/letsencrypt/live/* -type d)
for certdir in ${ssldir[@]}; do
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
SUBJECTNAMES=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)