Update certs.inc
This commit is contained in:
@@ -300,7 +300,7 @@ LISTCERTS(){
|
|||||||
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
elif [ "${CERTLIST[${certid}]}" != "" ]; then
|
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
|
||||||
cert=${CERTLIST[${certid}]}
|
cert=${CERTLIST[${certid}]}
|
||||||
certdir=${NM_CERTPATH}/live/${cert}
|
certdir=${NM_CERTPATH}/live/${cert}
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user