Improve examples for sq key subkey expire.

This commit is contained in:
Neal H. Walfield 2024-06-12 21:51:04 +02:00
parent d65cb0e078
commit 6b84d2db79
No known key found for this signature in database
GPG Key ID: 6863C9AD5B4D22D3

View File

@ -1542,11 +1542,20 @@ modified certificate to stdout.",
const SQ_KEY_SUBKEY_EXPIRE_EXAMPLES: Actions = Actions {
actions: &[
Action::Example(Example {
comment: "Make Bob's authentication subkey expire in six months.",
comment: "\
Import Alice's key.",
command: &[
"sq", "key", "import",
"alice-secret.pgp",
],
}),
Action::Example(Example {
comment: "\
Make Alice's authentication subkey expire in 6 months.",
command: &[
"sq", "key", "subkey", "expire", "6m",
"--cert-file", "bob-secret.pgp",
"--key", "6AEACDD24F896624",
"--cert", "EB28F26E2739A4870ECC47726F0073F60FD0CBF0",
"--key", "0D45C6A756A038670FDFD85CB1C82E8D27DB23A1",
],
}),
],