View previous topic :: View next topic |
Author |
Message |
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Feb 04, 2018 2:32 am Post subject: GPG complaining about key not in --list-keys, db corruption? |
|
|
I was trying to reset my wiki account password and `pass` seems to have lost its mind:
Code: | ~ $ pass generate gentoo/wiki
gpg: CE0ACA30AE487532: There is no assurance this key belongs to the named user
gpg: [stdin]: encryption failed: Unusable public key
Password encryption aborted.
~ $ { gpg --list-keys; gpg --list-secret-keys; } | grep -i CE0ACA30AE487532
~ $ |
What's going on here? I haven't changed any settings recently and ~/.password-store/.gpg-id == $(git config user.signingkey), which I've just confirmed still works fine even after killing gpg-agent a few times.
If I run it as `bash -x /usr/bin/pass generate gentoo/wiki` I can even see it's using the correct key in the gpg2 command, right before it outputs that error.
(changed title from "app-admin/pass - complaining about nonexistent GPG key"; pass wasn't at fault)
Last edited by Ant P. on Sun Feb 04, 2018 3:40 am; edited 1 time in total |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Feb 04, 2018 2:46 am Post subject: |
|
|
I just went poking around in gpg --edit-key and found that substring was part of one of the subkeys (mystery solved - gpg's UI sucks and is needlessly confusing), but also my key was marked as unknown trust for some reason (WTF?)
I've fixed that, but I guess now the question is how did it get that way in the first place? Nothing else seems out of the ordinary here. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|