Improve documentation and cmdline help

This commit is contained in:
2022-10-10 07:53:45 +10:30
parent 7ec233f3bb
commit 8046f04e33
2 changed files with 11 additions and 7 deletions

View File

@@ -8,5 +8,6 @@ Certo checks one or several servers' SSL certificates for validity and impending
## TODO
Support for custom CAs
Example CRON/Jenkins jobs
* Support for custom CAs
* Example CRON/Jenkins jobs
* Async checks

View File

@@ -1,11 +1,14 @@
"""
Usage: certo [-v] [-j] <hostnames>... [-d DAYS|--days-to-expiration=DAYS] [-t SECONDS|--timeout=SECONDS]
Usage:
certo [-vj] <hostnames>... [-d DAYS|--days-to-expiration=DAYS] [-t SECONDS|--timeout=SECONDS]
certo -h | --help
Options:
-v Increase verbosity [default: False]
-j Output in JSON format [default: False]
-d DAYS --days-to-expiration=DAYS Warn about impending expiration if within DAYS of the cert's notAfter [default: 5]
-t SECONDS --timeout=SECONDS Timeout for SSL Handshake [default: 5]
-h --help Show this help.
-j Output in JSON format [default: False].
-v Increase verbosity [default: False].
-d DAYS --days-to-expiration=DAYS Warn about near expiration if within DAYS of the cert's notAfter [default: 5].
-t SECONDS --timeout=SECONDS Timeout for SSL Handshake [default: 5].
"""
import logging