On Fri, 12 Aug 2011 12:40, li...@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.


_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to