Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 12:22:19 -06:00
parent 178bae5a81
commit 27e431aa5f

View File

@@ -124,7 +124,7 @@ LISTCERTS(){
fi
echo
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
DIVIDER true
DIVIDER
for certdir in /etc/letsencrypt/live/*/ ; do
SUBJECT=$(openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
SUBJECTNAMES=$(openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)