all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#74548: gnupg cannot use pinentry
@ 2024-11-26 20:12 Christopher Howard
  2024-11-28 21:15 ` Rodion Goritskov
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Howard @ 2024-11-26 20:12 UTC (permalink / raw)
  To: 74548

Something changed recently (last system reconfigure?) where the 'pass' software broke for me, apparently because gnupg is not finding pinentry, or not using it correctly for some reason.

```
christopher@theoden ~$ pass gatecode 
gpg: decryption failed: No secret key
christopher@theoden ~$ cd .password-store/
christopher@theoden ~/.password-store$ gpg -d gatecode.gpg 
gpg: encrypted with 3072-bit RSA key, ID F80E1B3D662D41E9, created 2021-12-14
      "Christopher Howard (pass) <christopher@librehacker.com>"
gpg: public key decryption failed: No pinentry
gpg: decryption failed: No secret key
```

I can work around this like so:

```
christopher@theoden ~/.password-store$ gpg --pinentry-mode loopback -d gatecode.gpg
<...asks for passcode on command line...>
gpg: encrypted with 3072-bit RSA key, ID F80E1B3D662D41E9, created 2021-12-14
      "Christopher Howard (pass) <christopher@librehacker.com>"
<...snipped for confidentiality...>
```

After this, I can then run pass for a little while, as credentials are cached or however that works. 

I might try a rollback or something and see if I can isolate this issue. Pinentry itself is available:

```
christopher@theoden ~$ which pinentry
/home/christopher/.guix-home/profile/bin/pinentry
```

``` guix describe
Generation 153	Nov 20 2024 09:29:24	(current)
  guix 804f8b2
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 804f8b2094f3214c5b129047c1b18a7779720496
```

Here is my system information:

```
christopher@theoden 
------------------- 
OS: Guix System x86_64 
Host: OptiPlex 9020 00 
Kernel: 6.11.8-gnu 
Uptime: 5 days, 1 hour, 14 mins 
Packages: 159 (guix-system) 
Shell: bash 5.1.16 
Resolution: 1920x1080 
DE: GNOME 
Theme: Adwaita [GTK2/3] 
Icons: Adwaita [GTK2/3] 
Terminal: launch-local-em 
CPU: Intel i5-4570 (4) @ 3.600GHz 
GPU: AMD ATI Radeon HD 8490 / R5 235X OEM 
GPU: Intel HD Graphics 
Memory: 3343MiB / 15907MiB 
```

-- 
📛 Christopher Howard
🚀 gemini://gem.librehacker.com
🌐 http://gem.librehacker.com

בראשית ברא אלהים את השמים ואת הארץ




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#74548: gnupg cannot use pinentry
  2024-11-26 20:12 bug#74548: gnupg cannot use pinentry Christopher Howard
@ 2024-11-28 21:15 ` Rodion Goritskov
  2024-11-29 17:22   ` Christopher Howard
  0 siblings, 1 reply; 4+ messages in thread
From: Rodion Goritskov @ 2024-11-28 21:15 UTC (permalink / raw)
  To: 74548


Hi!

How do you configure gpg agent?

I use home-gpg-agent-service-type (from the module (gnu home services
gnupg)) [1], where I use a configuration like
this (I use pinentry-qt):

(service home-gpg-agent-service-type
	 (home-gpg-agent-configuration (pinentry-program
                                        (file-append
                                         pinentry-qt
                                         "/bin/pinentry-qt"))))

[1] - https://guix.gnu.org/manual/devel/en/guix.html#GNU-Privacy-Guard




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#74548: gnupg cannot use pinentry
  2024-11-28 21:15 ` Rodion Goritskov
@ 2024-11-29 17:22   ` Christopher Howard
  2024-11-29 18:01     ` Christopher Howard
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Howard @ 2024-11-29 17:22 UTC (permalink / raw)
  To: Rodion Goritskov; +Cc: 74548

Rodion Goritskov <rodion.goritskov@gmail.com> writes:

> Hi!
>
> How do you configure gpg agent?
>
> I use home-gpg-agent-service-type (from the module (gnu home services
> gnupg)) [1], where I use a configuration like
> this (I use pinentry-qt):
>
> (service home-gpg-agent-service-type
> 	 (home-gpg-agent-configuration (pinentry-program
>                                         (file-append
>                                          pinentry-qt
>                                          "/bin/pinentry-qt"))))
>
> [1] - https://guix.gnu.org/manual/devel/en/guix.html#GNU-Privacy-Guard
>

Hi, thanks for the response. As far as I can tell, I don't have any pinentry configuration stuff explicity specified with in my guix home config or in my system config. I think, during the last few years before this suddenly broke, that pinentry-gnome3 would pop up whenever I first tried to access the "pass" utility.

I'll try adding that service, with pinentry-gnome3 or maybe pinentry-emacs.

-- 
Christopher Howard




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#74548: gnupg cannot use pinentry
  2024-11-29 17:22   ` Christopher Howard
@ 2024-11-29 18:01     ` Christopher Howard
  0 siblings, 0 replies; 4+ messages in thread
From: Christopher Howard @ 2024-11-29 18:01 UTC (permalink / raw)
  To: Rodion Goritskov; +Cc: 74548-done

After adding the home service for gnupg as recommended (but with -gnome3) everything seems to be working great. Thanks!

-- 
Christopher Howard




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-29 18:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 20:12 bug#74548: gnupg cannot use pinentry Christopher Howard
2024-11-28 21:15 ` Rodion Goritskov
2024-11-29 17:22   ` Christopher Howard
2024-11-29 18:01     ` Christopher Howard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.