Code: Select all
gpg -d pinkoder.txt.asc
gpg: encrypted with 2048-bit ELG key, ID E922C8FF45DC1ACD, created 2005-03-01
"Gösta Ljungdahl (foi) <gostal@foi.se>"
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key
Code: Select all
gpg --list-secret-keys
/home/gostal/.gnupg/pubring.gpg
-------------------------------
sec# dsa1024 2005-03-01 [SC]
...
uid [ultimate] Gösta Ljungdahl (foi) <gostal@foi.se>
uid [ultimate] Gösta Ljungdahl (FOI standard) <gostal@foi.se>
uid [ultimate] Gösta Ljungdahl (Residence) <goslju@gmail.com>
ssb elg2048 2005-03-01 [E]
Edit: Tried a few things like changing the pinentry program in ~/.gnupg/gpg-agent.conf but it didn't have any effect so eventually I got to the windows standard trick when programs don't work that is I rebooted the machine and that was all it took. Likely I could have avoided rebooting if only I had known which processes are involved but the gpg man pages weren't all that transparent.