I'm so sorry, Werner. I thought I'd checked the manual. Huge apologies. On Tuesday, 11 November 2014, Werner Koch <w...@gnupg.org> wrote:
> On Tue, 11 Nov 2014 12:56, nicholas.c...@gmail.com <javascript:;> said: > > > Is that still possible? In version 2.1, if no password is specified, > > gpg2 tries to call pin-entry and ask for a passphrase. > > A quick look into the manual (for me the source, but you may want to use > the online version) gives: > > @item %no-protection > Since GnuPG version 2.1 it is not anymore possible to specify a > passphrase for unattended key generation. The passphrase command is > simply ignored and @samp{%ask-passpharse} is thus implicitly enabled. > Using this option allows the creation of keys without any passphrase > protection. This option is mainly intended for regression tests. > > Thus by adding > > %no-protection > > to the parameter files you can create a key without a passphrase. > > > The second problem is that if gpg is called with a non-standard > > --homedir the whole thing fails with: > > > > gpg: agent_genkey failed: No pinentry > > Install a pinentry. I guess you put usually have a > "pinentry-program" line in your gpg-agent.conf. With a different home > directory the gpg-agent.conf of that home directory is used. I suggest > to install a symlink to pinentry into the installation dir of gnupg and > not to use "pinentry-program". > > > Shalom-Salam, > > 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