From c127d1cb04443ee7a829f4e30a034e3ef71f5749 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 4 Feb 2019 22:07:26 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 874233dd..b4494837 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -86,7 +86,8 @@ CERTRENEW(){ LISTCERTS(){ #DIVIDER true for d in /etc/letsencrypt/live/*/ ; do - echo "$d" + SUBJECTNAMES=$(openssl x509 -in ${d}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV) + echo "$d = ${SUBJECTNAMES}" done