gopass: Failed to fetch public key
Getting this whenever I use init
and either select a key from the menu or enter in a long ID.
I’m pretty sure I have this public key locally as it is from my own private keypair.
Is there any way to get additional debugging details so I can determine what this means? (I.e. failure of the gpg binary, maybe something wrong with my key, etc.)
Thanks.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (8 by maintainers)
Commits related to this issue
- GPG related fixes This commit fixes a number of issue around GPG, improves the GPG binary detection and covers some windows cases. Fixes #5 Fixes #334 Fixes #418 — committed to dominikschulz/gopass by deleted user 7 years ago
- GPG related fixes (#419) This commit fixes a number of issue around GPG, improves the GPG binary detection and covers some windows cases. Fixes #5 Fixes #334 Fixes #418 — committed to gopasspw/gopass by dominikschulz 7 years ago
- GPG related fixes (#419) This commit fixes a number of issue around GPG, improves the GPG binary detection and covers some windows cases. Fixes #5 Fixes #334 Fixes #418 — committed to kpitt/gopass by dominikschulz 7 years ago
Might not hurt to capture the version of gpg with
gpg --version
and do slightly different handling or offer a warning if two versions are detected. Could also do a “smart” detection where if the.gnupg/secring.db
exists that meansgpg
has been initialized, otherwise if the.gnupg/pubring.kbx
exists they are using gpg2. I also noticed if you ran gpg2 after gpg1 there is a.gnupg/.gpg-v21-migrated
file which reading their release notes strongly suggestions you stop using gpg if possible because gpg2 operations won’t update the gpg1 pub/priv keys for trust anymore.For some reason I had gpg1 installed also, I don’t need that so I uninstalled and it works for me. Might be worth just adding an override via an env variable in case this comes up for someone who doesn’t have a good workaround?
We’re collecting the first batch of feedback in develop and will soon do a point release. If you’re using go get you can check out master and build that anytime.