From ea186540db5b418bc6f6e5ca90337672c9981c88 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 23 Jul 2014 15:12:43 +0200 Subject: gpg: Add command --quick-gen-key * g10/gpg.c (aQuickKeygen): New. * g10/misc.c (is_valid_user_id): New stub. * g10/keygen.c (quickgen_set_para): New. (quick_generate_keypair): New. -- Note that the validation of the specified user id has not yet been implemented. --- doc/gpg.texi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index 3370ff2c4..e0b0039a9 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -592,14 +592,29 @@ This section explains the main commands for key management @table @gnupgtabopt +@ifset gpgtwoone +@item --quick-gen-key @code{user-id} +@opindex quick-gen-key +This is simple command to generate a standard key with one user id. +In contrast to @option{--gen-key} the key is generated directly +without the need to answer a bunch of prompts. Unless the option +@option{--yes} is given, the key creation will be canceled if the +given user id already exists in the key ring. + +If invoked directly on the console without any special options an +answer to a ``Continue?'' style confirmation prompt is required. In +case the user id already exists in the key ring a second prompt to +force the creation of the key will show up. +@end ifset + @item --gen-key @opindex gen-key Generate a new key pair. This command is normally only used interactively. -There is an experimental feature which allows you to create keys in -batch mode. See the file @file{doc/DETAILS} in the source distribution -on how to use this. +There is also a feature which allows you to create keys in batch +mode. See the file @file{doc/DETAILS} in the source distribution on +how to use this. @item --gen-revoke @code{name} @opindex gen-revoke -- cgit v1.2.3