how can i generate a keypair without reading anwsers from stdin?
Werner Koch
wk at gnupg.org
Sat Aug 13 11:04:31 CEST 2011
On Fri, 12 Aug 2011 12:40, lists at binarywings.net said:
> You can simply write the answers down like you would in an interactive
> session with gpg. Then feed this file with `gpg --gen-key ... < file`
*Don't do this* !
The interface presented there is for humans only and may change at any
time. In fact, it depends on certain options and has changed several
times in the past.
> gpg just reads from standard input. There is no difference between a
> user pressing return and a newline character in a text file.
There is one: gpg reads directly from the TTY unless you use --batch.
This allows the use of readline features and to disable echo during
passphrase entry.
Please use a parameter file as described in the manual. This is a well
defined interface and the way to control key generation.
Salam-Shalom,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gnupg-users
mailing list