From dd3dde07a9a46130ac01d849f8edf0566e44f11f Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 13 Dec 2016 16:30:47 +0100 Subject: g10: Create expiring keys in quick key generation mode. * doc/gpg.texi: Document that fact. * g10/keygen.c (quick_generate_keypair): Use a default value. * tests/openpgp/quick-key-manipulation.scm: Test that fact. GnuPG-bug-id: 2701 Signed-off-by: Justus Winter --- doc/gpg.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index 3f54fe2b0..c7c7db64e 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -630,6 +630,12 @@ For a description of these optional arguments see the command ``cert'' which can be used to create a certification only primary key; the default is to a create certification and signing key. +The @code{expire} argument can be used to specify an expiration date +for the key. Several formats are supported; commonly the ISO +YYYY-MM-DD format is used. The values ``never'', ``none'' can be used +for no expiration date. Not specifying a value, or using ``-'' +results in a key expiring in a reasonable default interval. + If this command is used with @option{--batch}, @option{--pinentry-mode} has been set to @code{loopback}, and one of the passphrase options (@option{--passphrase}, -- cgit v1.2.3