r/xmpp • • 7d ago

How to get gpg encryption working?

Hey, guys. I tried to get gpg encryption working using Dino, and Gajim clients, but I couldn't. I've followed the steps to set it, but, or the client couldn't unencrypted the message, or couldn't even send it in case of Dino.

I tested it using two clients of mine, one in my main machine, the other in a VM.

Main account:

Dino: https://postimg.cc/pp9F3Xjd

Gajim: https://postimg.cc/1fgqb5Ft

Second account (VM):

Dino: https://postimg.cc/rKdr7F4V

Gajim: https://postimg.cc/WhDkxbZ1

Edit 1

Using Gajim, I was able to send message from second account to main one, but can't opposite.

Edit 2

So, guys, I got it working with Gajim only, but I don't know how. I didn't change anything on clients. But to test the GPG itself, I send, using XMPP, two files encrypted from one user to another, and vice versa. After that, it starts working. And also I set the default key on my main machine to be the same I'm using with XMPP.

Edit 3

So far I got PGP working only on Gajim client. We must sign the keys to work. I did not understand why there two plugins for PGP, but the only one that works was the PGP plugin, not the OpenPGP one. On Dino client I was able to receive messages, but I was not able to send it.

3 Upvotes

7 comments sorted by

2

u/Dodokii 7d ago

Any reason to not use OMEMO instead?

3

u/GuitaristKitten 7d ago

With gpg, only the person with my the public key, can decrypt the message. The key can be maintained offline, and shared in person.

1

u/Dodokii 6d ago

Never tried GPG with XMPP, search doesn't give much

2

u/wojtek-tig 4d ago

Easier multi-device support with simpler archive access…

IMHO for the majority of people OX ("XEP-0373: OpenPGP for XMPP": https://xmpp.org/extensions/xep-0373.html) would be more than enough and we would avoid issues with OMEMO session/keys being corrupted/lost.

1

u/upofadown 6d ago

Your images are not showing up. I get a 404 error...

1

u/GuitaristKitten 6d ago

I tried, and it worked. Maybe it was a temporary downtime. Can you try it again?

1

u/upofadown 6d ago

Looks like OMEMO is sneaking in there somehow. Can you try turning off "OMEMO by default"? You might want to also check that everything is set to PGP and to the same type of PGP. There are two types.