https://github.com/idesyatov/ssl-watch
SSLWatch is a simple command-line tool to check the SSL certificate
https://github.com/idesyatov/ssl-watch
cli ssl-cert tools
Last synced: 4 months ago
JSON representation
SSLWatch is a simple command-line tool to check the SSL certificate
- Host: GitHub
- URL: https://github.com/idesyatov/ssl-watch
- Owner: idesyatov
- License: mit
- Created: 2025-01-02T18:43:24.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-11-09T17:39:48.000Z (9 months ago)
- Last Synced: 2026-01-14T14:51:27.135Z (6 months ago)
- Topics: cli, ssl-cert, tools
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ssl-watch
ssl-watch is a simple command-line tool to check the SSL certificate of a domain or a local certificate file. It retrieves and displays information about the SSL certificate, including the subject, issuer, expiration date, and the number of days remaining until expiration.
## Usage
To use ssl-watch, you need to specify either the domain you want to check or the path to a local certificate file. You can also optionally specify a port and an IP address. Additionally, you can use the `-short` flag to output only the number of days remaining until the certificate expires.
### Command Line Arguments
- `-domain `: The domain to check (required if `-certfile` is not specified).
- `-certfile `: The path to the local certificate file (required if `-domain` is not specified).
- `-port `: The port to connect to (default is 443).
- `-ipaddr `: The IP address to connect to (optional).
- `-short`: Output only the number of days remaining until certificate expiration (optional).
### Examples
```bash
# Check the SSL certificate for a domain
ssl-watch -domain example.com
# Check a local certificate file
ssl-watch -certfile /path/to/certificate.crt
# Check a domain with a specific port
ssl-watch -domain example.com -port 8443
# Check a domain using a specific IP address
ssl-watch -domain example.com -ipaddr 192.0.2.1
# Check a domain and output only the number of days remaining until expiration
ssl-watch -domain example.com -short
# Check a local certificate file and output only the number of days remaining until expiration
ssl-watch -certfile /path/to/certificate.crt -short
# Check a domain with a specific port and IP address
ssl-watch -domain example.com -port 8443 -ipaddr 192.0.2.1
```
## Installation
You can install ssl-watch using the following command:
```bash
go install github.com/idesyatov/ssl-watch@latest
```
Also download, modify and compile it yourself as you wish