This is Nixos.

I don't believe I have two binaries of gpg.

My Nixos config contains:

```nix

        programs.gnupg.agent = {
                enable = true;
                enableSSHSupport = true;
        };
```

and the package pinentry-gnome is installed.

I did `which` gpg and gpg2, and gpg2 was a symlink to gpg. So I don't believe I have another binary of gpg.


```

> gpg -K --with-subkey-fingerprint --with-keygrip  \
         --list-options show-pref-verbose  \
         C0156FFBE02B4E03F7792EB53D7F617CDE5C9A9B 2>&1| wl-copy

gpg: enabled compatibility flags:
gpg: using pgp trust model
sec#  ed25519 2023-03-03 [SC] [expires: 2025-03-02]
      C0156FFBE02B4E03F7792EB53D7F617CDE5C9A9B
      Keygrip = 38953FFD2BD558606473A90A6EDD5B26F03FA3CB
uid           [ultimate] Leo Coogan (Personal) <leocoogan@existential.beauty>
              Cipher: AES256, AES192, AES, 3DES
              AEAD: OCB
              Digest: SHA512, SHA384, SHA256, SHA224, SHA1
              Compression: ZLIB, BZIP2, ZIP, Uncompressed
              Features: MDC, AEAD, Keyserver no-modify
uid           [ultimate] Leo Coogan (Personal GPG key) <leocoo...@mailfence.com>
              Cipher: AES256, AES192, AES, 3DES
              AEAD: OCB
              Digest: SHA512, SHA384, SHA256, SHA224, SHA1
              Compression: ZLIB, BZIP2, ZIP, Uncompressed
              Features: MDC, AEAD, Keyserver no-modify
ssb   cv25519 2023-03-03 [E] [expires: 2025-03-02]
      143454E3276F11C51D01B35363D14EA6FDB00D9F
      Keygrip = 02EE4AA6089E9DEF7792F548C01FFD8C05F1EC21

```

On 1/22/24 02:48, Werner Koch wrote:
Hi!

[GNUPG:] KEY_CONSIDERED C0156FFBE02B4E03F7792EB53D7F617CDE5C9A9B 2
gpg: writing to stdout
[GNUPG:] BEGIN_SIGNING H10
gpg: signing failed: Bad secret key
Plase run

   gpg -K --with-subkey-fingerprint --with-keygrip  \
          --list-options show-pref-verbose  \
          C0156FFBE02B4E03F7792EB53D7F617CDE5C9A9B


Is there a second gpg binary on your system?

Is that Debian?


Salam-Shalom,

    Werner



_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to