summaryrefslogtreecommitdiffstats
path: root/tool/src/sq-usage.rs
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-17 16:01:33 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-17 16:17:51 +0100
commit3dc2d24bc3920d0216ff7f19e01e4e073a292a24 (patch)
tree551997319c32bc9c684401a72301dfe41d85bd6c /tool/src/sq-usage.rs
parent7cc22083ffc9874c39c957464bde9662e2fe8317 (diff)
tool: Add an option to specify the signing time.
- Add the option `--time` to the `sign` and `encrypt` subcommands to allow the user to set the signature's creation time. - Use the value of this option to select the signing keys.
Diffstat (limited to 'tool/src/sq-usage.rs')
-rw-r--r--tool/src/sq-usage.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/src/sq-usage.rs b/tool/src/sq-usage.rs
index be4b3695..d09e8e86 100644
--- a/tool/src/sq-usage.rs
+++ b/tool/src/sq-usage.rs
@@ -87,6 +87,8 @@
//! -r, --recipient <LABEL>... Recipient to encrypt for (can be given multiple times)
//! --recipient-key-file <CERT-FILE>... Recipient to encrypt for, given as a file (can be given multiple times)
//! --signer-key-file <TSK-FILE>... Secret key to sign with, given as a file (can be given multiple times)
+//! -t, --time <TIME> Chooses keys valid at the specified time and sets the signature's
+//! creation time
//!
//! ARGS:
//! <FILE> Sets the input file to use
@@ -111,6 +113,8 @@
//! OPTIONS:
//! -o, --output <FILE> Sets the output file to use
//! --secret-key-file <TSK-FILE>... Secret key to sign with, given as a file (can be given multiple times)
+//! -t, --time <TIME> Chooses keys valid at the specified time and sets the signature's creation
+//! time
//!
//! ARGS:
//! <FILE> Sets the input file to use