certstatus

1.0.1 • Public • Published

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 <no-reply@your-domain.net>',
    to: 'your-email@your-domain.com'
};

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.com

And lastly, add this to your cron to run every N days

0 0 */5 * * node /location/of/certstat/certstatus.js

That's all folks!

Package Sidebar

Install

npm i certstatus

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • joeneldeasis