-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to fetch public key #5
Comments
Try |
You can use: |
Ah, so when I run the command displayed in the debug output, I see:
```
gpg: Note: '--with-colons' is not considered an option
gpg: Note: '--with-fingerprint' is not considered an option
gpg: Note: '--fixed-list-mode' is not considered an option
gpg: Note: '--list-public-keys' is not considered an option
tru::1:1451480729:0:3:1:5
pub:-:4096:1:0205FA0EFEAD8457:1409057771:1566737771::-:::scaESCA:::::::
fpr:::::::::B01CECF21E703749B083E1780205FA0EFEAD8457:
uid:-::::1409057771::50DF8E6034F328B63C1B03A18D0955E79A3DF349::Nolan
Darilek <nolan@thewordnerd.info>:::::::::
sub:-:4096:1:1FA166BC17ECABA2:1409057771:1566737771:::::e::::::
```
Wondering if the errors at the beginning of the output are causing this
to fail?
This is on Fedora 24 with the default gnupg packages installed.
Thanks.
|
Wait, never mind. Previous was a cut-and-paste error on my part, but I
did find something else:
Fedora 24 has both /usr/bin/gpg and /usr/bin/gpg2. On both, `gpg
--version` reports 2.1.13. Yet, if I call /usr/bin/gpg as gopass does,
the key isn't found. It is found when I call the binary as /usr/bin/gpg2.
Maybe there is a GPG 1.x compatibility mode that can't read 2.x keys?
|
Oh, nice find. This should be fixed by #9 |
Cool. And that isn't yet merged into master I assume? I'm using go get.
Thanks, looking forward to using this.
|
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. |
Got it. So I've been fumbling around on Google for a while and can't
find this. How do I go get from develop? All I find is that `go get`
retrieves from the head of the default branch. Is develop the default?
|
Simply use go get to fetch the repository to your machine. Once done go to $GOPATH/src/github.com/justwachcom/gopass. If you are in that directory you can see that it is a normal git repository. Run |
Got it, now I have a develop binary, but now it tells me no private keys
were found.
Error: No useable private keys found
There is definitely output for the command. Is it safe to paste said
output into this issue?
|
FWIW, I've created a repo with pass, then used gopass to pull entries
from it. So there doesn't appear to be anything wrong with my GPG setup,
just Gopass' ability to parse the keys in the init command.
|
I've tracked down the root cause: Depending on your GPG version and config GPG may mark trused but not signed keys as unknown. Thus To work around this limitation we currently disabled recipient checking and default to |
@dominikschulz I'm running into this problem with the latest version of gopass.
the same command with gpg2 works fine though.
|
I think this line https://github.com/justwatchcom/gopass/blob/master/backend/gpg/cli/gpg.go#L62 might be wrong. |
Probably. There's no gpg2 binary on my system. Aliasing gpg2 to gpg didn't
seem to help.
…On Tue, Oct 17, 2017 at 10:42 AM, Dominik Schulz ***@***.***> wrote:
gopass should use gpg2 if that's available.
I think this line https://github.com/justwatchcom/gopass/blob/
master/backend/gpg/cli/gpg.go#L62 might be wrong.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABTjZ4MLTvKRwjCRDqdpi90bqAWMGDBlks5stMrWgaJpZM4L1dGZ>
.
|
It looks like this was a change in the homebrew recipe when the version went from 2.1.21 to 2.2.1 |
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? |
Might not hurt to capture the version of gpg with |
This commit fixes a number of issue around GPG, improves the GPG binary detection and covers some windows cases. Fixes #5 Fixes gopasspw#334 Fixes gopasspw#418
This commit fixes a number of issue around GPG, improves the GPG binary detection and covers some windows cases. Fixes #5 Fixes gopasspw#334 Fixes gopasspw#418
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.
The text was updated successfully, but these errors were encountered: