Update certs.inc
This commit is contained in:
@@ -280,7 +280,6 @@ LISTCERTS(){
|
|||||||
trap exitspacing EXIT
|
trap exitspacing EXIT
|
||||||
|
|
||||||
while [ "${editc^}" != "E" ]; do
|
while [ "${editc^}" != "E" ]; do
|
||||||
unset certid
|
|
||||||
echo -e "\033[K"
|
echo -e "\033[K"
|
||||||
echo -e "\033[K"
|
echo -e "\033[K"
|
||||||
echo -e "\033[K (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Yellow]}E${idsCL[Default]})xit"
|
echo -e "\033[K (${idsCL[Green]}R${idsCL[Default]})eload, (${idsCL[Yellow]}E${idsCL[Default]})xit"
|
||||||
@@ -301,7 +300,6 @@ LISTCERTS(){
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
|
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
|
||||||
echo "HERE: ${certid} = '${CERTLIST[${certid}]}'"
|
|
||||||
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