certstatus
v1.0.1
Published
Certstat is a monitoring tool that will remind you when your ssl certificate is about to expire.
Downloads
54
Maintainers
Readme
certstatus
A tool that will remind you in your email when your ssl certificate is about to expire.
Let's start!
Clone the repo git clone https://github.com/joeneldeasis/certstatus.git
Then do npm install inside certstatus directory.
Signup to MailGun: https://app.mailgun.com/new/signup/
Add and verify your domain to send to any email: https://app.mailgun.com/app/domains
Change api_key with your mailgun api key and replace maildomain with your verified domain
const api_key = 'api-key';
const maildomain = 'verified-domain-here';You may also change the threshold if your certificate is less than to N days of expiration
Also change from and to to whatever satisfies you
const email = {
from: 'Certificate Notifier <[email protected]>',
to: '[email protected]'
};STRIP https:// or http:// and place all your domain list in domains.txt file line by line
Example of domains.txt:
www.google.com
www.gmail.com
www.facebook.comAnd lastly, add this to your cron to run every N days
0 0 */5 * * node /location/of/certstat/certstatus.js
That's all folks!
