Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GPG complaining about key not in --list-keys, db corruption?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Feb 04, 2018 2:32 am    Post subject: GPG complaining about key not in --list-keys, db corruption? Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Feb 04, 2018 2:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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