How to set up macOS High Sierra "wfsctl" WebDAV to use with an application that uses basic authentication?
Step 1. Host Address. Know the IP address or DNS Domain Name for the host machine. A static IP address or fully qualified DNS name will allow other guest machines to bookmark the host machine. If DHCP is used for the host machine, then the dynamic TCP/IP address will need to be known each time prior to connection. The IP address can be found in the System Preferences > Network panel.



Step 2. Create Share Point Directory.

# For example,
sudo mkdir /Library/WebServer/ExampleSharePoint
sudo chown $USER:staff /Library/WebServer/ExampleSharePoint
sudo wfsctl share Volume/HardDisk/Library/WebServer


Step 3. Configuration.  Edit /etc/wfs/wfs.plist. Set SynthesizeSharePointForUserHomeDir to determine whether to allow remote WebDAV clients to see their home directory as a share point. Default is true.  Use false to limit sharing to the expressly added share points.

&lt;key&gt;SynthesizeSharePointForUserHomeDir&lt;/key&gt;
&lt;false/&gt;


Note: CreateHomeDirsForLocalUsers and ApplyUserInstanceSandbox appear to be undocumented at this time.

Step 4. Start wfsctl.

sudo wfsctl start
# Using identity with self-signed cert
sudo wfsctl diagnose # verify


Step 5. Setup Application Connection.

In the case of PasswordWallet, use the Network Sync Wizard to create a new sync.  Select WebDAV as the sync type.



If the server does not have a fully qualified DNS name, then the IP address can be used directly.



Step 6. Stopping wfsctl and httpd.

Based on How to unregister “httpd” after “wfsctl stop”? ...

sudo wfsctl stop             # stops WebDAV. restarts httpd
sudo apachectl graceful-stop # if desired, stops httpd
# verify
sudo wfsctl diagnose




Addendum

The WebDAV share can also be mounted directly from macOS Finder. Menu: Finder > Go > Connect to Server… ⌘K.



The default auto self-generated certificate can be either temporarily or permanently accepted.



Finder Share Point Folder View



Finder Share Point Info



Observation: Sometimes a file transfer via a macOS Finder WebDAV mount could fail and cause a loss of connection.  In these cases, so far, a second transfer attempt has succeeded OK.

At the time of this writing, the Password Wallet direct WebDAV synchronization connection has been solid and reliable for me.