Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.74 KB

README.md

File metadata and controls

63 lines (46 loc) · 1.74 KB

hon-ssl-verification

Build Status Coverage Status

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.

Installation

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

Test

$ npm test

Usage

$ DOMAIN_NAME="domain.to.test" npm start

Options

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

Developers

License

Copyright (C) 2016 Health On the Net

This program is distributed under the MIT License.