diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 92d52ed4..bf2087d6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -114,10 +114,12 @@ LISTCERTS(){ echo -e "Expiration Date: ${idsCL[Green]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsCL[Default]}" fi echo "" + + if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then - echo "-d ${SUBJECT},${SUBJECTNAMES2}" + $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT},${SUBJECTNAMES2} else - echo "-d ${SUBJECT}" + $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT} fi echo "" done