Key imported through webapp isn't taken into account
- create user, add public key through webapp
- test with curl -k -i --silent --max-time 10 -X GET -d address=MYUSERNAME@provider https://unstable.bitmask.net I get the correct key.
- start bitmask (Bitmask Desktop Client, Version 0.9.4+209.g3e18344b), login.
* 2017-05-18T17:16:54+0200 [leap.soledad.client.sync#warn] Database isn't ready on server. Will be created.
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#warn] Reason: <class 'leap.soledad.common.l2db.errors.DatabaseDoesNotExist'>
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] target replica uid: None
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] target generation: 0
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] target trans id:
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] target my gen: 0
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] target my trans_id:
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] source replica_uid: 8f3365815a9a41c7be02d7f5193012a3
2017-05-18T17:16:54+0200 [leap.soledad.client.sync#debug] there are 0 documents to send
2017-05-18T17:16:54+0200 [leap.bitmask.core.mail_services.KeymanagerContainer#info] Looking up private key for kwadronaut@leap.se
2017-05-18T17:16:54+0200 [leap.bitmask.keymanager.KeyManager#debug] Getting key for kwadronaut@leap.se
2017-05-18T17:16:54+0200 [leap.bitmask.core.mail_services.KeymanagerContainer#info] Key not found, generating key for kwadronaut@leap.se
2017-05-18T17:16:54+0200 [twisted.python.log#info] "127.0.0.1" - - [18/May/2017:15:16:54 +0000] "POST /API/events/poll HTTP/1.1" 200 74 "http://localhost:7070/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) Qt/5.5.1 Safari/538.1"
2017-05-18T17:16:54+0200 [leap.bitmask.keymanager.openpgp.OpenPGPScheme#info] About to generate keys... This might take SOME time.
When now requesting the key, I get a new public key.
Expected result: start using the pubkey that was imported through the webapp.
I understand that this is a non-default setup (importing existing pubkey), still this is something where people can shoot themselves in the foot accidently. Can we discuss different scenarios that we want to cater for?