echo ACTIVE CERTIFICATES echo vhosts=`cut -f1 -d ' ' /etc/dehydrated/domains-* | sed -r 's/\*/wildcard/'` for vhost in $vhosts; do echo certificate for $vhost tmp=`echo Q | openssl s_client -connect $vhost:443 -servername $vhost 2>/dev/null` echo "$tmp" | openssl x509 -noout -text | grep -A2 Validity echo "$tmp" | openssl x509 -noout -text | grep DNS: # https://github.com/matteocorti/check_ssl_cert #check_ssl_cert -H $vhost echo unset tmp echo done; unset vhost unset vhosts echo echo DKIM STATS echo stats=/var/tmp/dkim-stats.`date +%s` echo -n writing $stats ... opendkim-stats /run/opendkim/stats > $stats && echo done unset stats echo