Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-29 11:58:06 -06:00
parent 30366a211b
commit e6d8f3728d

View File

@@ -885,7 +885,7 @@ LISTCERTS(){
cw=30;
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
ssldir=$(${NCMD} find /opt/nginx-proxy/letsencrypt/live/* -type d)
ssldir=$(${NCMD} find /opt/nginx-proxy/ssl/* -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)