Update certs.inc

This commit is contained in:
2023-11-13 07:46:07 -06:00
parent 7420f315cc
commit 7096f8f6eb

View File

@@ -301,7 +301,7 @@ LISTCERTS(){
exit 0
elif [ "${certid}" != "" ] && [ "${CERTLIST[${certid}]}" != "" ]; then
ecbo "HERE: ${certid} = '${CERTLIST[${certid}]}'"
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)