<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hi,</div><div><br></div><div>until today I was using gpg only for pass (the linux password manager). Today, I played around with gpg and now I have 2 problems:</div><div><br></div><div>1. I'm unable to list the key that is used for pass</div><div><br></div><div>To list the keys, I use: gpg --list-keys. Some new keys that I added today are there, but my previous key that I used for pass is not there.</div><div>Fortunately, I am able to use this key, so it exists! The gpg password dialog (that pops up when I invoke pass) tells me that it's an openpgp key with ID <span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">89F615FB</span>.</div><div><br></div><div>When I run kbxutil --stats ~/.gnupg/pubring.kbx, it tells me that indeed there is 1 openpgp key:</div><div><br></div><div><div>Total number of blobs: 2</div><div> header: 1</div><div> empty: 0</div><div> openpgp: 1</div><div> x509: 0</div><div> non flagged: 1</div><div> secret flagged: 0</div><div> ephemeral flagged: 0</div><div><br></div>Looking at the file modification dates, I suspect that my previous key is stored in <span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">private-keys-v1.d, but this key is for some reason</span></div><div><span style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">not showing up when I run gpg --list-keys</span></div><div><div><br></div><div>~/.gnupg $ ls -al</div><div>total 168</div><div>drwx------ 4 maarten maarten 4096 Jan 2 14:11 .</div><div>drwx------ 68 maarten maarten 20480 Jan 1 17:59 ..</div><div>-rw------- 1 maarten maarten 2649 Mar 5 2017 dirmngr.conf</div><div>-rw------- 1 maarten maarten 5191 Mar 5 2017 gpg.conf</div><div>-rw------- 1 maarten maarten 0 Mar 6 2017 .gpg-v21-migrated</div><div>drwx------ 2 maarten maarten 4096 Mar 5 2017 openpgp-revocs.d</div><div>drwx------ 2 maarten maarten 4096 Mar 5 2017 private-keys-v1.d</div><div>-rw------- 1 maarten maarten 3607 Jan 2 14:11 pubring.gpg</div><div>-rw------- 1 maarten maarten 3607 Jan 2 14:11 pubring.gpg~</div><div>-rw-r--r-- 1 maarten maarten 1362 Mar 5 2017 pubring.kbx</div><div>-rw------- 1 maarten maarten 32 Mar 5 2017 pubring.kbx~</div><div>-rw------- 1 maarten maarten 600 Jan 2 14:11 random_seed</div><div>-rw-r--r-- 1 maarten maarten 540 Jan 1 23:02 revoke.carnism.asc</div><div>-rw------- 1 maarten maarten 5199 Jan 2 14:11 secring.gpg</div><div>srwx------ 1 maarten maarten 0 Jan 2 11:02 S.gpg-agent</div><div>-rw------- 1 maarten maarten 1440 Jan 2 14:11 trustdb.gpg</div><div><br></div></div><div><br></div><div>2. pass is complaining when I try to add a new password:</div><div><br></div><div><div>gpg: 89F615FB: There is no assurance this key belongs to the named user</div><div>gpg: [stdin]: encryption failed: Unusable public key</div></div><div><br></div><div><br></div><div>My hypothesis is that somehow, by creating a few extra keys today, my previous openpgp key is not visible anymore. Can somebody explain why that might be the case, and help me to repair this?</div><div><br></div><div>Thanks in advance,</div><div>Maarten</div></div></body></html>