LukeSmithxyz / mutt-wizard

A system for automatically configuring mutt and isync with a simple interface and safe passwords
GNU General Public License v3.0
2.4k stars 382 forks source link

gpg: decryption failed: No secret key #653

Closed arawnx closed 3 years ago

arawnx commented 3 years ago

Upon running mw -y, the error gpg: decryption failed: No secret key is returned.

gpg --list-secret-keys returns:

-------------------------------
sec   ... [SC]
      ...
uid           [ultimate] ... <...@gmail.com>
ssb   ... [E]

The solution proposed in #98 does not work.

LukeSmithxyz commented 3 years ago

Do you get the same error when you run gpg -d ~/.local/share/muttwizard/your@email.com.gpg?

arawnx commented 3 years ago

That directory does not exist on my machine (Arch, running a fresh-ish install of LARBS). ~/.local/share/mail has something similar, but nothing ending in .gpg.

LukeSmithxyz commented 3 years ago

Sorry, I'm stupid, that's the old location.

Try: gpg -d ~/.password-store/your@email.com.gpg

arawnx commented 3 years ago

This solves the issue (although I'm not sure how long that'll last—updates soon).

Future readers should note that I could only find this file in ~/.local/share/password-store/<so-and-so>@gmail.com.gpg

LukeSmithxyz commented 3 years ago

Ah I see. This is nearly certainly causing people's issue in https://github.com/LukeSmithxyz/mutt-wizard/issues/650 too. I'll take care of it.

LukeSmithxyz commented 3 years ago

Wait, are you using LARBS as well?

arawnx commented 3 years ago

Yes I am

arawnx commented 3 years ago

This error returns after just a few minutes. Is there a way for the gpg -d command to be made to stay permanently?

LukeSmithxyz commented 3 years ago

Oh. Install and configure pam-gnupg. See the readme.

Looks like you for some reason don't have pinentry or a prompt to unlock your gpg key. On 21/02/17 08:01AM, arawnx wrote:

This error returns after just a few minutes. Is there a way for the gpg -d command to be made to stay permanently?

-- You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub: https://github.com/LukeSmithxyz/mutt-wizard/issues/653#issuecomment-780659788

arawnx commented 3 years ago

What service in /etc/pam.d should I add the pam-gnupg whitelist to?