From cd0c5fdbed9376252009ae32420680cebb7f27b4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Feb 2019 00:00:54 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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