Werner, somehow I missed your message, before sending my message 2 hours ago.
However, your actions do not work for me. [ROOT@russell ~/.gnupg ] # date; /bin/gpg --version ;date Fri Oct 4 12:38:19 CDT 2024 gpg (GnuPG) 2.3.3 libgcrypt 1.10.0-unknown Copyright (C) 2021 Free Software Foundation, Inc. License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: /root/.gnupg Supported algorithms: Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 AEAD: EAX, OCB Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression: Uncompressed, ZIP, ZLIB, BZIP2 Fri Oct 4 12:38:19 CDT 2024 BEFORE taking your actions: [ROOT@russell ~/.gnupg ] # ls -al total 864 drwx------. 3 root root 4096 Oct 4 12:35 . dr-xr-x---. 14 root root 4096 Oct 4 12:31 .. -rw-r--r--. 1 root root 0 Oct 3 10:45 .gpg-v21-migrated srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.browser srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.extra srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.ssh srwx------. 1 root root 0 Oct 3 10:45 S.scdaemon -rw-r--r--. 1 root root 268006 Oct 4 12:35 exported.gpg -rw-------. 1 root root 8071 Sep 5 2019 gpg.conf drwx------. 2 root root 4096 Oct 3 10:45 private-keys-v1.d -rw-------. 1 root root 273017 Jul 22 15:03 pubring.gpg -rw-------. 1 root root 273017 Jul 22 15:03 pubring.gpg~ -rw-------. 1 root root 600 Oct 3 11:03 random_seed -rw-------. 1 root root 5726 Jul 10 2017 secring.gpg -rw-------. 1 root root 29360 Jul 22 15:03 trustdb.gpg NOTE: NO .kbx files. [ROOT@russell ~/.gnupg ] # mv pubring.gpg pubring.gpg.OLD [ROOT@russell ~/.gnupg ] # ls -al total 864 drwx------. 3 root root 4096 Oct 4 12:36 . dr-xr-x---. 14 root root 4096 Oct 4 12:31 .. -rw-r--r--. 1 root root 0 Oct 3 10:45 .gpg-v21-migrated srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.browser srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.extra srwx------. 1 root root 0 Oct 3 10:45 S.gpg-agent.ssh srwx------. 1 root root 0 Oct 3 10:45 S.scdaemon -rw-r--r--. 1 root root 268006 Oct 4 12:35 exported.gpg -rw-------. 1 root root 8071 Sep 5 2019 gpg.conf drwx------. 2 root root 4096 Oct 3 10:45 private-keys-v1.d -rw-------. 1 root root 273017 Jul 22 15:03 pubring.gpg.OLD -rw-------. 1 root root 273017 Jul 22 15:03 pubring.gpg~ -rw-------. 1 root root 600 Oct 3 11:03 random_seed -rw-------. 1 root root 5726 Jul 10 2017 secring.gpg -rw-------. 1 root root 29360 Jul 22 15:03 trustdb.gpg [ROOT@russell ~/.gnupg ] # /bin/gpg --import < exported.gpg . . . gpg: Total number processed: 189 gpg: w/o user IDs: 1 gpg: imported: 188 gpg: public key of ultimately trusted key 0000000000000000 not found gpg: marginals needed: 3 completes needed: 1 trust model: classic gpg: depth: 0 valid: 82 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 82u gpg: next trustdb check due at 2033-09-13 [ROOT@russell ~/.gnupg ] # date; /bin/gpg -K ;date Fri Oct 4 12:37:06 CDT 2024 gpg: DBG: Oops: keyid_from_fingerprint: no pubkey; fpr: 5d5ddc60954d5b06fa7b592ec45b70d9 gpg: DBG: Oops: keyid_from_fingerprint: no pubkey; fpr: 850d581e35383b8c11b50e471bb1b9be gpg: key 0000000000000000 occurs more than once in the trustdb gpg: DBG: Oops: keyid_from_fingerprint: no pubkey; fpr: 95b748bd217e51c036d8d0ce4387c502 gpg: key 0000000000000000 occurs more than once in the trustdb /root/.gnupg/pubring.kbx ------------------------ sec dsa1024 2002-04-01 [SCA] 8C71B38C3A071ABCD831D4655257EBE831A070A8 uid [ultimate] [email protected] ssb elg1024 2002-04-01 [E] sec rsa4096 2016-03-18 [SC] 3EA174A350A97D4356A35BC6455FC35E80167A71 uid [ultimate] Sempris <[email protected]> ssb rsa4096 2016-03-18 [E] Fri Oct 4 12:37:06 CDT 2024 Please, advise. Thank you. ~ Mike On Fri, Oct 4, 2024 at 10:14 AM Werner Koch <[email protected]> wrote: > On Fri, 4 Oct 2024 07:41, Mike Schleif said: > > > Also, how ought I cleanup these old, unused keys? > > $ gpg --export --export-options backup > exported.gpg > $ echo use-keyboxd ~/.gnupg/common.conf > $ gpgconf -K all > $ gpg --import --import-options restore < exported.gpg > > If you use a decent 2.4 version. If your version is older do > > $ gpg --export > exported.gpg > $ mv ~/.gnupg/pubring.kbx ~/.gnupg/pubring.kbx-old > $ mv ~/.gnupg/pubring.gpg ~/.gnupg/pubring.gpg-old > $ gpg --import < exported.gpg > > > Salam-Shalom, > > Werner > > > -- > The pioneers of a warless world are the youth that > refuse military service. - A. Einstein > -- If ever I can be of service to you; contact me at once. I wish for you a truly extraordinary day ... -- Best Regards, Mike Schleif 612-235-6060 https://mikeschleif.net http://mdsresource.net http://www.linkedin.com/in/schleif http://facebook.com/MDSResource http://twitter.com/mikeschleif
_______________________________________________ Gnupg-users mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gnupg-users
