Update nodemgmt-scripts.sh
This commit is contained in:
@@ -122,6 +122,8 @@ LISTCERTS(){
|
||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||
DIVIDER true
|
||||
fi
|
||||
echo
|
||||
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user