I installed gnupg under macOS 10.12.6 via brew install gnupg ( gpg -version correctly works). When I tried to generate a 4096bit RSA key via gpg2 -full-generate-key, it hangs at ' We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the disks) during the prime generation; this gives the random number generator a better chance to gain enough entropy.' No + appears, although I heavily used the disks for 15min. Is this a bug? This used to work (but my last working version I tried was gpg 1.4.19). There are various posts addressing Linux (e.g., or ), but nothing which immediately carries over to macOS.
My /.gnupg looks quite differently than under 1.4.19: it contains the empty files S.gpg-agent, S.gpg-agent.browser, S.gpg-agent.extra and S.gpg-agent.ssh, a file named pubring.kbx and an empty folder named private-keys-v1.d. Under 1.4.19, it used to contain the files gpg.conf, pubring.gpg, randomseed, secring.gpg.
9 5 2 1 0 For Health
Run cmd - Test - Encrypt to '15DE5E40' & Sign with '15DE5E40' - echo XXXXXX /usr/bin/gpg -sign -default-key 15DE5E40 -passphrase-fd 0 -batch -r 15DE5E40 -status-fd 1 -o /tmp/duply.54390ENC -e /usr/bin/duply 2&1 If I run that by hand, I unexpectedly get a gpg-agent/pinentry GTK dialog popup on my desktop instead of the passphrase being accepted from STDIN; if I downgrade the gnupg package (after killing gpg-agent) + dirmngr then everything works as expected (the passphrase is accepted from STDIN). The /usr/bin/pinentry symlink points to pinentry-gtk-2 in both packages, and I don't use and fancy gnupg configs. $ egrep -v '^(# $)'.gnupg/gpg.conf.gnupg/gpg-agent.conf:default-cache-ttl 300.gnupg/gpg-agent.conf:max-cache-ttl 999999.gnupg/gpg.conf:require-cross-certification.gnupg/gpg.conf:keyserver hkp://keys.gnupg.net I tried adding 'pinentry-program /usr/bin/pinentry-curses' as a test and recycled gpg-agent, it 'worked' but just hung on an input screen - took a look upstream and see a bunch of 2.1.0 issues but nothing that seems applicable: Anyone have an idea what else to try?
Gnupg 2.1.0 For Mac Mac
Nothing in the gpg-agent man page looked applicable, I'm sure it's something to do with 2.1.0 upstream. Last edited by TE (2014-11-28 16:39:21).