Skip to content

Check expiration date of SSL certificates periodically, then remind you via email.

Notifications You must be signed in to change notification settings

tkawachi/sslreminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sslreminder

Check expiration date of SSL certificates periodically, then remind you via email.

Set up

This is primary intended to work on Heroku. Thanks to Heroku, sslreminder can work as free of charge.

Deploy

By following commands, sslreminder checks 3 hosts 1.example.com, 2.example.com and 3.example.com every day. It sends reminder to [email protected] and [email protected] if any of certificates expire in 30 days.

git clone [email protected]:tkawachi/sslreminder.git
cd sslreminder
heroku create -b https://github.com/kr/heroku-buildpack-go.git
heroku config:set HOSTS=1.example.com,2.example.com,3.example.com \
  [email protected],[email protected]
heroku addons:add sendgrid:starter
heroku ps:scale clock=1

You can ensure that it works by looking logs.

heroku logs

If you want to be reminded earlier, set THRESHOLD_DAYS.

# Remind me 60 days before the expiration
heroku config:set THRESHOLD_DAYS=60

From address of email is defaulted to the first address of EMAILS. You can change it by setting FROM.

heroku config:set [email protected]

About

Check expiration date of SSL certificates periodically, then remind you via email.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages