Error while passing registration

Hi there! Is there anyone who can help to resolve this:

[kontalk:jabber:iq:register Queue Worker 0] INFO - Creating Kyoto 'FILE_HASH' DB with descriptor '/home/termin/Downloads/tigase-kontalk/keyring.kch#bnum=100000#msiz=5242880' to open with modes '[READ_WRITE, CREATE]'
org.bouncycastle.openpgp.PGPException: error signing key
at org.kontalk.xmppserver.pgp.GnuPGInterface.signKey(
at org.kontalk.xmppserver.KontalkKeyring.signKey(
at org.kontalk.xmppserver.KontalkIqRegister.signPublicKey(
at org.kontalk.xmppserver.KontalkIqRegister.process(
at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(
2017-07-14 10:32:02.689 [kontalk:jabber:iq:register Queue Worker 0] KontalkIqRegister.process() WARNING: PGP problem: org.bouncycastle.openpgp.PGPException: error signing key

My gpg ver:
gpg (GnuPG) 2.1.18
libgcrypt 1.7.6-beta

Trying to import the key back using gpg2 --import < tigase-kontalk/server-public.key shows no errors:

gpg: key EA33D20B68FDD6E2: "Temur <>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1

I’m facing this while trying to varify a valid verification code (123456) with DummyProvider and android client log yelling:

07-14 10:55:07.501 26576-1914/org.kontalk.debug D/SMACK: SENT (5): <iq to='' id='zmO07-11' type='set'><query xmlns='jabber:iq:register'><x xmlns='jabber:x:data' type='submit'><field var='FORM_TYPE' type='hidden'><value></value></field><field label='Validation code' var='code' type='text-single'><value>123456</value></field></x></query></iq>
07-14 10:55:07.656 26576-1915/org.kontalk.debug D/SMACK: RECV (5): <iq id="zmO07-11" xmlns="jabber:client" from="" type="error"><query xmlns="jabber:iq:register"><x xmlns="jabber:x:data" type="submit"><field type="hidden" var="FORM_TYPE"><value></value></field><field type="text-single" var="code" label="Validation code"><value>123456</value></field></x></query><error code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Invalid public key.</text></error></iq>

Your help is needed, what else could cause that behavior?


  • Did you import your server’s private key into the same GPG keyring?
  • Remember that the server’s private key MUST NOT be password-protected! ( and just hit enter when asked for a new passphrase)
  • After you remove the passphrase, remember to export it again into tigase-kontalk where it was before

Thank you very much!
I’ve run only this line:
gpg --import tigase-kontalk/server-private.key

And the output was:
gpg: key EA33D20B68FDD6E2: “Temur” not changed
gpg: key EA33D20B68FDD6E2: secret key imported
gpg: Total number processed: 1
gpg: unchanged: 1
gpg: secret keys read: 1
gpg: secret keys unchanged: 1

somehow this solved,
Thanks again!

1 Like