This Rust application checks the expiration date of TLS certificates for given URLs. It reads URLs from a file, connects to each via TLS, and provides a color-coded output based on certificate validity.
- Reads a list of URLs from a file (
urls.txt). - Connects securely to retrieve certificate expiration dates.
- Outputs results in a color-coded format:
- 🟥 Red: Certificate expired.
- 🟧 Orange: Expires within 24 hours.
- 🟨 Yellow: Expires within one week.
- 🟩 Green: Certificate valid.
- Rust & Cargo installed.
- OpenSSL installed (
brew install opensslon macOS if needed).
git clone https://github.com/Farsheed/certcheck.git
cd certcheckIn the project root, add the URLs you want to check to urls.txt one URL per line.
You can omit the protocol (https) from the URL.
cargo run- Ensure OpenSSL is properly linked if you encounter build issues.
- This application assumes all timestamps are in UTC/GMT.
