#!/bin/sh
BINARY='/home/andyw/check_cert_expiry.pl'
TEMP=check_cert_temp
/bin/dd if=/dev/null of=$TEMP 2>/dev/null
for i in `cat ssl_hosts`; do $BINARY $i >>$TEMP; done

echo "A list of hosts I couldn't get a cert for, for some reason:"
/bin/grep "Failed" check_cert_temp
echo ""
echo ""
echo "These have expired:"
/bin/grep "EXPIRED" check_cert_temp
echo ""
echo ""
echo "These don't have long left:"
/bin/grep "(only " check_cert_temp
echo ""
echo ""
echo "These are funky, for now:"
/bin/grep "days)" check_cert_temp | /bin/grep -v "(only "

