E2EE - Not working on iOS :(

Hi! Just need a bit of help here, I have server side encryption activated, with the E2EE working brilliantly on my Windows and MacOS Clients. I have tried to get it to work on my iOS client.

But, it’s being a bit weird, it comes up with an error saying E2E decrypt privateKey - Serious internal error to decrypt Private Key. I have tried the 12 word thingy on both Windows and Mac and it worked fine with no issue. I have looked on here already and I’ve heard it’s something to do with the 12 word mnemonic thing but I am super confused haha

Can someone guide me on what to do with this?

Thanks!

But, it’s being a bit weird, it comes up with an error saying E2E decrypt privateKey - Serious internal error to decrypt Private Key.

This happens right after entering the same mnemonic used on your other devices, correct?

Can you also fill in some details about your environment - i.e. iOS app version and bits of the support template.

I have server side encryption activated, with the E2EE working brilliantly

Just to clarify: I assume you mean you have the E2EE app enabled. Server-side Encryption is distinct from E2EE. Or are you trying to use both simultaneously?

Hi,

Just to clarify: I assume you mean you have the E2EE app enabled. Server-side Encryption is distinct from E2EE. Or are you trying to use both simultaneously?

Apologies should have clarified, I have both server-side encryption and E2EE enabled, I thought for some reason you needed both. When I do the 12 word mnemonic on Windows/Mac, it works without an issue.

This is the Tail -f from the Nextcloud.log, had to do a pastebin cos it’s a bit big: Ubuntu Pastebin

This is a tail -f from the access.log in Nginx, integrated to nextcloud as installation was done on docker compose.

iOS Tailscale IP - Myname [26/Feb/2025:17:32:40 +0000] "GET /ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key HTTP/2.0" 200 1053 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.7"
iOS Tailscale IP - Myname [26/Feb/2025:17:32:43 +0000] "GET /ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key HTTP/2.0" 200 1053 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.7"
iOS Tailscale IP - Myname [26/Feb/2025:17:32:43 +0000] "GET /ocs/v2.php/apps/end_to_end_encryption/api/v1/private-key HTTP/2.0" 200 2527 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.7"
  • Nextcloud Hub 10 (31.0.0)
  • iOS 18.3.1 and Nextcloud 6.2.7
  • Tailscale VPN with HTTPS Enabled, and LE Certificate
  • MariaDB version “11.7.2-MariaDB-ubu2404”
  • NGinx version 1.26.2
  • Ubuntu Server 24.04.2 LTS Noble

The Steps I needed to replicate this issue was to go on the iOS app and to place the 12 word mnemonic in the dialogue box. I had reinstall the iOS app and have reset the encryption key to try to solve the problem. I have checked the public keys and they match.

Apps:

root@d7b5659d53a7:/# occ app:list
Enabled:
   - activity: 4.0.0
   - app_api: 5.0.2
   - bruteforcesettings: 4.0.0
   - circles: 31.0.0-dev.0
   - cloud_federation_api: 1.14.0
   - comments: 1.21.0
   - contactsinteraction: 1.12.0
   - dashboard: 7.11.0
   - dav: 1.33.0
   - encryption: 2.19.0
   - end_to_end_encryption: 1.17.0
   - federatedfilesharing: 1.21.0
   - federation: 1.21.0
   - files: 2.3.1
   - files_downloadlimit: 4.0.0
   - files_external: 1.23.0
   - files_pdfviewer: 4.0.0
   - files_reminders: 1.4.0
   - files_sharing: 1.23.1
   - files_trashbin: 1.21.0
   - files_versions: 1.24.0
   - firstrunwizard: 4.0.0
   - logreader: 4.0.0
   - lookup_server_connector: 1.19.0
   - music: 2.1.2
   - nextcloud_announcements: 3.0.0
   - notifications: 4.0.0
   - oauth2: 1.19.1
   - password_policy: 3.0.0
   - photos: 4.0.0-dev.1
   - privacy: 3.0.0
   - profile: 1.0.0
   - provisioning_api: 1.21.0
   - recommendations: 4.0.0
   - related_resources: 2.0.0
   - serverinfo: 3.0.0
   - settings: 1.14.0
   - sharebymail: 1.21.0
   - support: 3.0.0
   - survey_client: 3.0.0
   - systemtags: 1.21.1
   - text: 5.0.0
   - theming: 2.6.1
   - twofactor_backupcodes: 1.20.0
   - updatenotification: 1.21.0
   - user_status: 1.11.0
   - viewer: 4.0.0
   - weather_status: 1.11.0
   - webhook_listeners: 1.2.0
   - whiteboard: 1.0.5
   - workflowengine: 2.13.0
 Disabled:
   - admin_audit: 1.21.0
   - documentserver_community: 0.1.20 (installed 0.1.20)
   - onlyoffice: 9.6.0 (installed 9.6.0)
   - richdocuments: 8.6.1 (installed 8.6.1)
   - suspicious_login: 9.0.1
   - twofactor_nextcloud_notification: 5.0.0
   - twofactor_totp: 13.0.0-dev.0
   - user_ldap: 1.22.0

Pastebin for my compose.yml if you’re interested: Ubuntu Pastebin

Let me know if you need more info. Thanks!

Did you ever resolve this? I am having the exact same issue as you are.

I am replying in my phone right now so I don’t have all my files in front of me, but your docker compose is worlds smaller and more minimal than mine, which is not a bad thing. Just saying I can’t imagine it’s something you added there.

Have you messed around much with the Nextcloud config file by chance? I can share mine tomorrow when in front of my computer.

I am also running Nextcloud in docker on Ubuntu server, mine is behind Cloudflare using their tunnel and not tailscale.