all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gpg: problem with the agent: No pinentry
@ 2022-09-02  0:09 Luis Felipe
  2022-09-02  7:17 ` Reza Housseini
  2022-09-02  9:12 ` Cairn
  0 siblings, 2 replies; 5+ messages in thread
From: Luis Felipe @ 2022-09-02  0:09 UTC (permalink / raw)
  To: help guix


[-- Attachment #1.1: Type: text/plain, Size: 581 bytes --]

Hi,

I'm on Guix system 16a6cbe and I'm having trouble using gpg from the terminal because pretty much every command I run fails with the message "No pinentry" (creating new keys, encrypting files, etc.).

Tab-completing "pinentry" on a terminal I see I have:

  pinentry
  pinentry-curses
  pinentry-gnome3
  pinentry-gtk-2

I don't recall this happening to me before. Anyone has had this issue or any clue about how to solve it?

For what it's worth, creating GPG keys from GNOME Seahorse does work.

---
Luis Felipe López Acevedo
https://luis-felipe.gitlab.io/

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 505 bytes --]

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

* Re: gpg: problem with the agent: No pinentry
  2022-09-02  0:09 gpg: problem with the agent: No pinentry Luis Felipe
@ 2022-09-02  7:17 ` Reza Housseini
  2022-09-02  8:55   ` Sébastien Rey-Coyrehourcq
  2022-09-02 20:00   ` Luis Felipe
  2022-09-02  9:12 ` Cairn
  1 sibling, 2 replies; 5+ messages in thread
From: Reza Housseini @ 2022-09-02  7:17 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 480 bytes --]

 > I don't recall this happening to me before. Anyone has had this issue 
or any clue about how to solve it?

I have this in my ~/.gnupg/gpg-agent.conf file:

default-cache-ttl 600
max-cache-ttl 7200
enable-ssh-support
use-agent
pinentry-program /run/current-system/profile/bin/pinentry-gnome3

Hope this solves your problem.

Cheers
Reza

-- 
Reza Housseini

This message is signed with my GnuPG key:

     C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* Re: gpg: problem with the agent: No pinentry
  2022-09-02  7:17 ` Reza Housseini
@ 2022-09-02  8:55   ` Sébastien Rey-Coyrehourcq
  2022-09-02 20:00   ` Luis Felipe
  1 sibling, 0 replies; 5+ messages in thread
From: Sébastien Rey-Coyrehourcq @ 2022-09-02  8:55 UTC (permalink / raw)
  To: Reza Housseini; +Cc: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 768 bytes --]

About GPG + Gnome and Seahorse, the package modification  into dotfile ~ of dominicm work very well :

Redefine gnome keyring :
<https://git.sr.ht/~dominicm/dotfiles/tree/main/item/Packages.org#L25>

Other package (seahorse, ssh + gpg, etc.) :
<https://git.sr.ht/~dominicm/dotfiles/tree/main/item/System.org>

Best regards,

Reza Housseini <reza.housseini@gmail.com> writes:

>> I don’t recall this happening to me before. Anyone has had this issue or any
>  clue about how to solve it?
>
> I have this in my ~/.gnupg/gpg-agent.conf file:
>
> default-cache-ttl 600
> max-cache-ttl 7200
> enable-ssh-support
> use-agent
> pinentry-program /run/current-system/profile/bin/pinentry-gnome3
>
> Hope this solves your problem.
>
> Cheers
> Reza

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 889 bytes --]

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

* Re: gpg: problem with the agent: No pinentry
  2022-09-02  0:09 gpg: problem with the agent: No pinentry Luis Felipe
  2022-09-02  7:17 ` Reza Housseini
@ 2022-09-02  9:12 ` Cairn
  1 sibling, 0 replies; 5+ messages in thread
From: Cairn @ 2022-09-02  9:12 UTC (permalink / raw)
  To: Luis Felipe; +Cc: help guix


[-- Attachment #1.1: Type: text/plain, Size: 315 bytes --]

I remember running into some sort of issue as well.

Chiming in with Reza, here's my `~/.gnupg/gpg-agent.conf` file:

    allow-loopback-pinentry

And my `~/.gnupg/gpg.conf` file:

    use-agent
    pinentry-mode loopback

The result is a prompt for my password directly in the terminal. Hope this helps.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 855 bytes --]

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

* Re: gpg: problem with the agent: No pinentry
  2022-09-02  7:17 ` Reza Housseini
  2022-09-02  8:55   ` Sébastien Rey-Coyrehourcq
@ 2022-09-02 20:00   ` Luis Felipe
  1 sibling, 0 replies; 5+ messages in thread
From: Luis Felipe @ 2022-09-02 20:00 UTC (permalink / raw)
  To: Reza Housseini; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 58 bytes --]

Reza, Sébastien, Cairn, thanks to your help it works now.

[-- Attachment #1.2: publickey - luis.felipe.la@protonmail.com - 0x12DE1598.asc --]
[-- Type: application/pgp-keys, Size: 1722 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

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

end of thread, other threads:[~2022-09-02 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02  0:09 gpg: problem with the agent: No pinentry Luis Felipe
2022-09-02  7:17 ` Reza Housseini
2022-09-02  8:55   ` Sébastien Rey-Coyrehourcq
2022-09-02 20:00   ` Luis Felipe
2022-09-02  9:12 ` Cairn

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.