Update nodemgmt-scripts.sh
This commit is contained in:
@@ -86,7 +86,8 @@ CERTRENEW(){
|
|||||||
LISTCERTS(){
|
LISTCERTS(){
|
||||||
#DIVIDER true
|
#DIVIDER true
|
||||||
for d in /etc/letsencrypt/live/*/ ; do
|
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
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user