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