Update certs.inc

This commit is contained in:
2023-11-14 19:33:18 -06:00
parent 2e269a36e6
commit fa969e3650

View File

@@ -597,6 +597,25 @@ CHECK_NPMCERTS(){
}
CHECK-CERTS(){
HELP(){
echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] newcert {hostname}${idsCL[Default]} {"
width=35
printf "%-${width}s- %s\n" " {hostname}" "(optional: enter hostname for new cert, comma-delimited for multiple)"
printf "%-${width}s- %s\n" " -t|-test" "(enables dry-run mode for CertBot)"
echo -e "}\n"
exit 0
}
while [ $# -gt 0 ]; do
case "${1}" in
-newsite) NEWSITE=true;;
-expand) CERTEXPAND='--expand';;
-h|-help|--help)
;;
*) NEW_CERT=${1};;
esac
shift
done
if [ "${1}" == "check" ]; then
rm -f ${NM_LOGFOLDER}/ssl-cert-check.lastrun
${NM_FOLDER}/ssl-cert-check/ssl-cert-check -f ${NM_FOLDER}/conf/ssl-domain-checks.conf > ${NM_LOGFOLDER}/ssl-cert-check.lastrun