@asdsadw12312dwd2112xz/ssl-cert-check-cli
v1.0.0
Published
Check SSL certificate details and expiry for any domain
Maintainers
Readme
ssl-cert-check-cli
Check SSL certificate details and expiry for any domain from the command line.
Installation
npm install -g ssl-cert-check-cliUsage
# Check a single domain
ssl-check example.com
# Check multiple domains
ssl-check example.com google.com github.com
# JSON output
ssl-check --json example.com
# Custom port and timeout
ssl-check --port 8443 --timeout 5000 example.com
# Verify full certificate chain
ssl-check --check-chain example.comOptions
| Option | Description | Default |
|---|---|---|
| -p, --port <number> | Port to connect to | 443 |
| -t, --timeout <ms> | Connection timeout in milliseconds | 10000 |
| -j, --json | Output results as JSON | false |
| -c, --check-chain | Verify the full certificate chain | false |
Output
For each domain the tool displays:
- Subject and Issuer (CN, O)
- Valid From / To dates
- Days until expiry (color-coded: green >30d, yellow 7-30d, red <7d or expired)
- Serial number and SHA-256 fingerprint
- SAN domains (Subject Alternative Names)
- TLS protocol version
When checking multiple domains a summary table is printed at the end.
Exit Codes
0- All certificates are valid1- One or more certificates are expired or had connection errors
License
MIT
