kx509: add time-to-live for kx509 -t option

It's useful to check for having so many seconds left in useful
credential lifetime.
This commit is contained in:
Nicolas Williams
2019-10-10 15:17:04 -05:00
parent 94bf464f8d
commit 0cc708ba36
3 changed files with 83 additions and 30 deletions

View File

@@ -270,8 +270,8 @@ command = {
option = {
long = "test"
short = "t"
type = "flag"
help = "exit successfully if certificate and private key are in credential cache"
type = "integer"
help = "check for certificate with at least given time left"
}
option = {
name = "private-key"