"NSURLErrorDomain -1012" when enrolling devices with Apple Configurator

When enrolling a new device to SimpleMDM using Apple Configurator software, you may receive the following error on the device during enrollment:

The configuration for your [device] could not be downloaded from [company name]
The operation couldn't be completed. (NSURLErrorDomain error -1012.)

This error sometimes occurs because Apple Configurator has cached an expired certificate. 

To resolve the issue, complete the following steps within Apple Configurator:
  1. Click the "Apple Configurator" file menu and select the "Preferences" option.
  2. Click the "Servers" tab.
  3. Select any SimpleMDM servers and delete them by clicking the "-" button at the bottom of the window.
  4. Attempt to re-enroll your device. Select the device in Apple Configurator, click "Prepare" and follow the prompts. When asked to, configure a new MDM server.
This process will cause Apple Configurator to fetch the latest SimpleMDM certificates and may resolve the error.

Feedback and Knowledge Base