Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-06 12:21:05 -06:00
parent 6837f6ceef
commit 7048386111

View File

@@ -119,7 +119,9 @@ NIGHTLYRENEW(){
}
LISTCERTS(){
DIVIDER true
if [ -z $action ] || [ "${action}" = "gui" ]; then
DIVIDER true
fi
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)