Need help debugging: Simplemind App on iOS cannot login

Hi,

I am running Nextcloudpi, pretty much in default configuration and have most devices connected.
One app though fails immediately connecting, Simplemind on iOS.
Their support was not very helpful.

Nextcloud log does not show any login attempt.

UFW, fail2ban and any Apps that might interfere have been disabled.
A tcpdump on the server shows there is at least some negotiation started, but I’m not sure where to look for the problem:

12:07:35.077951 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [SEW], seq 2456833802, win 65535, options [mss 1460,nop,wscale 5,nop,nop,TS val 1432514111 ecr 0,sackOK,eol], length 0
12:07:35.078174 IP 192.168.170.41.443 > 192.168.170.27.55386: Flags [S.E], seq 3590103458, ack 2456833803, win 65160, options [mss 1460,sackOK,TS val 270845215 ecr 1432514111,nop,wscale 7], length 0
12:07:35.082149 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [.], ack 1, win 4117, options [nop,nop,TS val 1432514121 ecr 270845215], length 0
12:07:35.082204 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [P.], seq 1:518, ack 1, win 4117, options [nop,nop,TS val 1432514121 ecr 270845215], length 517
12:07:35.082356 IP 192.168.170.41.443 > 192.168.170.27.55386: Flags [.], ack 518, win 506, options [nop,nop,TS val 270845219 ecr 1432514121], length 0
12:07:35.116499 IP 192.168.170.41.443 > 192.168.170.27.55386: Flags [P.], seq 1:1182, ack 518, win 506, options [nop,nop,TS val 270845253 ecr 1432514121], length 1181
12:07:35.119553 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [.], ack 1182, win 4080, options [nop,nop,TS val 1432514159 ecr 270845253], length 0
12:07:35.121561 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [F.], seq 518, ack 1182, win 4096, options [nop,nop,TS val 1432514161 ecr 270845253], length 0
12:07:35.121975 IP 192.168.170.41.443 > 192.168.170.27.55386: Flags [F.], seq 1182, ack 519, win 506, options [nop,nop,TS val 270845259 ecr 1432514161], length 0
12:07:35.126137 IP 192.168.170.27.55386 > 192.168.170.41.443: Flags [.], ack 1183, win 4096, options [nop,nop,TS val 1432514166 ecr 270845259], length 0

config.php:

<?php
$CONFIG = array (
  'passwordsalt' => ...,
  'secret' => ...,
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.170.41',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.8.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => ...,
  'installed' => true,
  'instanceid' => ...,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => ...,
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'loglevel' => '0',
  'log_type' => 'file',
);

Any hints?

Turns out the app didn’t like self signed certificates. A new certificate fixed the problem.