Update nodemgmt-scripts.sh
This commit is contained in:
@@ -107,14 +107,9 @@ LISTCERTS(){
|
|||||||
|
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}"
|
echo -e "Certificate Subject: ${idsST[Bold]}${idsBG[Blue]}${SUBJECT}${idsST[Reset]}${idsBG[Default]}"
|
||||||
if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
|
#if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
|
||||||
|
if [ "$SUBJECTNAMES" != "" ]; then
|
||||||
echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
|
echo -e "Alternate Subject(s): ${idsCL[Cyan]}${SUBJECTNAMES}${idsCL[Default]}"
|
||||||
#anid=1
|
|
||||||
#for ALTNAME in "${SUBJECT_NAMES[@]}"; do
|
|
||||||
# if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
|
|
||||||
# echo -e "${alttitle} ${idsCL[Cyan]}${ALTNAME}${idsCL[Default]}"
|
|
||||||
# anid=`expr $anid + 1`
|
|
||||||
#done
|
|
||||||
fi
|
fi
|
||||||
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
if [ $DUEIN -gt $CERTEXPIRE ]; then
|
||||||
echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
echo -e "Expiration Date: ${idsST[Bold]}${idsCL[Red]}$(date -d @${CERTEXPIRE} '+%m-%d-%Y')${idsST[Reset]}${idsCL[Default]}"
|
||||||
@@ -123,13 +118,6 @@ LISTCERTS(){
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
||||||
#if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
|
|
||||||
# $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT},${SUBJECTNAMES2}
|
|
||||||
#else
|
|
||||||
# $CERT_DAEMON certonly --webroot -w /var/www/html -d ${SUBJECT}
|
|
||||||
#fi
|
|
||||||
#echo ""
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user