From 01285f909e43e8d6a48fbcc77bb5af53d567d8a2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 2 Jun 2016 18:38:10 +0200 Subject: gpg: Extend the --quick-gen-key command. * g10/keygen.c (quickgen_set_para): Add arg 'use'. (quick_generate_keypair): Add args 'algostr', 'usagestr', and 'expirestr'. Implement primary only key mode. (parse_algo_usage_expire): Set NBITS for the default algo. * g10/gpg.c (main): Extend --quick-gen-key command. Signed-off-by: Werner Koch --- doc/gpg.texi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index 9b0f1ba47..455995884 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -599,7 +599,7 @@ This section explains the main commands for key management @table @gnupgtabopt -@item --quick-gen-key @code{user-id} +@item --quick-gen-key @code{user-id} [@code{algo} [@code{usage} [@code{expire}]]] @opindex quick-gen-key This is a simple command to generate a standard key with one user id. In contrast to @option{--gen-key} the key is generated directly @@ -612,6 +612,13 @@ 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. +If any of the optional arguments are given, only the primary key is +created and no prompts are shown. For a description of these optional +arguments see the command @code{--quick-addkey}. The @code{usage} +accepts also the value ``cert'' which can be used to create a +certification only primary key; the default is to a create +certification and signing key. + 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