Update nodemgmt-scripts.sh
This commit is contained in:
1 parent
58c209afa5
commit
0d709597e6
1 file changed
+2
@@ -125,6 +125,8 @@ LISTCERTS(){
|
||||
echo
|
||||
echo -e "${idsCL[LightGreen]}Current Certificates on Node...${idsCL[Default]}"
|
||||
DIVIDER
|
||||
echo -e "Subject Name Expires Alternate Subjects"
|
||||
DIVIDER
|
||||
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