update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user