MobileOrg / mobileorg

MobileOrg iPhone App
http://mobileorg.github.io
GNU General Public License v2.0
556 stars 69 forks source link

Better document WebDAV test set up #266

Open gitonthescene opened 4 years ago

gitonthescene commented 4 years ago

I got this working using the docker image specified in Scripts/Resources/WebDAV-Server-Start.sh. I created certs using my own root certificate for localhost ( so as not to fiddle with /etc/hosts ). I had to export the certs created from Utilities/Keychain Access.app to be able to use them for the docker image.

[ Note: You may want to mount /var/www into the docker image if you want your files to survive restart. ]

At this point you can test the docker image with Finder -> Go -> Connect To Server using the port/user/pass word you set up for the image.

From there the only thing left is to install the root certificate on the iOS simulator. The drag-and-drop advice didn't work for me (I'm on XCode 11/Catalina) so I had to explicitly grab the file using Safari in the simulator (similar to the non-simulator advice found in the previous link). Using the url file:///path/to/exported/root/certificate.cer worked for me.

I simply agreed to install the profile and then went to Settings -> General -> About -> Certificate Trust Settings to make sure that trust was enabled. (The cert itself should be available in Settings -> General -> Profiles.)

With the certificates all set up, I configured MobileOrg with WebDAV set to https://localhost:10000/index.org and I was off and running.

As you can see 90% of the trouble was setting up the certificates.