muacrypt icon indicating copy to clipboard operation
muacrypt copied to clipboard

bot remembers all keys for an address

Open gfa opened this issue 6 years ago • 1 comments

Hi

I have an test email account, [email protected], which I've been using to play with autocrypt. From that account i sent multiple emails to [email protected] and [email protected], which worked fine.

Before doing an autocrypt demo, I removed all keys from my test account and proceed to repeat the process, everything went fine except that bot-mutual send me back an email encrypted with my old key (which i no longer have)

After checking the keyring on botmutual account I found out it has 4 keys for my test email, instead of just the last one

bot@lists:~/.config/muacrypt/gpg/botmutual$ gpg --list-keys [email protected]
pub   rsa2048 2018-02-25 [SC]
      E5DD3F69F746C992657A4F9BFF832FDAB37431CF
uid           [ unknown] gustavo <[email protected]>
sub   rsa2048 2018-02-25 [E]

pub   rsa4096 2018-02-25 [SCA] [expires: 2023-02-24]
      AD4EAFBE0EA5956E76C017CC7B0B2F32F246CB28
uid           [ unknown] gustavo <[email protected]>
sub   rsa4096 2018-02-25 [E] [expires: 2023-02-24]

pub   rsa4096 2018-02-25 [SCA] [expires: 2023-02-24]
      C0A49B0CEBBA236120AAC2E215A28D47C68BE10B
uid           [ unknown] gustavo <[email protected]>
sub   rsa4096 2018-02-25 [E] [expires: 2023-02-24]

pub   rsa4096 2018-02-28 [SCA] [expires: 2023-02-27]
      47C500D6D8BAC2E8EC6C1D25DD19B204B6FDCF1B
uid           [ unknown] gustavo <[email protected]>
sub   rsa4096 2018-02-28 [E] [expires: 2023-02-27]

gfa avatar Mar 10 '18 03:03 gfa

yes, keys are not deleted from the keyring. still the bot should use your latest key unless there is a logical processing problem (in the autocrypt processing logic). muacrypt keeps a peerstate which tells which key to use for which peer.

hpk42 avatar May 21 '18 15:05 hpk42