Update certs.inc
This commit is contained in:
@@ -200,7 +200,8 @@ LISTCERTS(){
|
|||||||
cw=30;
|
cw=30;
|
||||||
c=0; spc2=''; until [ $c = ${cw} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
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
|
for certdir in ${ssldir[@]}; do
|
||||||
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
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)
|
SUBJECTNAMES=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
@@ -236,7 +237,13 @@ LISTCERTS(){
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
DIVIDER false darkGray 120
|
DIVIDER false darkGray 120
|
||||||
|
|
||||||
|
CERTLIST[${i}]=${SUBJECT}
|
||||||
|
i=`expr $i + 1`
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "HERE: ${CERTLIST[2]}"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
|
|||||||
Reference in New Issue
Block a user