expiration-check/README.md
Simon Vieille 63310a2f2e
All checks were successful
ci/woodpecker/push/build Pipeline was successful
fix descriptions
2024-07-24 09:14:35 +02:00

38 lines
1.2 KiB
Markdown

Expiration check
================
Checks the expiration dates of domains and certificates.
Domain expiration check uses [`RDAP`](https://about.rdap.org/) and fallback with a `whois` request.
## Usage
Go to [releases](https://gitnet.fr/deblan/expiration-check/releases) and download the latest version.
```text
$ expiration-check domains -d example.com -d other-example.com
+-------------------+------+---------------------+
| DOMAIN | DAYS | DATE |
+-------------------+------+---------------------+
| example.com | XX | YYYY-MM-DD HH:MM:SS |
| other-example.com | XXX | YYYY-MM-DD HH:MM:SS |
+-------------------+------+---------------------+
$ expiration-check certificates -d example.com -d other-example.com -d mail.example.com:993
+-------------------+------+---------------------+
| DOMAIN | DAYS | DATE |
+-------------------+------+---------------------+
| example.com | XX | YYYY-MM-DD HH:MM:SS |
| other-example.com | XXX | YYYY-MM-DD HH:MM:SS |
| mail.example.com | XXX | YYYY-MM-DD HH:MM:SS |
+-------------------+------+---------------------+
```
You can specify an ouput format using `--format` or `-f`:
- `table` (default)
- `json`
- `csv`
- `tsv`
- `html`
- `markdown`