mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
dcc4cd8382
commit
01285f909e
4 changed files with 92 additions and 22 deletions
|
@ -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},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue