Update sites.inc
This commit is contained in:
@@ -547,7 +547,7 @@ SITEINFO(){
|
|||||||
certpath=${certpath%/*}; certpath=${certpath#* }
|
certpath=${certpath%/*}; certpath=${certpath#* }
|
||||||
SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
SUBJECTNAMES=$(openssl x509 -in ${certpath}/cert.pem -noout -text|grep -oP '(?<=DNS:|IP Address:)[^,]+'|sort -uV)
|
||||||
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
CERTEXPIRE=$(date -d "$(: | openssl x509 -in ${certpath}/cert.pem -text | grep 'Not After' |awk '{print $4,$5,$7}')" '+%s');
|
||||||
|
SUBJECTNAMES=${SUBJECTNAMES//$'\n'/, }
|
||||||
else
|
else
|
||||||
ssl='-'
|
ssl='-'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user