Update certs.inc

This commit is contained in:
2023-11-12 22:49:53 -06:00
parent c6f6d5eb6a
commit 4b0da30f2c

View File

@@ -336,11 +336,26 @@ LISTCERTS(){
case "${editc}" in
1) echo -e "\033[K\n\033[K"
echo -en "\033[KEnter new Alternate Names: "
read -i "${SUBJECTNAMES}" -e SUBJECTNAMES
echo -en "\n\033[K${idsCL[LightCyan]}Are you sure you wish to delete the cert (y/N): ${idsCL[Default]}"
read -n 1 confirm
case "${confirm}" in
[Yy])
echo -en "${idsCL[LightCyan]}Removing certificate ... "
# DEL-SSL ${SITENAME} >/dev/null 2>&1
echo -e "${idsCL[LightGreen]}Done${idsCL[Default]}"
[ "${SEARCH}" != "0" ] && LISTCERTS -edit -search ${SEARCH} || LISTCERTS -edit
exit 0
;;
*) ;;
esac
echo -e "\033[5A"; for (( c=1; c<=5; c++ )); do echo -e "\033[K"; done; echo -e "\033[5A"
;;
2) [ "${monitored}" == "-" ] && monitored='Yes' || monitored='-';;
[Dd])
echo -e "\033[K\n\033[K"
echo -e "\033[K"
exit 0
;;
[Ee])
echo -e "\033[K"
exit 0