Skip to content

Enrollment Guide

The Enrollment guide is split into four main sections, taking you through different types of enrollments available for Android, iOs, macOS and Windows devices.

The required Android Platform Configurations are given under the Android Enrollments. A guide to installing the Entgra Android Device Management app, either from the IoT server or from the Playstore, is also available under this section. Covered next are the different enrollment types available for Android devices with step-by-step procedures. It is possible to enroll Android devices as the Work Profile type, both with and without the QR code. Same goes for Fully Managed and Legacy types of enrollments, while for dedicated devices, enrollment with Entgra Agent using the QR code is also available. Also covered within this section is how to enroll an Android device as a Google Work Profile.

A section describing how an iOS device can be enrolled to the IoT server, is given next for BYOD enrollment without the Entgra Agent. Apple server configurations are specified in detail, along with the configurations for Apple’s Device Enrollment Program (DEP). Procedures for enrolling iOS devices with and without the Entgra Agent, and for DEP is given in this section.

Process for enrolling a macOS device manually is available for Mac users.

For Windows device enrollments, the additional server configurations are given followed up by the procedure for enrolling a windows device.

Detailed explanations and procedures for enrollment are given under each of the following device categories:

Enroll macOS - Enroll macOS Device Manually

Enroll Windows - Windows Server Configuration - Enrolling a Windows Device - Additional Server Configurations for Windows - Enroll a Windows Device

Entgra Cloud Enrollment Guide

Cloud Enrollment Guide

The Entgra Evaluation Cloud is available for customers registered with Entgra. The Cloud Enrollment Guide is aimed at helping administrators with the types of enrollment options available.

If you are unsure about the type of enrollment that suits you best, going through the Feature List for your device type might be helpful in deciding the best option for you.

Once you decide on the enrollment type, simply click on the video tutorial of the same following its prerequisites.

Should you require any help along this, feel free to drop us a mail to bizdev-group@entgra.io with your registered mail and we will be in touch.

Android Enrollment Configurations

This section guides you on how to enroll an Android device.

Android Platform Configurations

Multiple tenants can use Entgra IoTS. While maintaining tenant-based isolation, the Android configurations enable the tenants to customize the Android settings based on their own requirements.

PREREQUISITES

Follow the steps given below to configure the Android platform:

  1. Click the menu icon.

  2. Click CONFIGURATIONS.

  3. Click PLATFORM CONFIGURATIONS.

  4. Select Android Configurations.

Enter the following values to the relevant fields:

  • Type of Communication - The notifier type that determines the way in which the notification will take place.

The available options are as follows:

  • Local Polling - The device will contact the Entgra IoT server periodically. If Local Polling was selected as the notifier type, provide the Notifier Frequency (in seconds) - This is the interval after which the wake-up command will be automatically triggered by the Android Agent.

Local Polling

Note: From Android 4.4 (KitKat) onwards, the OS does not allow applications to trigger wake-up commands when the trigger period is set to less than a minute. Therefore, make sure to set the notifier frequency to 60 seconds or more.

  • Firebase Cloud Messaging (FCM) - FCM will send a notification to the device when there are pending operations available for a specific device. If FCM has been selected as the notifier type, configure Entgra IoTS with Firebase Cloud Messaging (FCM).

    Firebase Cloud Messaging

  • End User License Agreement (EULA) - Provide the license agreement that a user must adhere to when enrolling an Android device with Entgra IoTS.

Android KIOSK Provisioning Configurations

Fill the fields with required values and click Save to apply the changes to the device.

Kiosk

