# CalDav and CardDav iOS issues

**URL:** <https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801>\
**Category:** ℹ️ Support\
**Tags:** github\_issue\_exists, ios, calendar-app, setup\_warning\
**Created:** [March 13, 2020, 7:03pm UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801 "2020-03-13T19:03:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon72133131](https://help.nextcloud.com/letter_avatar/anon72133131/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon72133131](https://help.nextcloud.com/u/anon72133131)\
**Post date:** [March 13, 2020, 7:03pm UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/1 "2020-03-13T19:03:55Z")

</div>

I am trying to setup my iOS device with CalDav and CardDav.

Using [this](https://docs.nextcloud.com/server/18/user_manual/pim/sync_ios.html) guide, I have been trying to setup CalDAV or CardDav however, I keep getting “Cannot connect using SSL”. I have SSL setup using a reverse proxy. The cert is not self-signed or anything like that.

Service discovery is working correctly. Heading to `/.well-known/carddav` or `/.well-known/caldav` redirects correctly.

I have tried:

1. Altering port to 443 or 80.
2. Using `example.com/remote.php/dav/principals/users/USERNAME/` as the url.
3. I have tried prefixing my instance url using `https://`.
4. Checking the requests are not being blocked (all ok here).
5. As I have MFA enabled, using an app password instead of password.

Any other suggestions?

Any help is much appriciated. Thanks.

---

<div class="post-metadata">

**Author:** ![anon72133131](https://help.nextcloud.com/letter_avatar/anon72133131/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon72133131](https://help.nextcloud.com/u/anon72133131)\
**Post date:** [March 14, 2020, 10:55am UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/2 "2020-03-14T10:55:40Z")

</div>

Solution found:  
For my setup the SSL port is 443. Looks like iOS attemps to use 8443 by default.

1. Generate an app password.
2. For the server url supply: `https://domain.name:443/remote.php/dav/principals/users/yourusername`
3. Enter your username in the `username` field.
4. Enter the app password for the password if your account has MFA enabled.  
Profit.

---

<div class="post-metadata">

**Author:** ![amandabee](https://help.nextcloud.com/user_avatar/help.nextcloud.com/amandabee/32/38309_2.png) [@amandabee](https://help.nextcloud.com/u/amandabee)\
**Post date:** [December 2, 2020, 4:55am UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/3 "2020-12-02T04:55:21Z")

</div>

I hit the same error and was able to quickly confirm that for me the problem was `.well-known/caldav` was not properly configured. So if a search for the error lead you here, definitely check all the steps that @anon72133131 rules out in their post.

---

<div class="post-metadata">

**Author:** ![v1001001p](https://help.nextcloud.com/letter_avatar/v1001001p/32/5_5575768a8748004e209b776fc1b2916d.png) [@v1001001p](https://help.nextcloud.com/u/v1001001p)\
**Post date:** [January 13, 2022, 1:06am UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/4 "2022-01-13T01:06:59Z")

</div>

Same problem. Solved with @anon72133131 answer on his own topic 🙂

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/5_5575768a8748004e209b776fc1b2916d.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [May 29, 2022, 6:13am UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/5 "2022-05-29T06:13:19Z")

</div>

When updating the documentation, we figured out that the service discovery was not set up correctly requiring to set a more complicated link than actually needed. The documentation was updated to add a specific hint for the service discovery troubleshooting: [Include link to service discovery trouble shooting in iOS sync guide by networkException · Pull Request #8318 · nextcloud/documentation · GitHub](https://github.com/nextcloud/documentation/pull/8318)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 9:07pm UTC](https://help.nextcloud.com/t/caldav-and-carddav-ios-issues/73801/6 "2024-12-11T21:07:42Z")

</div>


