Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-04 22:10:45 -06:00
parent c127d1cb04
commit 6cc8ec1240

View File

@@ -87,7 +87,12 @@ LISTCERTS(){
#DIVIDER true
for d in /etc/letsencrypt/live/*/ ; do
SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
echo "$d = ${SUBJECTNAMES}"
IFS=' '
SUBJECTNAMES=(${SUBJECTNAMES})
unset IFS
echo "$d"
declare -p SUBJECTNAMES
echo ""
done