Update certs.inc

This commit is contained in:
2023-11-13 07:51:52 -06:00
parent a7aa9ff522
commit 4225fd6777

View File

@@ -280,7 +280,6 @@ LISTCERTS(){
trap exitspacing EXIT
while [ "${editc^}" != "E" ]; do
unset certid
echo -e "\033[K"
echo -e "\033[K"
echo -e "\033[K (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Yellow]}E${idsCL[Default]})xit"
@@ -301,7 +300,6 @@ LISTCERTS(){
exit 0
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
echo "HERE: ${certid} = '${CERTLIST[${certid}]}'"
cert=${CERTLIST[${certid}]}
certdir=${NM_CERTPATH}/live/${cert}
SUBJECT=$(${NCMD} openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)