# certstatus

> Certstat is a monitoring tool that will remind you when your ssl certificate is about to expire.

Latest version **1.0.1** (published 2017-07-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install certstatus
pnpm add certstatus
yarn add certstatus
bun add certstatus
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-07-23 |
| First published | 2017-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joenel de Asis |
| Maintainers | joeneldeasis |
| Keywords | ssl, certificate, domain, expiration |

## Links

- npm: https://www.npmjs.com/package/certstatus
- Repository: https://github.com/joeneldeasis/certstatus
- Homepage: https://github.com/joeneldeasis/certstatus#readme
- Issues: https://github.com/joeneldeasis/certstatus/issues
- npm.io page: https://npm.io/package/certstatus

## Dependencies (2)

- [mailgun-js](https://npm.io/package/mailgun-js.md) ^0.11.3
- [cert-expiry-check](https://npm.io/package/cert-expiry-check.md) ^0.2.0

## Recent versions

- 1.0.1 (latest) — 2017-07-23

## 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 <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!

---
_Source: https://npm.io/package/certstatus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
