mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Error while verifying cross-signing keys #264

Closed Craeckie closed 3 years ago

Craeckie commented 3 years ago

Whenever I create a direct e2ee chat with the whatsappbot, I get these errors: [Crypto/ERROR] Error while verifying cross-signing keys: the input base64 was invalid

And in the client: ⚠ Your message was not bridged: the bridge hasn't received the decryption keys. The bridge will retry for 10 seconds. If this error keeps happening, try restarting your client.

Version: mautrix-whatsapp 0.1.5+dev.95f64879 (Jan 25 2021, 19:02:14)

Encryption config:

  encryption:
    allow: true
    default: false
    key_sharing:
      allow: true
      require_cross_signing: false
      require_verification: false

Is there some additional configuration required for e2ee to work?

tulir commented 3 years ago

The cross-signing error is unrelated. There was another bug that caused encryption to get messed up in certain cases when using SQLite. It should be fixed now, but you might need to clear the crypto_account and crypto_olm_sessions tables to make it work again.