Nextclound under Truenas Scale, synce Contacs, truenas_default SSL certificate, not working with Iphone IOS

nestor_78

Dabbler
Joined
Oct 14, 2023
Messages
12
Hi,

I would like to sync my Contacts (for the beginning: nextcloud, thunderbird, Iphone / later: dect phone)

I have no issues to sync contacs between nextcloud and thunderbird (with tbsync). However, with Iphone i have the following problem:

I use the following Acount-Url: https://172.16.1.151:9001/remote.php/dav/addressbooks/users/myusername/contacts/ (copied from contacts settings undernextcloud) in the account settings for Iphone contacts.

I get the following error message under IOS: "Cannot Connect Using SSL"

My configuration:
TrueNAS-SCALE-22.12.3.3
nextcloud 28.0.2_1.6.57

I used in the beginning the default certificate in the settings of nextcould: 'truenas_default' Certificate

I figured out here:
and here:
that the default certificate of truenas does not meet the requirements of apple. (Windows/Thunderbird seems to be less strict)


Therefore I created a self digend certificate with the following command (using openssl for windows):
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -nodes -keyout keyname.key -out certname.crt -subj "/CN=truenas.local" -addext "subjectAltName=DNS:truenas.local,DNS:*.truenas.local,IP:172.16.1.151"

I installed the newly created certificate in truenas/credentials/certificates and selected in the settings of nextcloud this certificate. However, I still get the error message under IOS: "Cannot Connect Using SSL".

Does anyone have an idea how to solve that problem?
Or, does truenas/nextcloud somewhere log a more detailed error message (GUI or console)?


Another observation. I installed the nextcloud app for IOS. I entered the ip address of my nextcloud website. An error message said: the certificate of the server is not valid. Details of the certificate shows that the truenas default certificate is still used by nextcloud (issuer: iXsystems). So it seems that the entry in the settings for nextcloud regarding the certificate to be used for nextcloud does not work.


Best regards,
Nestor
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Is your nextcloud server listening on port 9001 with https ?

What if you put http at the front of that url instead? do you see the error about got an https response on insecure connection?
 

nestor_78

Dabbler
Joined
Oct 14, 2023
Messages
12
Is your nextcloud server listening on port 9001 with https ?
If I enter the url
in a webbrowser then I can connect to the nextcloud app.

What if you put http at the front of that url instead? do you see the error about got an https response on insecure connection?
with
the error message pops up:

400 Bad Request​

The plain HTTP request was sent to HTTPS port

nginx/1.23.3
 
Top