Update certs.inc

This commit is contained in:
2023-11-12 21:18:52 -06:00
parent 80c74f9bbf
commit bda2d2da55

View File

@@ -200,7 +200,8 @@ LISTCERTS(){
cw=30;
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
ssldir=$(${NCMD} find ${NM_CERTPATH}/live/* -type d)
ssldir=$(${NCMD} find ${NM_CERTPATH}/live/*dns* -type d)
i=0
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)
@@ -236,7 +237,13 @@ LISTCERTS(){
fi
DIVIDER false darkGray 120
CERTLIST[${i}]=${SUBJECT}
i=`expr $i + 1`
done
echo "HERE: ${CERTLIST[2]}"
echo
if [ -z $action ] || [ "${action}" = "gui" ]; then
DIVIDER true