This commit is contained in:
2023-11-13 07:45:47 -06:00
parent 173d7fcfef
commit 7420f315cc
2 changed files with 3 additions and 8 deletions

View File

@@ -270,10 +270,6 @@ LISTCERTS(){
i=`expr $i + 1`
done
for c in ${!CERTLIST[@]}; do
echo "HERE: ${c}=${CERTLIST[${c}]}"
done
if [ ${EDIT} -eq 1 ]; then
echo
DIVIDER . yellow ${dl}
@@ -284,7 +280,6 @@ LISTCERTS(){
trap exitspacing EXIT
while [ "${editc^}" != "E" ]; do
echo "C HERE: ${certid}"
unset certid
echo -e "\033[K"
echo -e "\033[K"
@@ -306,6 +301,7 @@ LISTCERTS(){
exit 0
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
ecbo "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)