SSL Certificate Monitor
Description
A lightweight, automated tool for monitoring SSL certificate expiration dates across multiple domains. The application provides clear, color-coded alerts for certificate status and approaching expiration dates, enabling proactive certificate management and preventing unexpected SSL certificate expirations. Designed with security best practices, the tool uses environment variables for sensitive data management and provides an easily extensible structure for monitoring additional domains.
Key Features
Real-time certificate expiration monitoring
Color-coded expiration alerts (30-day and 7-day warnings)
Secure configuration management
Support for multiple domains and subdomains
Human-readable date formatting
Graceful error handling
Technology Stack
Runtime Environment: Node.js
// README.md
# SSL Certificate Expiry Checker
A simple Node.js script to check SSL certificate expiry dates for multiple domains.
## Setup
## Environment Variables
- `DOMAIN_1`: First domain name
- `DOMAIN_1_CERT_PATH`: Path to first domain's certificate
- `DOMAIN_2`: Second domain name
- `DOMAIN_2_CERT_PATH`: Path to second domain's certificate
1. Install dependencies:
\```
npm install
\```
2. Configure environment variables:
- Copy `.env.example` to `.env`
- Update the values in `.env` with your domain names and certificate paths
## Usage
Run the script using:
\```
npm start
\```