Re: No pinentry but pinentry installed

2023-11-29 Thread NIIBE Yutaka
Hello,

Your configuration of pinentry-program is:

Caleb Herbert  wrote:
> /gnu/store/rfy36kapnhx9djhxdi3a54x5p2n097xv-pinentry-gtk2-1.2.1/bin/pinentry-gtk-2

But what you tested in your command line is:

> /gnu/stor/gnu/store/rfy36kapnhx9djhxdi3a54x5p2n097xv-pinentry-gtk2-1.2.1/bin/pinentry-gtk-2

Is it intended?  I mean that there is "/gnu/stor" prefix in your command
line.  If you would like to test your configuration, it should be:

/gnu/store/rfy36kapnhx9djhxdi3a54x5p2n097xv-pinentry-gtk2-1.2.1/bin/pinentry-gtk-2

(with no prefix of "/gnu/stor")
-- 

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


No pinentry but pinentry installed

2023-11-29 Thread Caleb Herbert

OS: GNU Guix System

caleb@miller ~ which pinentry
/home/caleb/.guix-home/profile/bin/pinentry
caleb@miller ~ cat ~/.gnupg/gpg-agent.conf
───┬───
   │ File: /home/caleb/.gnupg/gpg-agent.conf
   │ Size: 191 B
───┼───
   1   │ pinentry-program 
/gnu/store/rfy36kapnhx9djhxdi3a54x5p2n097xv-pinentry-gtk2-1.2.1/bin/pinentry-gtk-2

   2   │ default-cache-ttl 600
   3   │ max-cache-ttl 7200
   4   │ default-cache-ttl-ssh 1800
   5   │ max-cache-ttl-ssh 7200
───┴───
caleb@miller ~ gpg --export-secret-keys
gpg: key 1D8491A90EAAF79C2C4703847BD4B05F950655F8: error receiving key 
from agent: No pinentry - skipped
gpg: key 9759A4302192716BF627EB09F8FA778FF955FB20: error receiving key 
from agent: No pinentry - skipped
gpg: key DE84748EB625295D3DA758528B0AAA3568A35C3C: error receiving key 
from agent: No pinentry - skipped

gpg: WARNING: nothing exported
caleb@miller ~ 
/gnu/stor/gnu/store/rfy36kapnhx9djhxdi3a54x5p2n097xv-pinentry-gtk2-1.2.1/bin/pinentry-gtk-2


(pinentry-gtk-2:4807): Gtk-WARNING **: 13:13:03.314: Unable to locate 
theme engine in module_path: "adwaita",


(pinentry-gtk-2:4807): Gtk-WARNING **: 13:13:03.323: Unable to locate 
theme engine in module_path: "adwaita",

OK Pleased to meet you
^C
caleb@miller ~


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


Re: Cannot export SSH public key

2023-11-29 Thread Ingo Klöcker
On Mittwoch, 29. November 2023 03:52:36 CET Felix E. Klee wrote:
> So `gpg --card-status` imports [SC] and [E], but not [A]:
> 
> $ rm ~/.gnupg/private-keys-v1.d/*
> $ ls -a1 ~/.gnupg/private-keys-v1.d/
> .
> ..
> $ gpg --card-status
> […]
> Signature key : 7A0F E73D DB74 4F0F 9734  1DA7 1BE3 49D1 1B6E
> D589
>   created : 2023-06-29 03:50:43
> Encryption key: DBBD 3239 D0F1 4326 808D  FC8F 7CC0 2D68 D2E3
> 1736
>   created : 2023-06-29 03:50:43
> Authentication key: 7A0F E73D DB74 4F0F 9734  1DA7 1BE3 49D1 1B6E
> D589
>   created : 2023-06-29 03:50:43
> […]
> sec>  rsa4096/1BE349D11B6ED589  created: 2023-06-29  expires: never
> card-no: 0006 18698016
> ssb>  rsa4096/7CC02D68D2E31736  created: 2023-06-29  expires: never
> card-no: 0006 18698016
> ssb#  rsa4096/32B106F6877CC64B  created: 2023-11-22  expires: never
> $ gpg --list-keys --keyid-format LONG --with-keygrip yubi...@f76.eu
> pub   rsa4096/1BE349D11B6ED589 2023-06-29 [SC]
>   7A0FE73DDB744F0F97341DA71BE349D11B6ED589
>   Keygrip = 0E67508AC6866D82ABB95E0B53CF5D18DC48A786
> uid [ultimate] Felix E. Klee (YubiKey) 
> sub   rsa4096/7CC02D68D2E31736 2023-06-29 [E]
>   Keygrip = 07D6164F019D2EDF59C650992CF93776B2DD17F2
> sub   rsa4096/32B106F6877CC64B 2023-11-22 [A]
>   Keygrip = 9C67E5BBB72EF0BF2625792F8F134CE4FD961FF5
> $ ls -a1 ~/.gnupg/private-keys-v1.d/
> .
> ..
> 07D6164F019D2EDF59C650992CF93776B2DD17F2.key
> 0E67508AC6866D82ABB95E0B53CF5D18DC48A786.key
> 
> To me it looks like [A] is on the Yubikey, as it should.
> 
> *But how do I get the private key stub for [A] imported?*

If you compare the information for Signature key and Authentication key you'll 
notice that they are identical. Further, if you compare the information for 
Authentication key and the A subkey of you'll see that the key ID of the A 
subkey doesn't match the fingerprint of the Authentication key (which is 
logical because the Authentication key is identical to the SC key.

Hint: Add --with-fingerprint (maybe twice) to --list-keys to see the 
fingerprints of the subkeys.

I don't know how you did it, but it looks like you have overwritten the 
Authentication key on your Yubikey with the SC key. Or your Yubikey or gpg is 
seriously broken.

Regards,
Ingo

signature.asc
Description: This is a digitally signed message part.
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
https://lists.gnupg.org/mailman/listinfo/gnupg-users