Closed Jomik closed 5 years ago
It looks like you're using cygwin or something along those lines for seeing which GPG keys you have?
If you try using windows command prompt and C:\Users\Jonas Damtoft\Downloads\pass-winmenu\lib\GnuPG\bin\gpg --list-secret-keys --keyid-format LONG
or something like that, that would confirm whether they are available to pass-winmenu.
Ooooooh. Right, that makes sense. I did realize that powershell couldn't find it either. I guess I'll just have to add it to your bundled one :+1:
I will update once I verify.
You might want to take a look at the YAML file, you can override the directory of the GPG keys in there if you need it.
If you want to try out some GPG commands from the same context as pass-winmenu to see whether the environment you're working with is configured correctly, you can right click the notification area icon and click Open Shell
.
This will open a shell with the gpg
command pre-aliased to the same gpg.exe
and pointed at the same home directory as pass-winmenu will use when executing GPG commands.
In that shell, you can then call gpg -K
to see if GPG finds your private keys, and where it's looking for them.
It seems likely that in your case the gpg
instance called by pass-winmenu is looking for your keys in the incorrect location (otherwise I would have expected it to print a [DBG] [GPG]: [GNUPG:] KEY_CONSIDERED [key ID]
).
If you set the GNUPGHOME
environment variable to the path where your GPG keys are, pass-winmenu should find them. As @willpower232 mentioned, you can also set the gnupghome-override
configuration key to do the same thing.
Perfect. I changed the gnupghome-override
to match the gpg home that contained my secret key.
Thank you :)
It fails when decrypting, saying that I do not have a secret key with that ID. I do have that though.. :