Keys Description
PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME Package name of the Entgra Android agent. (ex: io.entgra.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver)
PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSUM Android agent download location. (ex: http://192.168.8.20:8080/android.apk)
PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOAD_LOCATION Android agent download location. (ex: http://192.168.8.20:8080/android.apk)
PROVISIONING_WIFI_SSID SSID of WI-FI network. ( ex:Entgra)
PROVISIONING_WIFI_SECURITY_TYPE SSID of WI-FI network. ( ex:Entgra)
PROVISIONING_WIFI_PASSWORD Wi-Fi security type of network.
NONE
WPA : WiFi Protected Access
WEP : Wired Equivalent Privacy
EAP : Extensible Authentication Protocol
SERVER_ADDRESS Server address ( ex: www.abc.com:8280 )
PROVISIONING_SKIP_ENCRYPTION Set value false to enroll KIOSK device without encrypting.
DEFAULT_OWNERSHIP BYOD
COPE
COSU
WORK_PROFILE
GOOGLE_WORK_PROFILE

Android for Work Configurations

Configure Android for Work Integration:

If you want to add Android Configuration for Work Integration enter the required fields and click Save to apply the changes.

Android for work

Keys Description
Server details provided by EMM vendor
Token
ESA
Enterprise ID

Unenroll Enterprise from EMM

If you want to Unregister your enterprise from the EMM server, click Unenroll. This action cannot be undone.

Unenroll

Installing Entgra Android Device Management App

Android devices are enrolled and managed using an application that is installed on the device, known as the Device Management Agent App. The Entgra Agent app can be installed by downloading it directly either from the Entgra IoT server, or via the Play store, as described below.

Download from Entgra IoT server There is an agent app bundled with the IoT server and that can be downloaded to your mobile device and installed. >**Prerequisites** > >- The server has to be [downloaded and started](../server). > >- Must have been logged on to the server's [Endpoint Management Portal](../login). 1. Step 1: Click **+ Add** under the **Device** tab. 2. Step 2: Click **Android** under device types. 3. Step 3: Click **Get Android Agent** under device types. 4. Step 4: Scan the QR code using the mobile device. New Android OS version includes the QR code scanning app in-built. If this is not available, a QR code scanning app can be downloaded from the Play Store. Follow the QR code scanned link to download the agent to the device. Alternatively, this page can be assed via the mobile device browser’s itself (follow steps 1-3 on the phone’s broswer) and click on **Download APK** to download the APK to the device. 5. Step 5 Once the app is downloaded, click **Open**. Depending on the OS version of the device, unknown sources has to be enabled to install the agent. In Android 8 and upwards, once you click **Open**, the following screen will be displayed. Select **Allow** from this source and go back. 6. Step 6: Click **Install** to install the agent.
Download from the Playstore >**Prerequisites** > >- The server has to be [downloaded and started](../server). > >- Must have been logged on to the server's [Endpoint Management Portal](../login). Visit the link `https://play.google.com/store/apps/details?id=io.entgra.iot.agent` using your mobile device or go to Google Play Store app in the mobile device and search for Entgra Device Management Agent and install the app.

Enroll Android Devices

This section describes the types of enrollment available for Android Devices. Prior to this section, make sure to follow the Installing Agent section. The available enrollment types are:

Android Enterprise Enrollment

Refer our Android Enterprise Guide section for the recommended enterprise work profile enrollment.

Fully Managed

Fully Managed type of enrollment is ideal for COPE (corporately-owned personally-enabled) devices where the organization gives out devices for its employees. With granular control over device data and security, and access to Android’s full suite of app management features, this type of enrollment offers comprehensive device management capabilities.

Some of the available features include setting the minimum password requirements on the device, ability to remotely wipe and lock the device, and setting up default responses to app permission requests. It is also possible to remotely install and/or remove apps with this type of enrollment.

Android Device Manual Enrollment as Fully Managed

Prerequisites

Steps

  1. Enter the following command on terminal or console to enable the device owner. adb shell dpm set-device-owner io.entgra.iot.agent/org.wso2.iot.agent.services.AgentDeviceAdminReceiver

  2. Open the Entgra Agent application.

  3. Click Continue after reading the Disclaimer that appears.

  4. On the next screen that appears next, click Manual Enrollment.

  5. Next, click COPE Enrollment in the screen that appears.

  6. Type in the server address which is the IP of the server and port as 8280. Click Start Registration. Type in the Username: admin, Password: admin then click Sign In.

  7. If you agree to the policy agreement that is shown next, click Agree to proceed.

  8. Click Activate in the device screen.

  9. Click Allow if you agree to the request for permissions for access to the device as indicated.

  10. Click Allow if you agree to using data usage monitoring to allow the server to check the data usage of the device.

  11. Allow the agent to change Do not Disturb status which is used to ring the device.

Android Device Enrollment as Fully Managed using QR Code

Prerequisites

Steps

  1. Open the Entgra Agent application.

  2. Click Continue after reading the Disclaimer that appears.

  3. In the screen that follows, click Enroll with QR Code.

  4. In the server, select device ownership as COPE.

  5. Scan QR code that is generated on the server.

  6. The enrollment will be on hold until user enables the device owner.

  7. Enter the following command in the terminal or on the console to enable device owner. adb shell dpm set-device-owner io.entgra.iot.agent/org.wso2 .iot.agent.services.AgentDeviceAdminReceiver

  8. Click Agree in the screen that appears, if you agree to and accept the licence.

Android Device Enrollment as a Dedicated Device

The Dedicated type of Android Device Enrollment, also known as COSU (Corporately-Owned Single-Use), is widely used with fully managed devices that serve a specific purpose. Examples of this type of usage include employee-facing device usage such as in inventory management, field service management, transport, logistics as well as customer-facing device usages like kiosks, digital signage, hospitality check-in etc.

Some of the significant features of Dedicated devices are:

  • Lock down devices to specific whitelisted apps
  • Block users from escaping locked down devices to enable other actions.
  • Set lock screen restrictions
  • Device sharing between multiple users (such as shift workers or public-kiosk users)
  • Suspend over-the-air (OTA) system updates over critical periods by freezing the OS version.
  • Remotely wipe and lock work data
  • Automatic compliance enforcement
  • Lock app(s) to screen
  • Automatic compliance enforcement
  • Distribute apps silently

Android Device Enrollment as a Dedicated Device using QR Code

Prerequisites

Steps

  1. Set platform configurations as indicated in the prerequisties.

  2. Click Enroll Device and select the device type.

  3. In the server, select the device ownership as COSU (KIOSK).

  4. Tap 6 times on the welcome screen after factory reset. Note: This only works for devices on and above android 9.0.

  5. Scan the QR code that is generated on the server.

  6. Read the license agreement and the privacy policy and then click Next to proceed with the enrollment.

Android Device Enrollment as a Dedicated Device using QR Code with Entgra Agent

Prerequisites

Steps

  1. Set platform configurations as indicated in the prerequisites.

  2. Click Enroll Device and select the device type.

  3. On the server, select the device ownership as COSU (KIOSK).

  4. Scan the QR code that is generated on the server.

  5. If you agree to the policy agreement is shown, click Agree to proceed.

  6. Click Allow if you agree to the request for permissions for access to the device as indicated.

  7. Click Allow if you agree to using data usage monitoring to allow the server to check the data usage of the device.

  8. Allow the agent to change Do not Disturb status which is used to ring the device.

  9. Enter and confirm a PIN code, which is required by the administrator to perform any critical tasks with user consent. Then click Set PIN Code to complete the enrollment.

Android Device Enrollment as a Legacy Device

Legacy enrollment allows you to manage settings and apps on the device. This type of enrollment offers wider control over the device allowing features such as the ones indicated below:

  • Factory Reset Protection (FRP) - for managing devices and for recovering in the event of employee leaving.

  • Reset device passwords - secure this feature on encrypted devices. Block removal of the device administrator.

  • Admin controlled passcodes - that enable locking the user out of a device.

Android Device Legacy Manual Enrollment

Prerequisites

Steps

  1. Open the Entgra Agent application.

  2. Click Continue after reading the Disclaimer that appears.

  3. On the next screen that appears next, click BYOD Enrollment.

  4. Click Skip and go to enrollment in the screen that appears next.

  5. Type in the server address which is the IP of the server and port as 8280. Click Start Registration. Type in the Username: admin, Password: admin then click Sign In.

  6. If you agree to the policy agreement that is shown next, click Agree to proceed.

  7. Click Activate in the device screen.

  8. Click Allow if you agree to the request for permissions for access to the device as indicated.

  9. Click Allow if you agree to using data usage monitoring to allow the server to check the data usage of the device.

  10. Allow the agent to change Do not Disturb status which is used to ring the device.

  11. Enter and confirm a PIN code, which is required by the administrator to perform any critical tasks with user consent. Then click Set PIN Code to complete the enrollment.

Android Device Legacy Enrollment Using QR Code

Legacy enrollment is deprecated and is designed to take control of the device and data in a BYOD setting.

Prerequisites

Steps

  1. Open the Entgra Agent application.

  2. Click Continue after reading the Disclaimer that appears.

  3. In the screen that follows, click Enroll with QR Code.

  4. In the server, select device ownership as BYOD.

  5. Scan QR code that is generated on the server.

  6. Click Activate in the device screen.

  7. Click Allow if you agree to the request for permissions for access to the device as indicated.

  8. Click Allow if you agree to using data usage monitoring to allow the server to check the data usage of the device.

  9. Allow the agent to change Do not Disturb status which is used to ring the device.

  10. Enter and confirm a PIN code, which is required by the administrator to perform any critical tasks with user consent. Then click Set PIN Code to complete the enrollment.

Enroll iOS

This section describes how an iOS device can be enrolled to the IoT server. Before moving into iOS device enrollment it would be beneficial to understand the basic concepts of iOS related MDM concepts.

Additional Server Configurations for Apple Devices

This section takes you through the additional server configurations required for setting up an iOS device.

Apple server configurations, both for iOS and Mac OS are given here in detail along with the platform configurations, based on the required enrollment method.

The configurations necessary for enrolling the device at the Apple DEP (Device Enrollment Program), for both iO and Mac OS, are listed in the section that follows.

Apple (iOS and MacOS) Server Configurations

Prior to enrolling an iOS device, there are some configurations that need to be done on the server.

Although iOS is a supported device type of Entgra IoT server, by default it is not bundled with the server.

Prerequisites

  • If you have not requested for iOS plugin before, please contact Entgra to get a copy.

  • If macOS support is needed in the plugin, please mention this in the description. As mentioned in system requirements, maven is needed to install the plugin.

Install iOS plugin

iOS device plugin is not bundled with the server as out-of-the-box and as mentioned in prerequisites, it has to be requested from Entgra. A zip file containing the installable will be sent by Entgra and this can be installed with Maven.

Steps

  1. Copy the iOS plugin zip mentioned in the prerequisites to IOT_HOME folder and extract.
  2. Using command prompt, goto IOT_HOME/ios-feature-deployer/ folder.
  3. Execute the following command mvn clean install -f ios-feature-deployer.xml.
  4. When the following question is asked Do you agree? (y,n) Type y and Enter to agree. Else, n to abort.

Run iOS Configurator

iOS configurator is a script designed to cut down certain manual configurations related to iOS.

Steps

  1. Using command prompt, goto IOT_HOME/ios-configurator/ folder
  2. Press Enter key to provide the default value and provide the following mandatory information with the server machine’s IP address:
    • Common Name
    • Server address

Customizing the iOS Bundle ID

If the bundle ID for the iOS agent is changed, the following changes have to be applied to the server configurations.

Steps

  • Open iot-server.sh file in IOT_HOME/bin folder and search for key -Dagent-bundle and add the agent bundle ID as the value.

  • Example -Dagent-bundle=“org.wso2.carbon.emm.mdmagent”.

Create MDM APNS Certificate

Communication from server to device (OS MDM client) about new commands are delivered through Apple push notification service (APNS). To facilitate this, the IoT server needs to communicate with APNS servers and this requires a special certificate. In order to create an MDM APNS certificate, one of the following is needed,

  • MDM vendor signing certificate which allow an EMM vendor to sign MDM APNS certificates for their customers
  • Get an MDM vendor to provide you with an MDM APNS certificate

Steps to get Entgra to provide you with an MDM APNS certificate

  • Step 1

This is the fastest approach and Entgra provides this server to valid customers. To do this, execute the following 2 commands on the commands prompt. The values provided when running these commands have no operation importance.

openssl genrsa -des3 -out customerPrivateKey.pem 2048 openssl req -new -key customerPrivateKey.pem -out customer.csr

  • Step 2

Keep the customerPrivateKey.pem file generate with above commands, secure along with the password used for private key. Email customer.csr file along with a description about the project details to contact@entgra.io to get a MDM APNS certificate. After an evaluation of the request, Entgra may send a file called plist_encoded

  • Step 3

Go to the Apple Push Certificate Portal at https://identity.apple.com/pushcert/ and log in with an Apple ID. It is highly recommended not to use personal Apple IDs for this process and to create a separate Apple ID for the organization. This Apple ID is needed when these certificate needs to be renewed and failure to access this Apple ID in the future will result in having to re-enrol all the devices in production.

  • If you are trying to renew the certificate, click Renew.
  • If not, Click Create Certificate and agree to the terms and conditions.
  • Upload the encoded plist_encoded file you received via email from Entgra.
  • Download the generated MDM signing certificate (MDM_Certificate.pem). The MDM signing certificate is a certificate for 3rd party servers provided by Apple.

  • Step 4

Run the following command and note down the userID value in the output. This will later be indentified as the topic ID.

`openssl x509 -in MDM_Certificate.pem -text -noout`
  • Step 5

Run the following 2 commands,

`openssl rsa -in customerPrivateKey.pem -out customerKey.pem
cat MDM_Certificate.pem customerKey.pem > MDM_APNSCert.pem`
  • Step 6

Open the MDM Apple Push Notification service (APNs) Certificate (MDM_APNSCert.pem) and ensure that there is a line break between the contents of the two files.

Example: The content will look as follows: —–END CERTIFICATE———-BEGIN RSA PRIVATE KEY—– Therefore, add a line break to separate the 2 certificates after 5 - (dashes) so that the content will look like what’s shown below:

`-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----`
  • Step 7

Run the following command to convert the MDM_APNSCert.pem file to the MDM_APNSCert.pfx file. You will need to provide a password when converting the file.

`openssl pkcs12 -export -out MDM_APNSCert.pfx -inkey customerPrivateKey.pem -in MDM_APNSCert.pem'

Decide Your Enrollment Method

Before moving on to next steps, a decision needs to be made according to the features required for the business usecase. As mentioned previously, iOS and MacOS has an in-built MDM client which is capable of performing majority of management tasks. However the agent is needed, if the business requirement needs the following feature,

  • Location tracking
  • Ring the device
  • Send a short notification message to device

If the above 3 features are not mandatory, please skip ahead to adding Platform Configurations section.

Create Agent APNS Certificate

This certificate is required to carry out operations on the device that need to be triggered via the iOS agent, such as ringing the device, getting the device location, and sending notifications or messages to the device. Therefore, if you are not installing the iOS agent on your devices, you do not need this certificate and this section can be skipped.

- **Prerequisites- **

- You have to be enrolled in the Apple Developer Program as an individual or an organization before starting the iOS server configurations.

- A valid distribution certificate that you obtained from Apple.
  • Step 1 Clone the ios-agent repository to a preferred location.

git clone https://gitlab.com/entgra/ios-agent

  • Step 2

Open the emm-agent-ios from X-Code and follow the subsequent steps:

  • Change the org.wso2.carbon.emm.mdmagent Bundle Identifier to a value prefered. Example: org.<ORGANIZATION_NAME>.emm.ios.agent

  • Select the development team, provisioning profile and sign certificate from Xcode.

  • If you are unsure of how to select the development team, or adding the provisioning profile or signing the certificate via Xcode, see the blog post on How to export “in-house” developed iOS app as an enterprise application.

  • Step 3

Log in to the Apple Developer program and follow the subsequent steps:

  • Before you follow the steps, confirm that your machine is connected to the Internet and that Xcode has a valid developer account.

  • Navigate to Certificates, IDs & Profiles that is under Identifiers. Click App IDs and see if the Bundle ID that you defined under Xcode is listed here.

Apple Configurations

  • Step 4

Click the Bundle ID, and click Edit.

Apple Configurations

  • Step 5

Creating an APNs SSL certificate:

Step 1. Select Push Notifications to enable the setting.

Apple Configurations

Once push notification is enabled, you are able to generate the development and production certificates.

Step 2. To try out the create certificate use case, let us create a development SSL certificate. Please note that the development SSL certificate is created only as an example. You can create a production SSL certificate if you have registered with the Apple Developer Program as an Organization.

Click Create Certificate that is under Development SSL Certificate.

Apple Configurations

  • Step 6

Creating a CSR file using the keychain access tool in the Mac OS:

Step 1. Launch the keychain access application. Step 2. On the menu bar click KeyChain Access > Certificate Assistant > Request a Certificate from Certificate Authority.

Apple Configurations

  • Step 3

Define the email address, common name, select Saved to disk, and click Continue.

Example:

Apple Configurations

  • Step 7

Go back to the Apple Developer Portal, upload the generated certificate, and click Continue.

Apple Configurations

  • Step 8

Exporting the certificate to the pfx format.

  1. Click Download to download the file.

    Apple Configurations

  2. Double-click the downloaded file to open it with the Keychain access tool.

  3. Right-click the certificate and select export.

  4. Define the location where you wish to save the file and set a password for the exported file when prompted.

  5. Rename the p12 extension of the file to pfx.

Add Platform Configurations

Before proceeding, note, if you require Apple DEP support, please complete Apple DEP configurations section first.

Steps

  • Log in to the device management console and Click > CONFIGURATION MANAGEMENT > PLATFORM CONFIGURATIONS > iOS Configurations and fill in the form with values you wish.

  • Use the generated MDM-APNS certificate for both the MDM certificate and the generated APNS certificate for the APNS certificate.

  • MDM Certificate: Upload the MDM APNS pfx file created (MDM_APNSCert.pfx)

MDM Certificate Password: Give the same password you gave when converting the MDM_APNS certificate from the pem to the pfx format.

MDM Certificate Topic ID: Give the topic ID of the certificate. If you are unsure of the topic ID, refer step 6 under generating the MDM APNS certificate.

APNS Certificate: If you are using Agent and completed Create agent APNS certificate section, please use that pfx. If not upload the MDM_APNSCert.pfx here as well APNS

Certificate Password: Give the same password you gave when converting the Agent APNS certificate to the pfx format. If Agent is not used, provide the same password as MDM_APNSCert.pfx

Apple Configurations

Tip: To learn more about each platform setting, hover your mouse pointer over the help tip.

Apple (iOS and MacOS) DEP Configurations

Device Enrollment Program (DEP) is a program provided by Apple to allow device management solutions to have control over corporate-owned devices. Let us take a look at what you need to do, to get started and understand why you need DEP.

Prerequisites

Apple server configurations must have been completed.

Benefits of using DEP Enables Zero Touch Provisioning (ZTP) for device enrollments for the convenience of IT administrators. Provides better control over iOS devices and provides the features described in the features section. Restrict the user from removing EMM Management from the device. Enrolling the Apple Device in the Enrollment Program The first step is to enroll your organization with Apple Device Enrollment Program (DEP) and link Entgra IoT Server’s EMM solution to your DEP portal. Follow the steps given below to enroll with DEP.

Steps ... Generate a DEP Token to Link EMM with Apple Now that the DEP account is created, EMM server must be made aware of this DEP account. In order to allow EMM server to talk to Apple DEP servers and link with the DEP account, a special server token has to be generated from Apple DEP portal and passed to EMM server.

Prerequisites

Download and install OpenSSL. Linux OS's have OpenSSL installed by default.

Steps ... Linking the Entgra with Apple DEP You can configure the device startup settings (activation) of the iOS devices, to skip configurations or include additional configurations. This is done by creating profiles in Entgra IoT Server and assigning them to the devices.

Steps ... Adding Devices to the Apple DEP Portal The Apple Device Enrollment Program (DEP) allows iOS devices purchased through the DEP program as well as those purchased outside of the program to be enrolled as supervised devices to a mobile device management system. You are required to add the devices to the Apple DEP portal to link the devices with the DEP system.

Adding Devices Purchased via DEP Steps ... Adding iOS Devices using the Apple Configurator The devices purchased outside DEP can be added manually to the DEP account. You need to plug in each device to a Mac and factory reset the device using THE Apple Configurator. Follow the steps given below:

Prerequisites

Devices that have an OS that is iOS 11 or higher. Apple Configurator 2.5 or higher.

Steps ... Creating and Assigning Activation Profiles to Devices Steps ... Enrolling DEP Devices Please refer iOS DEP Device enrollment section.

Enroll as BYOD

iOS Device Enrollment (BYOD) without Agent

Prerequisites

  • Server has to be downloaded and started.

  • Must have been logged on to the server's Endpoint Management Portal.

  • Click Add Device (https://{IP}:{port}/devicemgt/device/enroll).

  • Click iOS under DEVICE TYPES.

  • Scan the QR code that appear with a QR code scanning app or type https://{IP}:{port}/ios-web-agent/enrollment in safari browser.

If the Device is above iOS 12.2

(If you have installed OS updates after March 2019)

If the Device is bellow iOS 12.2

iOS Device Enrollment (BYOD) with Agent

Prerequisites

  • Server has to be downloaded and started.

  • Must have been logged on to the server's Endpoint Management Portal.

  • Click Add Device (https://{IP}:{port}/devicemgt/device/enroll).

  • Click iOS under DEVICE TYPES.

  • Scan the QR code that appears with a QR code scanning app or type https://IP:port/ios-web-agent/enrollment in safari browser.

If the Device is above iOS 12.2

(If you have installed OS updates after March 2019)

If the Device is below iOS 12.2

iOS DEP Enrollment

iOS DEP Device Enrollment (with/without agent)

All you need to do is start up the iOS device that was given to you by your organization and your device will be enrolled with EMM as a DEP device.

If your organization has configured the DEP profile to prompt for your username and password, you need to enter the username and password that is used within the organization.

Enroll macOS

Enroll macOS Device Manually

Prerequisites

Steps

  1. Copy the URL of QR code to the browser of the mac OS device.

  2. Click Enroll without agent.

  3. Click Install IoT Server Certificate.

  4. Open Key Chain Acess Application.

  5. Open the downloaded IoT Server Certificate.

  6. Set trust to Always trust for the downloaded IoT Server Certificate.

  7. Click Next.

  8. Type the Username: admin, Password: admin then click Sign in.

  9. Accept the Licence Agreement to continue.

  10. You will be prompted to confirm the installation of the profile to the device. Then click Install to install the profile to the device.

  11. You will be prompted to confirm the installation of the Mobile Device Management profile. Then click Install to install the Mobile Device Management profile to the device.

Enroll Windows

Windows Server Configuration

The Entgra IoTS client sends requests to the Entgra IoTS server through a Proxy Server. The Windows Entgra IoTS protocol constructs a URI that uses the host name by appending the domain of the email address to the subdomain, enterpriseenrollment for the each device request. Therefore, you can either purchase a domain name or create a DNS entry in the http://enterpriseenrollment. format.

For example, discover the Entgra IoT server by sending a request through: http://enterpriseenrollment./ENROLLMENTSERVER/Discovery.

As the Entgra IoT server can not create Windows service endpoints it is advisable to use a proxy server between the device and the Entgra IoT server.

The following subsections are given as examples to guide you on how to configure the proxy server for Windows. You can use any proxy server for this task but we recommend that you use NGINX as it is simple to try out.

Nginx Configuration A preferred server can be used as a proxy server between the device and the Entgra IoT server. The steps documented below is only an example of configuring the proxy server using NGINX, which is a known reverse proxy server. Follow the steps given below to configure the proxy Server: 1. Install NGINX in your production environment. Refer the following to install NGINX on a MAC or Ubuntu environment. * [nginx installation guide](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/) 2. Get an SSL certificate. Make sure that the common name of the certificate you are getting matches the constructed URI. {{< hint info >}} The Entgra IoTS client sends requests to the Entgra IoTS server through a Proxy Server. The Windows Entgra IoTS protocol constructs a URI that uses the hostname by appending the domain of the email address to the subdomain, enterpriseenrollment for each device request. Therefore, you can either purchase a domain name or create a DNS entry in the http://enterpriseenrollment.EMAIL_DOMAIN format. {{< /hint >}} ### To Create the SSL certificate * Create a file called openssl.cnf with the below content
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
[req_distinguished_name]
countryName = SL
countryName_default = SL
stateOrProvinceName = Western
stateOrProvinceName_default = Western
localityName = Colombo
localityName_default = Colombo
organizationalUnitName = ABC
organizationalUnitName_default = ABC
commonName = dev.abc.com
commonName_max = 64
[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = dev.abc.com
DNS.2 = enterpriseenrollment.dev.abc.com
{{< hint info >}} Add any domain name needed to subject alternatives - DNS {{< /hint >}} * Create the Private key-
openssl genrsa -out server.key 2048
* Create a Certificate Signing Request (CSR). Press enter to every input.
openssl req -new -out server.csr -key server.key -config openssl.cnf
* Sign the SSL Certificate.
 openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
3. Navigate to the /usr/local/etc/nginx directory, create a folder named ssl, and add the CA certificate and the private key to this folder. 4. Configure the /usr/local/etc/nginx/nginx.conf file with the details of the SSL certificate and the Windows endpoints as explained below. a. Compare the sample configuration file given below with your nginx.conf file and add the missing properties. {{< hint warning >}} What's given below is only an example. Compare your configuration file with what's given below and add the missing configurations or uncomment the commented configurations in the nginx.conf file. {{< /hint >}}
#user  nobody;
worker_processes  1;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
worker_connections  1024;
}
http {
include       mime.types;
default_type  application/octet-stream;
#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';
#access_log  logs/access.log  main;
sendfile        on;
#tcp_nopush     on;
#keepalive_timeout  0;
keepalive_timeout  65;
#gzip  on;
server {
listen       8080;
server_name  localhost;
#charset koi8-r;
#access_log  logs/host.access.log  main;
location / {
root   html;
index  index.html index.htm;
}
#error_page  404              /404.html;
# redirect server error pages to the static page /50x.html
#
error_page   500 502 503 504  /50x.html;
location = /50x.html {
root   html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
#    proxy_pass   http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
#    root           html;
#    fastcgi_pass   127.0.0.1:9000;
#    fastcgi_index  index.php;
#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
#    include        fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
#    deny  all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#    listen       8000;
# listen       enterpriseenrollment.dilan.me;
#    server_name  somename  alias  another.alias;
#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}
# HTTPS server
#
#server {
#    listen       443 ssl;
#    server_name  localhost;
#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;
#    ssl_session_cache    shared:SSL:1m;
#    ssl_session_timeout  5m;
#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers  on;
#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}
server {
listen 443 ssl;
server_name enterpriseenrollment.dilan.me;
ssl on;
ssl_certificate /usr/local/etc/nginx/ssl/certificate.crt;
ssl_certificate_key /usr/local/etc/nginx/ssl/private.key;
location /EnrollmentServer/Discovery.svc {
if ($request_method = GET) {
return 200;
}
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/discovery/post;
proxy_http_version 1.1;
}
location /ENROLLMENTSERVER/PolicyEnrollmentWebservice.svc {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/certificatepolicy/xcep/1.0.0;
proxy_http_version 1.1;
}
location /windows-web-agent {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:9763/windows-web-agent;

proxy_http_version 1.1;
}
location /ENROLLMENTSERVER/DeviceEnrollmentWebservice.svc {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/deviceenrolment/wstep/;
proxy_http_version 1.1;
}
location /ENROLLMENTSERVER/Win10DeviceEnrollmentWebservice.svc {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/deviceenrolment/enrollment;

proxy_http_version 1.1;
}
location /Syncml/initialquery {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/syncml/devicemanagement/1.0.0/request/;
proxy_http_version 1.1;
}
location /devicemgt {
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://192.168.8.100:8280/api/device-mgt/windows/v1.0/management/devicemgt/1.0.0/pending-operations/;
proxy_http_version 1.1;
}
}
include servers/*;
}
b. Configure the SSL certificate details.
server {
        listen 443;
        server_name enterpriseenrollment.wso2.com;
        ssl on;
        ssl_certificate /usr/local/etc/nginx/ssl/star_wso2_com.crt;
        ssl_certificate_key /usr/local/etc/nginx/ssl/enterpriseenrollment_wso2_com.key;
You need to configure the following properties: |Property |Description |Example | |-------------------|----------------------------------------------------------|----------------------------------------------------------| |server_name |Define the common name of the certificate. |enterpriseenrollment.wso2.com | |ssl_certificate |Define where you saved the SSL certificate. |/usr/local/etc/nginx/ssl/wso2_com_SSL.crt | |ssl_certificate_key|Define where you saved the private key of the certificate.|/usr/local/etc/nginx/ssl/enterpriseenrollment_wso2_com.key| c. Configure the Windows endpoints. * The GATEWAY_PORT used by default in Entgra IoTS for device management is 8280. * For more information on how the Windows endpoints are used, see [how the Windows device enrollment process message flow works](Windows-device-enrollment-message-flow). Example:
location /ENROLLMENTSERVER/PolicyEnrollmentWebservice.svc {
    proxy_set_header X-Forwarded-Host $host:$server_port;
    proxy_set_header X-Forwarded-Server $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    proxy_pass http://10.10.10.10:8280/api/device-mgt/windows/v1.0/certificatepolicy/xcep;

    proxy_http_version 1.1;
}
|Property|Description| |--- |--- | |location|This property specifies the "/" prefix that needs to be compared with the URI sent from the request. For more information, see the NGINX documentation.| |proxy_set_header|Required to configure Windows for reverse proxy.| |proxy_pass|Define the respective Windows endpoint.|
Apache2 HTTP configuration Any preferred server can be used as a proxy server between the device and the Entgra IoT server. The steps documented below is only an example of configuring the proxy server by using the Apache2 HTTP Server. The Apache Server can be configured using the forward or reverse proxy (also known as gateway) mode. The reverse proxy mode is used to configure Apache2\. You can download the Apache2 HTTP Server from [here](https://httpd.apache.org/download.cgi). Follow the steps given below to configure the proxy Server: #### Step 1: Configure reverse proxy A reverse proxy (or gateway) appears to the client like an ordinary web server with no special configuration required for the client. Ordinary requests for content is made by the client through the `name-space`. The reverse proxy redirects the requests, and returns the required output. The following modules are required to configure the reverse proxy: * `mod_proxy.so` This module deals with proxying in Apache. * `mod_proxy_http.so` This module handles connections with both the HTTP and HTTPS protocols. 1. Navigate to the `etc/apache2` directory and use the following command to enable the above modules: cd /etc/apache2 a2enmod proxy_http 2. Configure the `proxy.conf` file that is in the `/etc/apache2/mods-available` directory by including the configurations given below to the end of the file.
    ServerName localhost
    ProxyRequests off
    ProxyPreserveHost off
      <Proxy *>
      Order deny,allow
      #Deny from all
      Allow from all
      </Proxy>
    ProxyPass /ENROLLMENTSERVER/PolicyEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/certificatepolicy/xcep
    ProxyPassReverse /ENROLLMENTSERVER/PolicyEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/certificatepolicy/xcep

    ProxyPass /ENROLLMENTSERVER/DeviceEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/deviceenrolment/wstep
    ProxyPassReverse /ENROLLMENTSERVER/DeviceEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/deviceenrolment/wstep

    ProxyPass /Syncml/initialquery http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/syncml/devicemanagement/request
    ProxyPassReverse /Syncml/initialquery http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/services/syncml/devicemanagement/request

    ProxyPass /ENROLLMENTSERVER/Win10DeviceEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/deviceenrolment/enrollment
    ProxyPassReverse /ENROLLMENTSERVER/Win10DeviceEnrollmentWebservice.svc http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/deviceenrolment/enrollment

    ProxyPass /devicemgt  http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/management/devicemgt/pending-operations
    ProxyPassReverse /devicemgt  http://<server-ip>:<server-port>/api/device-mgt/windows/v1.0/management/devicemgt/pending-operations

    ProxyPass /windows-web-agent http://server-ip>:<server-port>/windows-web-agent
    ProxyPassReverse /windows-web-agent http://server-ip>:<server-port>/windows-web-agent


    The default `<server-ip>:<server-port>` is `localhost:9443.`

#### Step 2: Configure the Rewrite engine The first `GET` and `POST` HTTP requests are received by the same MDM endpoint and the rewrite conditions filter the device requests. By default the Apache Rewrite engine is disabled. Follow the steps given below to enable the Rewrite engine when running on Ubuntu: 1. Invoke the rewrite rules: 1. Create a `.htaccess` file in the `/var/www/` directory with the specific rewrite rules. 2. Enable the `mod_rewrite` module. `sudo a2enmod rewrite` 2. Configure the `000-default` file, which is in the `/etc/apache2/sites-enabled` directory. This step is required to replicate the configuration changes required in the Apache versions on a few files.In the older Apache versions, all virtual host directory directives were managed in the `apache2.conf` file, which is in the `/etc/apache2` directory. In the Apache 2.4.7 version this has changed and the alterations are handled within the `/etc/apache2/sites-enabled` directory. 1. Configure the value assigned to `AllowOveride` from `None` to `All` under ``. `AllowOverride All` 2. Configure the content under ``. If the `000-default` file does not contain the `Directory` tag you need to add it to the file as shown below: Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all 3. Restart the Apache server. `server.sudo service apache2 restart` **Rewrite Engine Configuration file format** RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(GET)$ RewriteRule /EnrollmentServer/Discovery.svc http://:/api/device-mgt/windows/v1.0/services/discovery/get [P,L] RewriteCond %{REQUEST_METHOD} ^(POST)$ RewriteRule /EnrollmentServer/Discovery.svc http://:/api/device-mgt/windows/v1.0/services/discovery/post [P,L] The default `:` is `localhost:9443.` #### Step 3: SSL configurations for Apache2 An SSL certificate is used to encrypt the information of a site and create a secure connection. Follow the steps given below to configure SSL for Apache2: SSL support is available as a standard on the Ubuntu 14.04 Apache package. 1. Enable the SSL Module. `sudo a2enmod ssl` 2. Create a subdirectory named `ssl` within the Apache server configuration hierarchy to place the certificate files. `sudo mkdir /etc/apache2/ssl` The Entgra IoTS certificate must be generated from a trusted authority. Once you have the Entgra IoT certificate and key available, configure the Apache server to use these files in a virtual host file. For more information, see[ how to set up Apache virtual hosts](https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts). 3. Configure the `default-ssl.conf` file, which is in the `/etc/apache2/sites-enabled` directory contains the default SSL configurations. SSLEngine on SSLCertificateFile /etc/apache2/ssl/ SSLCertificateKeyFile /etc/apache2/ssl/ SSLCACertificateFile /etc/apache2/ssl/ Example: SSLEngine on SSLCertificateFile /etc/apache2/ssl/star_wso2_com.crt SSLCertificateKeyFile /etc/apache2/ssl/star_wso2_com.key SSLCACertificateFile /etc/apache2/ssl/DigiCertCA.crt 4. Enable the SSL-enabled virtual host that you configured in the above step. `sudo a2ensite default-ssl.conf` 5. Restart the Apache server to load the new virtual host file. `sudo service apache2 restart`

Enrolling a Windows Device

  1. add an entry to the windows host files, for example:
192.168.8.100   dev.abc.com
192.168.8.100   enterpriseenrollment.dev.abc.com
  1. Go to windows Settings > Accounts > Access to work or school > Enroll only in device management

  2. A new window will appear to setup a work or school account. enter the email as:

admin@dev.abc.com

[!NOTE]

dev.abc.com is the dns provided when setting up the host file.

  1. once the email is submitted, the wizard will search for the organization and open a new window to log in to the IoT server admin. Once the login process is completed, it will enroll the device sync the policies

Additional Server Configurations for Windows

Multiple tenants can use Entgra IoTS while, maintaining tenant based isolation. The Windows configurations enable the tenants to customize the Windows settings based on their own requirements.

Follow the steps given below to configure the Windows platform:

  1. Sign in to the Entgra IoTS Device Management Console and click the menu icon.

Menu

  1. Click Configurations.

Menu

  1. Select Platform configurations.

  2. Click Windows Configurations and General Configurations.

Menu

  1. Enter the following:

  2. Polling Interval - Specify the time period for the wake-up command to automatically trigger the Entgra IoTS client as the notifier frequency. Ensure to specify the notifier frequency in seconds.

Note: For more information on the notifier type and the notifier frequency, see Windows Notification Method.

  • End User License Agreement (EULA) - Provide the license agreement that a user must adhere to, when enrolling an Windows device with Entgra IoTS.

Menu

  1. Click SAVE.

Additional Server Configurations for Windows

Follow the steps given below to configure the Windows platform:

  • Sign in to the Entgra IoTS Device Management Console.

  • Click Configurations.

  • Select Platform configurations.

  • Click Windows Configurations and General Configurations.

Enter the following:

Polling Interval - Specify the time period for the wake-up command to automatically trigger the Entgra IoTS client as the notifier frequency. Ensure to specify the notifier frequency in seconds.

Note: For more information on the notifier type and the notifier frequency, see Windows Notification Method.

End User License Agreement (EULA) - Provide the license agreement that a user must adhere to, when enrolling an Windows device with Entgra IoTS.

  • Click SAVE.

Enroll a Windows Device

[!PREREQUISITES]

  1. Server has to be downloaded and started.
  2. Must have been logged on to the server's Endpoint Management Portal.
  3. Click Add device (https://{IP}:{port}/devicemgt/device/enroll).
  4. Click Windows from DEVICE TYPES.

Steps

  1. Add host configuration to the windows host files.
  2. Add the server certificate to trusted root certification authorities.
  3. Go to access to work or school in Windows settings.
  4. Click enroll only in device management.
  5. Input admin@ in the pop-up window.