Your message dated Fri, 18 Apr 2025 15:20:28 +0200
with message-id <[email protected]>
and subject line Closing due to lack of further info
has caused the Debian Bug report #928894,
regarding custom keyring is not honoured
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
928894: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928894
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gpg
Version: 2.2.12-1
Severity: normal

Hi,

--recv-keys does not seem to honour the keyring options, so the received
key ends up in the wrong keyring:


$ touch ~/mnt/tools/gitea-keys.gpg
$ gpg  --no-default-keyring  --keyring ~/mnt/tools/gitea-keys.gpg --recv-keys 
CC64B1DB67ABBEECAB24B6455FC346329753F4B0
gpg: key 0x2D9AE806EC1592E2: 6 signatures not checked due to missing keys
gpg: key 0x2D9AE806EC1592E2: public key "Teabot <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
$ gpg --list-options show-keyring -k [email protected]
gpg: please do a --check-trustdb
Keyring: /home/toni/.gnupg/pubring.gpg
--------------------------------------
pub   rsa4096/0x2D9AE806EC1592E2 2018-06-24 [SC] [expires: 2020-06-23]
      7C9E68152594688862D62AF62D9AE806EC1592E2
uid                   [ unknown] Teabot <[email protected]>
sub   rsa4096/0x1FBE01D7CBADB9A0 2018-06-24 [E] [expires: 2020-06-23]
sub   rsa4096/0x5FC346329753F4B0 2018-06-24 [S] [expires: 2019-06-24]

$



Cheers,
Toni



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 
'stable'), (70, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE, TAINT_SOFTLOCKUP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gpg depends on:
ii  gpgconf        2.2.12-1
ii  libassuan0     2.5.2-1
ii  libbz2-1.0     1.0.6-9
ii  libc6          2.28-10
ii  libgcrypt20    1.8.4-5
ii  libgpg-error0  1.35-1
ii  libreadline7   7.0-5
ii  libsqlite3-0   3.27.2-2
ii  zlib1g         1:1.2.11.dfsg-1

Versions of packages gpg recommends:
ii  gnupg  2.2.12-1

gpg suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Hello,

I am closing this since also cannot reproduce (with 2.4.7)

testit@argenau:~$ rm -rf .gnupg/
testit@argenau:~$ gpg  --quick-gen-key [email protected]
gpg: directory '/home/testit/.gnupg' created
gpg: keybox '/home/testit/.gnupg/pubring.kbx' created
About to create a key for:
    "[email protected]"
[...]
testit@argenau:~$ ls -l gitea-keys.gpg .gnupg/pubring.kbx
-rw-rw-r-- 1 testit testit 627 Apr 18 15:01 .gnupg/pubring.kbx
-rw-rw-r-- 1 testit testit   0 Apr 18 14:58 gitea-keys.gpg
testit@argenau:~$  gpg  --no-default-keyring  --keyring  ~/gitea-keys.gpg 
--recv-keys CC64B1DB67ABBEECAB24B6455FC346329753F4B0
gpg: key 2D9AE806EC1592E2: public key "Teabot <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1
testit@argenau:~$ ls -l gitea-keys.gpg .gnupg/pubring.kbx
-rw-rw-r-- 1 testit testit  627 Apr 18 15:01 .gnupg/pubring.kbx
-rw-rw-r-- 1 testit testit 5826 Apr 18 15:01 gitea-keys.gpg
testit@argenau:~$ gpg   --list-keys
/home/testit/.gnupg/pubring.kbx
-------------------------------
pub   ed25519 2025-04-18 [SC] [expires: 2028-04-17]
      67FA21423CFEEBFFFF2BE7FD26861A8016689EE6
uid           [ unknown] [email protected]
sub   cv25519 2025-04-18 [E]

testit@argenau:~$ gpg  --no-default-keyring  --keyring  ~/gitea-keys.gpg 
--list-keys
/home/testit/gitea-keys.gpg
---------------------------
pub   rsa4096 2018-06-24 [SC] [expires: 2025-06-22]
      7C9E68152594688862D62AF62D9AE806EC1592E2
uid           [ unknown] Teabot <[email protected]>
sub   rsa4096 2018-06-24 [E] [expires: 2025-06-22]
sub   rsa4096 2018-06-24 [S] [expires: 2025-06-22]

cu Andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

--- End Message ---

Reply via email to