Issue: I get a different list of secret keys when using gpg -K than gpg -edit, and the missing keys can no longer be used to decrypt. How do I fix this?
C:\...\>gpg --edit 11111111 gpg (GnuPG) 2.0.12; Copyright (C) 2009 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Secret key is available. pub 2048R/11111111 created: 2012-09-09 expires: never usage: SC trust: ultimate validity: ultimate sub 2048R/22222222 created: 2012-09-09 expired: 2015-11-28 usage: E sub 2048R/33333333 created: 2014-11-28 expired: 2015-11-28 usage: S sub 2048R/44444444 created: 2015-12-08 expired: 2016-12-31 usage: S sub 2048R/55555555 created: 2015-12-08 expired: 2016-12-31 usage: E sub 4096R/66666666 created: 2016-12-28 expires: 2017-12-31 usage: S sub 4096R/77777777 created: 2016-12-28 expires: 2017-12-31 usage: E [ultimate] (1). Full Name <email@example.com> C:\...\>gpg -K C:/GnuPG/secring.gpg -------------------- sec 2048R/11111111 2012-09-09 uid Full Name <firstname.lastname@example.org> ssb 2048R/22222222 2012-09-09 ssb 2048R/33333333 2014-11-28 ssb 4096R/66666666 2016-12-28 ssb 4096R/77777777 2016-12-28
You'll see that 44444444 and 55555555 are missing from gpg -K.
Things tried: adding new keys and removing newer keys (there was once a bug which only listed the latest key) and upgrading and downgrading versions of GPG4win.
Please suggest search keywords if this is an RTFM issue.
Note: I'm using Gpg4win on Win10 but I'll spin up a *nix if necessary to sort this out.