Generating an APNS Certificate
This section guides you on how to generate an APNS certificate. Why is this step required? You can register an iOS device with WSO2 IoT Server, with or without the WSO2 IoT Server's iOS agent. 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 don't need this certificate. Further, in iOS, the server passes messages to the client via the Apple Push Notification Service (APNS). When doing so in order to establish a secure connection between WSO2 IoT Server and the APNS server, a client SSL certificate needs to be generated and downloaded from Apple Inc. This APNS certificate is used to send an awake message to the iOS agent application. Prerequisites Follow the steps given below: Clone the Select the development team, provisioning profile and sign certificate from Xcode. If you are unsure of how to select the development team, or add the provisioning profile or sign the certificate via Xcode, see the blog post on How to export “in-house” developed iOS app as an enterprise application. 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.emm-agent-ios
repository to a preferred location.git clone https://github.com/wso2/emm-agent-ios
emm-agent-ios
from X-Code and follow the subsequent steps:org.wso2.carbon.emm.ios.agent
Bundle Identifier so that it matches your organization details.
Example: org.<ORGANIZATION_NAME>.emm.ios.agent
Once push notification is enabled, you are able to generate the development and production certificates.
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.
Example:pfx
format.
p12
extensionof the file to pfx
.
What's Next?
You need to configure the WSO2 IoT Server iOS client configurations.Â