Update nodemgmt-scripts.sh
This commit is contained in:
@@ -124,6 +124,7 @@ LISTCERTS(){
|
|||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
||||||
|
DIVIDER true
|
||||||
for certdir in /etc/letsencrypt/live/*/ ; do
|
for certdir in /etc/letsencrypt/live/*/ ; do
|
||||||
SUBJECT=$(openssl x509 -in ${certdir}/cert.pem -noout -subject|grep -oP '(?<=CN = )[^,]+'|sort -uV)
|
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)
|
SUBJECTNAMES=$(openssl x509 -in ${certdir}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
|
|||||||
Reference in New Issue
Block a user