Wrong behavior when connecting with my PGP key
Versions
- OS: Ubuntu 17.10
- Gajim version: 1.0.0
- GTK version: 3.22.25
- Python-nbxmpp version: 0.6.4
- Python-gnupg version: 0.3.9
Settings
/.config/gajim/config
:
plugins.PGP.active = True
use_gpg_agent = False
use_keyring = True
accounts.Local.gpg_sign_presence = True
accounts.Local.attached_gpg_keys =
accounts.Local.keyid =
accounts.Local.keyname =
accounts.Local.attached_gpg_keys =
accounts.my_server.im.gpg_sign_presence = True
accounts.my_server.im.attached_gpg_keys =
accounts.my_server.im.keyid = DEADBEEF
accounts.my_server.im.keyname = my_name <my_name@example.com>
accounts.my_server.im.password = keyring:
accounts.my_server.im.gpg_sign_presence = True
Steps to reproduce the problem
- Assign PGP key to your account
- Run gajim client
- It'll ask to enter openPGP passphrase
Expected behavior
Gajim should say that the passphrase is correct.
Actual behavior
Trying to enter openPGP passphrase. It says:
Wrong OpenPGP passphrase You are currently connected without your PGP key
But I can still initiate an encrypted conversation with my buddy
Passphrase is correct. I've checked it with this:
gpg --edit-key DEADBEEF
> passwd
Traceback
28.03.2018 11:19:41 (D) gajim.c.gnupg sign_file: <_io.BytesIO object at 0xae34732c>
28.03.2018 21:19:41 (D) gajim.c.gnupg ['gpg', '--status-fd', '2', '--no-tty', '--batch', '--passphrase-fd', '0', '-sa', '--detach-sign', '--default-key', 'DEADBEEF']
28.03.2018 11:19:41 (D) gajim.c.gnupg Wrote passphrase
28.03.2018 11:19:41 (D) gajim.c.gnupg data copier: <Thread(Thread-6, initial daemon)>, <_io.BytesIO object at 0xae34732c>, <_io.BufferedWriter name=20>
28.03.2018 11:19:41 (D) gajim.c.gnupg stderr reader: <Thread(Thread-7, initial daemon)>
28.03.2018 11:19:41 (D) gajim.c.gnupg closed output, 4 bytes sent
28.03.2018 11:19:41 (D) gajim.c.gnupg stdout reader: <Thread(Thread-8, initial daemon)>
28.03.2018 11:19:41 (D) gajim.c.gnupg gpg: using "DEADBEEF" as default secret key for signing
28.03.2018 11:19:41 (D) gajim.c.gnupg [GNUPG:] KEY_CONSIDERED 3A569946001B2270A8ACE1C165B45600DEADBEEF 0
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3/dist-packages/gnupg.py", line 835, in _read_response
result.handle_status(keyword, value)
File "/usr/lib/python3/dist-packages/gnupg.py", line 685, in handle_status
raise ValueError("Unknown status message: %r" % key)
ValueError: Unknown status message: 'KEY_CONSIDERED'