Apple Mobile Device Management (MDM) requires an Apple Push Notification service (APNs) certificate; renewable yearly.
If APNs certificates are allowed to expire, all MDM communication will be lost, until addressed.
The following guide provides the steps to create and renew an APNs certificate using Windows.
An APNs certificate has a unique topic, in the form of a hexadecimal string, and belongs to the Apple ID used to create the certificate. When renewing, the topic must match to ensure devices continue to communicate with the server. As such, not only must the same Apple ID be used when renewing an APNs certificate, but the current certificate must also be selected for renewal.
The cmd.exe application should be opened with 'Run as an Administrator' for all commands in this KB.
- An appropriate copy of OpenSSL, which must be downloaded and installed.
Creating the Certificate Signing Request (CSR)
- Open cmd.exe as an Administrator
Create a CSR. Enter the following command, which will result in two new files on the Desktop: request.csr and privateKey.key:
Certificate Private Key names are visible from openssl commands and the Common Name is used to set the Private Key name. Supplying the Apple ID and Server as the Common Name, ensures the Apple ID used to generate the certificate will be stored for future reference.
Sign the CSR
CSR requests must be signed before uploading to Apple. FileWave has a portal for this process, which requires an active FileWave account.
- Navigate to https://www.filewave.com/support/csr-portal and login.
- Upload the previously created CSR.
- 'Download signed CSR' should list this uploaded and now signed CSR.
- Download this newly signed CSR, ready for upload to Apple in the next section. Again consider where this certificate is stored.
Upload the signed FileWave CSR to Apple
Creating a Certificate
Navigate to: https://identity.apple.com/pushcert/ and log in with an Apple ID.
This Apple ID will own the certificate and is required for every renewal. Do not use a personal Apple ID, to avoid complications if that person where to leave the business or institution.
- Click 'Create'.
Renewing a Certificate
- Navigate to: https://identity.apple.com/pushcert/ and log in with the Apple ID used to initially create the certificate.
- Confirm the Certificate to renew.
- Select 'Renew'.
To confirm the certificate, compare the Subject DN (Topic) and current certificate.
Clicking the 'i' button will show the certificate details, including the Topic:
Ensure this matches with the 'Current Certificate' in FileWave Admin > Preferences > Mobile > Apple Push Notification Certificate:
If the 'Topics' do not match do not continue. If the correct certificate is not in the list on Apple's website, this is the wrong Apple ID. If this guide was followed in creating the original certificate, the previously used Apple ID will be viewable from the certificate "Private Key".
Click 'Choose File' and browse to the signed FileWave CSR from the previous section.
Click 'Upload' and Apple will return a 'Confirmation'.
Click 'Download' and save the ".pem" file. Again consider where this certificate is stored.
Create a ".p12" from the Signed CSR
- Open cmd.exe as an Administrator
Create a ".p12". Entering the following command will create the ".p12" on the Desktop:
Leave the 'Export Password' blank
Certificate details may be checked:
Common Name and Topic
The name of the Private Key will show the value defined as the "Common Name" from the creation of the CSR. Where recommendation was followed, this should list the Apple ID and Server name. Additionally the name of the Certificate is the same as the Topic.
Note, below image has been edited to remove some details and highlight the two key items of interest.
Uploading the Certificate into FileWave
- Launch the FileWave Admin and login to the FileWave server.
- Open the FileWave Admin Preferences.
- Select the 'Mobile' tab.
- Click 'Browse' and navigate to the saved ".p12" APNs certificate.
- Select the exported ".p12" certficate.
- Click 'Upload APN Certificate/Key Pair'.
- The topic should match the previous topic.
- That is it! FileWave may now manage Apple devices using Apple’s Push Notification Service.
APNs certificates require yearly renewals. Through FileWave Admin > Dashboard > Alert Settings, automated emails may configured. Consider adding 'APN for MDM'. Note this requires the Email preferences in Admin to be configured.