Update nodemgmt-scripts.sh
This commit is contained in:
@@ -102,7 +102,7 @@ LISTCERTS(){
|
|||||||
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
|
||||||
anid=1
|
anid=1
|
||||||
for ALTNAME in "${SUBJECT_NAMES[@]}"; do
|
for ALTNAME in "${SUBJECT_NAMES2[@]}"; do
|
||||||
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
|
if [ "${anid}" = 1 ]; then alttitle='Alternate Subject(s):'; else alttitle=' '; fi
|
||||||
echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
|
echo -e "${alttitle} ${idsCL[LightCyan]}${ALTNAME}${idsCL[Default]}"
|
||||||
anid=`expr $anid + 1`
|
anid=`expr $anid + 1`
|
||||||
@@ -117,7 +117,7 @@ LISTCERTS(){
|
|||||||
if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
|
if [ "${#SUBJECT_NAMES[*]}" -gt 1 ]; then
|
||||||
echo "-d ${SUBJECT},${SUBJECTNAMES2}"
|
echo "-d ${SUBJECT},${SUBJECTNAMES2}"
|
||||||
else
|
else
|
||||||
echo "-d ${SUBJECT},${SUBJECTNAMES2}"
|
echo "-d ${SUBJECT}"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user