New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't send encrypted OpenPGP messages to offline buddies #822
Comments
OK after I restarted Conversations I now get the message "No OpenPGP Key found" [...] your contact is not announcing his or hers public key. But I already have the public key in my OpenKeychain. Doesn't make a difference is the key is already cached or not in background. |
Hm, after a reboot of the mobilephone and my partner went online once, I can send offline PGP messages now. But somehow about 1/3 of all offline messages doesn't get to to my partners. |
Is public key associated with Base JID or Full JID? The latter includes a resource. |
With OpenPGP the status (online/away/etc) announcements are signed. If Conversations (or any other OpenPGP enabled messenger) sees a signed announcement, the public key fingerprint is extracted and saved. You can see this fingerprint on your buddies info page. If you got that fingerprint and your OpenKeychain has a key for it, you can send encrypted messages, no matter if he is online or offline. This whole process is quite bumpy. Sometimes the fingerprints get lost. Sometimes OpenKeychain doesn't respond or crashes. Sometimes the signed announcements are lost or sent unsigned because of a problem with OpenKeychain or the API. Sometimes your Conversation forgets that you already configured OpenPGP. The message loss you are seeing should have nothing to do with encryption. It's more a general problem. |
Draghtnod: Thank you for your response and clarification! So I am not alone. Yes, the PGP-key fingerprint sometimes gets lost (it isn't shown anymore on the "buddy-info" page) and then the buddy has to come online again so that the fingerprint reappears. I also can't tell how to reproduce yet... Maybe there should be the possibility to manually enter the buddies PGP-fingerprint into Conversations if it gets lost?
As long as both buddies are online no messages disappear. But offline messages/one buddy going offline is really a problem. Sadly but true, other messengers like Whatsapp don't have any problems with disappearing messages. |
This should happen if either Conversation looses it's cache or your buddy sends an unsigned status update (maybe from another client). Maybe Conversations should store the fingerprints for the remote clients/resource, not the account, handle the status updates for each resource and automatically switch the encryption depending on the resource of the last sent message. That should help i think.
No i don't like that. Setting everything up is pain enough. Fingerprint management should all happen magically in the background. Like on other messengers as well.
It also supports message carbons and MUC. :)
I did not recognize lost messages if the buddy is really offline. I think that may be a setup problem of the server. Encrypted messages are quite long. Maybe it exceeds some character limit? |
Hello! Now to the point. It would be nice to have an alternative method of public key assigning - same way the most mail clients do: take the JID and search local keyring for this key. This should be the fall-back. Of course, this behavior implies the problem of sending encrypted messages to a client which cannot decrypt this message. But from my point of view it is much better to send one unreadable message to much then sending one in plaintext. Regards. |
hello, br |
I personally have stopped using PGP encryption a while ago. That means I can no longer eat my own dog food. And dogfooding generally is what makes Conversations such a great product. While I don't see an immediate reason to remove OpenPGP support from Conversations I think everyone would be better of if the PGP encryption part would be handled by someone who actually uses this on a daily basis. So I'm calling out for someone to take over the responsibilities with OpenPGP. A first step would be to migrate to the new API version of openpgp-api. Later on you there are several open issues like: #632 If you are interested in that you would be given a lot of freedom in the architectural decisions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hello,
I am not sure if this is intended or not:
I can only send unencrypted messaged to offline buddies. I know that with OTR it isn't OTR technically possible, but OpenPGP should make no problems.
So is this a bug?
If the Buddie is offline, but the server didn't recognize this yet and I send the PGP message, it arrives later. But if Conversations thinks the buddy is offline, it doesn't allow me to send the OpenPGP message (only unencrypted ones.)
Please change this behavior.
The text was updated successfully, but these errors were encountered: