This documentation is for WSO2 IoT Server 3.0.0. View the documentation for the latest release.
Due to a known issue do not use JDK1.8.0_151 with WSO2 products. Use JDK 1.8.0_144 until JDK 1.8.0_162-ea is released.
Installing iOS Features via the P2 Repository - IoT Server 3.0.0 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

The P2 repository contains the feature list required to enable iOS.  

If you are on a Windows OS, be sure to point the -Dcarbon.home property in the product's startup script (wso2server.bat) to the product's distribution home (e.g.,
-Dcarbon.home=C:\Users\VM\Desktop\wso2iot-3.0.0). Alternatively, you can also set the carbon.home as a system property in Windows. Then, restart the server. Without this setting, you might not be able to install features through the management console.

Where do I get the P2 repository from?

 After you obtained the signed CSR and submitted it, the WSO2 Account Managers will evaluate the CSR file you submitted. Once the evaluation process is complete, you will receive an email with the following:

  • WSO2 MDM Connector for iOS
    This contains the P2 repository with the iOS features, End User License Agreement (EULA) and the README.txt file.
    The README.txt includes the installation instructions and the URL to the cdmf-agent-ios repository, which contains the agent source code.
  • The signed CSR file in the .plst format

If you failed the evaluation process or have your own signed certificate, fill the Contact Us form, select IoT as the area of interest, and request for the P2 repository, which is needed to configure WSO2 IoT Server for iOS.

Follow the instruction below to install the iOS features via the P2 repository you received via email:

  1. Only start the core profile of the WSO2 IoT Server.

    cd <IoT_HOME>/core/bin
  2. Access the Management Console.

  3. Click Features on the Configure tab.
  4. Click Add Repository that is on the Repository Management tab to add the repository to the server.
  5. Fill out the Add Repository form and click Add.
    1. Enter a preferred name for the repository as the Name.

    2. Select the Location.
      If the local option is selected for location, you need to provide the path to the current working directory. 
      Follow the steps below to retrieve the path:

      1. Unzip the file you received via email when obtaining the CSR file and navigate to the respective directory.

        cd <IOT_HOME>/p2-repo
      2. Retrieve the output path of the current working directory.


        Example output:

  6. Click the Available Features tab and select the respective repository, and click Find Features.

    If the Group features by category is selected by default, deselect it before checking for the available features.

  7. Select the feature and click Install.
  8. Click Next.
  9. Accept the license agreement and click Next to install the features.

  10. Once the features are successfully installed, you will be prompted to click Restart Now and Restart Later.

    Until you complete step 10 and 11 don't click Restart Now.

  11. Update the following parameters in the ios-config .xml file, which is in the <IoT_HOME>/core/repository/conf directory: 
    Enter the server IP or the server domain name for the following parameters:

    • iOSEnrollURL

    • iOSProfileURL

    • iOSCheckinURL

    • iOSServerURL TokenURL

    For example:

    <?xml version="1.0" encoding="ISO-8859-1"?>
        <!-- iOS MDM endpoint urls -->
  12. Open the <IoTS_HOME>/core/repository/conf/iot-api-config.xml file and replace localhost with your IP or hostname.
    For example: 

        <!-- IoT server host name, this is referred from APIM gateway to call to IoT server for certificate validation-->
        <!--End point to verify the certificate-->
        <!--Admin username/password - this is to use for oauth token generation-->
        <!--Dynamic client registration endpoint-->
        <!--Oauth token endpoint-->
  13. Open the product's startup script based on your OS (i.e., for Linux/Solaris and wso2server.bat for Windows), which is in the <IOT_HOME>/core/bin directory and add the IP addresses.
    For example:"" \"" \"" \
  14. Uncomment the APNSBasedPushNotificationProvider that is under the PushNotificationProviders configuration in the <IoT_HOME>/core/repository/conf/cdm-config.xml file.
    For example:

  15. Navigate to the <IoT_HOME>/core/repository/deployment/server/synapse-configs/default/api directory and replace localhost with your <SERVER_IP> for the files listed below:

    • admin--IOS-Enrollment-Profile.xml

    • admin--IOS-Enrollment-Scep.xml

    • admin--IOS-Enrollment.xml

  16. Go back to the IoTS Management console and click Restart Now.

What's next?

Next, you need to configure the general iOS server settings.

  • No labels