aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2020-08-01 00:03:06 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2020-08-01 01:08:37 +0100
commit1474ab33956eefd9b75ef9a3e238ec7f855b8c7e (patch)
tree194509f3fd3314a7f3a7c8c4b4208f14712f9b64 /doc
parent700e8a8bb070d20ce6febde0c20dd9acde911856 (diff)
downloadtor-1474ab33956eefd9b75ef9a3e238ec7f855b8c7e.tar.gz
tor-1474ab33956eefd9b75ef9a3e238ec7f855b8c7e.zip
Add --format argument to --key-expiration option. #30045
Diffstat (limited to 'doc')
-rw-r--r--doc/man/tor.1.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/man/tor.1.txt b/doc/man/tor.1.txt
index edb8593142..6e504c8a82 100644
--- a/doc/man/tor.1.txt
+++ b/doc/man/tor.1.txt
@@ -174,16 +174,22 @@ The following options in this section are only recognized on the
If the file descriptor is not specified, the passphrase is read
from the terminal by default.
-[[opt-key-expiration]] **`--key-expiration`** [__purpose__]::
+[[opt-key-expiration]] **`--key-expiration`** [__purpose__] [**`--format`** **`iso8601`**|**`timestamp`**]::
The __purpose__ specifies which type of key certificate to determine
the expiration of. The only currently recognised __purpose__ is
"sign". +
+
Running **`tor --key-expiration sign`** will attempt to find your
signing key certificate and will output, both in the logs as well
- as to stdout, the signing key certificate's expiration time in
- ISO-8601 format. For example, the output sent to stdout will be
- of the form: "signing-cert-expiry: 2017-07-25 08:30:15 UTC"
+ as to stdout. The optional **`--format`** argument lets you specify
+ the time format. Currently, **`iso8601`** and **`timestamp`** are
+ supported. If **`--format`** is not specified, the signing key
+ certificate's expiration time will be in ISO-8601 format. For example,
+ the output sent to stdout will be of the form:
+ "signing-cert-expiry: 2017-07-25 08:30:15 UTC". If **`--format`** **`timestamp`**
+ is specified, the signing key certificate's expiration time will be in
+ Unix timestamp format. For example, the output sent to stdout will be of the form:
+ "signing-cert-expiry: 1500971415".
[[opt-dbg]] **--dbg-**...::
Tor may support other options beginning with the string "dbg". These