"OK Google, set a reminder 1 year from now to...." Nice write up. But a bit over kill for something that you can solve with a calendar item. ...Doesn't actually have to be on google though ;)
I have at least a dozen projects, clients, side projects, personal domains, etc., each with a TLS cert. Plus at least 5 certs for work. All of them have different expirations. Some are on Let's Encrypt without auto renew at the moment, meaning they have varying expirations less than 90 days from now. I would love just a simple iPhone app where I can list my domains and get push notices at 30 or 7 days from expiration…
Get SSL Expiration Alerts with AWS Lambda and CloudWatch
11–17 of 17 posts
Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#12That's fairly easy to do in a cron job: TARGET="mysite.example.net"; \ RECIPIENT="hostmaster@mysite.example.net"; \ DAYS=7; \ echo "checking if $TARGET expires in less than $DAYS days"; \ expirationdate=$(date -d "$(: | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null \ | openssl x509 -text \ | grep 'Not After' \ |awk '{print $4,$5,$7}')" '+%s'); \ in7days=$(($(date +%s) + (86400*$DAYS))); \ if […
Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#13Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#14"OK Google, set a reminder 1 year from now to...." Nice write up. But a bit over kill for something that you can solve with a calendar item. ...Doesn't actually have to be on google though ;)
Sure, that's fine for an individual, but what about for a business? If the person who has an entry in his or her calendar leaves and forgets to remind someone else, what happens then?
Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#15Earlier quoted context omitted.
I have at least a dozen projects, clients, side projects, personal domains, etc., each with a TLS cert. Plus at least 5 certs for work. All of them have different expirations. Some are on Let's Encrypt without auto renew at the moment, meaning they have varying expirations less than 90 days from now. I would love just a simple iPhone app where I can list my domains and get push notices at 30 or 7 days from expiration…
http://www.site24x7.com/ has a cert monitor that does exactly what you want and more. If you have 10 domains it will run you $10/month. (Although you probably also want an uptime checker, so really it's more like 5 domains on the $10/month plan.)
Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#16 /usr/lib/nagios/plugins/check_http --ssl -C 14 -H '$HOSTADDRESS$' -I '$HOSTADDRESS$'Re: Get SSL Expiration Alerts with AWS Lambda and CloudWatch
#17Why can't you just read any cert regardless of where it is hosted and send an alert when it is under a week? Why tie it to AWS?
You're only cool if you're paying Amazon.