I get an error when I try to make a new key using "gpg2 --expert --full-gen-key"
The error is below:
"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.
gpg: agent_genkey failed: No pinentry
Key generation failed: No pin entry"
Any ideas?
Thanks,
Paul
This works for me. What is the contents of your ~/.gpg-agent.conf file?
Hmm, I deleted it and re-installed.
Still no MacGPG2 folder in /usr/local
Strange.
Related
Bugs:
#1pinentry-program /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
default-cache-ttl 600
max-cache-ttl 7200
I checked and I don’t even have a MacGPG2 folder, so I’m seeing my problem :)
Let me delete the gnupg-2.1 folder I see and re-install your program.
Related
Bugs:
#1That won't help. You'll have to delete the "pinentry-program" line in your gpg-agent.conf file. gpg-agent will find pinentry automatically.
Unfortunately that did not work. I removed the line got the same error. I even rebooted my computer and tried again. Same error.
Related
Bugs:
#1That's no surprise. You're no installing MacGPG2.
GPGOSX is installed in /usr/local/gnupg-2.1
Can you please post your complete gpg.conf and gpg-agent.conf files?
Related
Bugs:
#12 questions:
Which version of Mac OS X do you use?
Can you try this command and send me the output:
I’m running OS X 10.10.1 (14B25)
Below is the output.
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.
gpg: DBG: chan_4 <- OK Pleased to meet you
gpg: DBG: connection to agent established
gpg: DBG: chan_4 -> RESET
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION ttyname=/dev/ttys000
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION ttytype=xterm-256color
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION lc-ctype=en_US.UTF-8
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION lc-messages=en_US.UTF-8
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION allow-pinentry-notify
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> OPTION agent-awareness=2.1.0
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> AGENT_ID
gpg: DBG: chan_4 <- ERR 67109139 Unknown IPC command <GPG Agent="">
gpg: DBG: chan_4 -> RESET
gpg: DBG: chan_4 <- OK
gpg: DBG: chan_4 -> GENKEY
gpg: DBG: chan_4 <- S INQUIRE_MAXLEN 1024
gpg: DBG: chan_4 <- INQUIRE KEYPARAM
gpg: DBG: chan_4 -> D (genkey(ecc(curve 15:brainpoolP512r1)(flags nocomp)))
gpg: DBG: chan_4 -> END
gpg: DBG: chan_4 <- ERR 67108949 No pinentry <GPG Agent="">
gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: secmem usage: 1344/32768 bytes in 2 blocks
Selma5:~ thor$
Related
Bugs:
#1That's really strange. I wonder if the correct gpg-agent is started. I
get the impression that the started gpg-agent is not the one that comes
with GnuPG 2.1.
Can you send me the output of:
lsof | grep gpg-agent
It returned nothing.
Related
Bugs:
#1-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Could you please first try "gpg2 --expert --full-gen-key" (even if it
fails) and the retry the lsof command?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJUmukRAAoJEMk25cDiHiw+qw8H/jzmJX14W9a2Mg/mcCPwI+ak
YIgU8leOJgbydfWD3AsUSiK+8hrM3YrKpmB8ohCRsT05hhy1pKmhjlSYjB90EenI
hBQsB+3kv9pJ8oB4WMA/G0121yifnK4lbgOkmwu7t1oN94qtRjzK8GUb2nrt0wKg
XUwLacZe6fXlpL/BTZVj4+OQu1dNuW9PXBZ3BKu+RKoPN9IV2IYp8ICk8M6tvw9J
OrXshn70IpOeWmVr6vusfLaS5jJmra+NK0IeBEAhkm9ghRsqrjJhWmRxqwU17qwO
CeNIcBSFixuq8v/YC20MQAAf3eYL6RPkDVyoBCO6jR5HeocTE2q7uK8zHnVLmQE=
=k4k1
-----END PGP SIGNATURE-----
Selma5:~ thor$ lsof | grep gpg-agent
gpg-agent 1222 thor cwd DIR 1,4 1360 2 /
gpg-agent 1222 thor txt REG 1,4 388612 21975839 /usr/local/bin/gpg-agent
gpg-agent 1222 thor txt REG 1,4 758768 21970647 /usr/local/lib/libgcrypt.20.dylib
gpg-agent 1222 thor txt REG 1,4 88176 21968686 /usr/local/lib/libgpg-error.0.dylib
gpg-agent 1222 thor txt REG 1,4 82260 21972361 /usr/local/lib/libassuan.0.dylib
gpg-agent 1222 thor txt REG 1,4 20940 21967769 /usr/local/lib/libnpth.0.dylib
gpg-agent 1222 thor txt REG 1,4 622896 12465331 /usr/lib/dyld
gpg-agent 1222 thor txt REG 1,4 380137603 21598359 /private/var/db/dyld/dyld_shared_cache_x86_64h
gpg-agent 1222 thor 0r CHR 3,2 0t0 303 /dev/null
gpg-agent 1222 thor 1w CHR 3,2 0t0 303 /dev/null
gpg-agent 1222 thor 2w CHR 3,2 0t209 303 /dev/null
gpg-agent 1222 thor 3r PSXSEM 0t0 /npth-sceptre-1221-0
gpg-agent 1222 thor 4u unix 0x68e804963d842939 0t0 /Users/thor/.gnupg/S.gpg-agent
Selma5:~ thor$
Related
Bugs:
#1Finally! It's what I suspected -- that's the wrong gpg-agent.
GnuPG 2.1 requires its own gpg-agent, the one in /usr/local/bin must
be from some old installation. Do you remember which version of
MacGPG2 you had installed before?
I'd suggest you
1. killall gpg-agent
2. delete all gpg* files in /usr/local/bin except for gpg2 and gpgsm
Then retry.
Now I get this error.
gpg: failed to start agent '/usr/local/bin/gpg-agent': No such file or
directory
gpg: can't connect to the agent: No such file or directory
gpg: agent_genkey failed: No agent running
Key generation failed: No agent running
Selma5:~ thor$
On Wed, Dec 24, 2014 at 11:32 AM, Patrick Brunschwig pbrunschwig@users.sf.net wrote:
Related
Bugs:
#1I wonder what you did before or after installing gpgosx ...
Please send me the output of the following 4 commands:
type -p gpg2
ls -l /usr/local/bin/gpg*
env | grep GPG
echo $PATH
Prior to installing gpgosx I tried to compile it from the source.
I’m not sure what I messed up. Try not to waste too much time on it. I appreciate the help.
I followed the README and downloaded the following and installed them, so tried to.
"GnuPG 2.1 depends on the following GnuPG related packages:
Here is the output from the commands.
Selma5:~ thor$ type -p gpg2
/usr/local/bin/gpg2
Selma5:~ thor$
Selma5:~ thor$ ls -l /usr/local/bin/gpg*
-rwxr-xr-x 1 root admin 883776 Dec 21 17:10 /usr/local/bin/gpg2
-rwxr-xr-x 1 root admin 502460 Dec 21 17:10 /usr/local/bin/gpgsm
Selma5:~ thor$
Selma5:~ thor$ env | grep GPG
Selma5:~ thor$
Selma5:~ thor$ echo $PATH
/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Selma5:~ thor$
Related
Bugs:
#1This is not sending so I figured I’d forward it as well.
Related
Bugs:
#1I deleted gpg2 and gpgsm in usr/local/bin and re-installed. It now works fine. Please close this ticket. Thanks for all your help.