Check good health of server and SSL certificate from a given domain name.
This package uses https://github.com/keithws/node-ssllabs which is an implementation of the SSL Labs API.
hon-ssl-verification has been tested on node v0.12 up to v6.3. Due to node-ssllabs failing in node v0.10, hon-ssl-verification does not work for this version.
$ npm install
$ npm test
$ DOMAIN_NAME="domain.to.test" npm start
Variable | Description |
---|---|
DOMAIN_NAME |
domain to test |
MINIMUM_GRADE |
minimum grade to pass (default C ) |
ALERT_MONTHLY |
first alert date (default 30 days) |
ALERT_DAILY |
daily alerts (default 7 days) |
MAIL_URI |
resource to webmail server |
MAIL_API |
resource API key (optional) |
MAIL_FROM |
from email |
MAIL_TO |
email recipients |
VERBOSE |
output more details |
EXIT_ON_EXPIRED_DATE |
if set, will return exit 1, if certificate has expired |
EXIT_ON_INSUFFICIENT_GRADE |
if set, will return exit 1, if certificate does not meet the minimum grade |
- Pierre REPETTO-ANDIPATIN [email protected]
Copyright (C) 2016 Health On the Net
This program is distributed under the MIT License.