Skip to main content

APNs Certificate Creation & Renewal on Windows Computers

Description

Apple Mobile Device Management (MDM) requires an Apple Push Notification service (APNs) certificate; renewable yearly.

Renew before expiry
An expired APNs certificate stops Apple MDM communication. Update Model cannot restore that communication until the certificate is renewed. Keep an owner and a renewal reminder for the certificate.

image.png

Use the FileWave Central/Server 17 wizard below as the primary route. The manual Windows OpenSSL procedure remains available for earlier releases or when you need to prepare and upload a certificate/key pair manually. Choose one route; the manual steps are not prerequisites for the wizard.

APNs Topic
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.

FileWave 17: create or renew in Central

Use this route with FileWave Central and Server 17.0 or later. Central prepares the signed Certificate Signing Request (CSR) and installs the certificate returned by Apple. You still sign in to Apple's portal and choose whether to create or renew a certificate. You do not need Keychain Access, OpenSSL, or a manually prepared .p12 file for this route.

Before you start

  • Connect to the intended Server with an administrator account authorized to manage its APNs certificate. Check the currently installed certificate's topic and expiration before creating anything. If it is already valid and no renewal is needed, keep it.
  • Have a valid FileWave license. The Server must be able to reach FileWave's signing service at csr.filewave.com, which validates the license through FileWave's licensing service. Your administration workstation must be able to open Apple's Push Certificates Portal.
  • Use an organization-controlled Apple Account. For renewal, you need the account that owns the installed certificate and the same certificate in that account. Record the account, Server, topic, and renewal date securely; do not store the account password with certificate files.

Renewal must preserve the topic. Replacing the current certificate with one that has a different topic disconnects enrolled devices and requires them to re-enroll. If Apple or Central shows a different topic, stop and locate the existing certificate with its owning Apple Account. Do not use the topic-check override as a routine renewal remedy. If you cannot regain access, contact Apple Deployment Programs Support before creating a replacement.

Use the wizard

  1. In FileWave Central, open Preferences > Enrollment > Apple. In the Apple Push Notification Certificate section, click Renew / Create APN Certificate…. The wizard opens as Renew / Create APN Certificate. Older Central examples call the Enrollment tab Mobile; Enrollment is the name from 16.4.1 onward.
  2. Review the current certificate information and the Apple Account to use, then click Next. FileWave prepares the signed CSR; follow the wizard's file-manager and browser handoff to the signed request and Apple's portal. Keep that request available for the upload at Apple.
  3. Renew an existing certificate: sign in to Apple's portal with its owning Apple Account. Open the certificate's information and compare its Topic (Subject DN) with the current topic in Central. Only when they match, choose Renew for that certificate and upload the signed CSR from the wizard. Download the renewed certificate. Do not choose Create for a routine renewal.
  4. First creation only: if this Server has no APNs identity to preserve, sign in with the organization-controlled Apple Account, choose Create a Certificate, accept Apple's terms, and upload the signed CSR from the wizard. Download the new certificate. This is an alternative to the renewal step, not an additional step after it.
  5. Return to the wizard's Download and install the certificate screen. If the downloaded certificate has not been picked up, use Select Downloaded Certificate… to select Apple's downloaded PEM certificate. Stop if a topic-mismatch warning appears; return to the correct certificate and account rather than overriding it.
  6. When the wizard reports The APN certificate was installed successfully., review the displayed subject/topic and expiration, then click Finish. Check the current certificate in Preferences and click OK to close Preferences. For renewal, the topic must be unchanged and the expiration extended.

Continue with verification and renewal reminders. Do not also perform the manual procedure below after completing the wizard.

If signing fails, check license validity and the Server's connectivity to the signing service. If Apple's portal does not open, open the portal on your workstation and use the signed request provided by the wizard. Do not create a different Apple certificate to work around a signing or account-access problem.

Manual Windows OpenSSL route

Use this branch for FileWave versions before 17 or a deliberate manual certificate/key upload. The screenshots illustrate the older manual interface. From Central 16.4.1, use Enrollment > Apple; older versions use Mobile > Apple. Complete this branch instead of the wizard, not in addition to it.

Prerequisites

  • Access to the Apple Push Certificates Portal (https://identity.apple.com/pushcert/)
  • An organization-controlled Apple Account that can use the Apple Push Certificates Portal; for renewal, the account that owns the current certificate
  • Access to the FileWave Central console
  • OpenSSL for Windows installed: https://slproweb.com/products/Win32OpenSSL.html
    • Download the full version (not the light version, as it needs configuration files)

Administrator Access
All cmd.exe commands in this manual branch must be run with 'Run as Administrator'.

Step 1: Generate CSR (Certificate Signing Request)

  1. Open cmd.exe as an Administrator
  2. Create a CSR by entering the following command. This will create two files on the Desktop: request.csr and privateKey.key:
"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" req -out "%USERPROFILE%\Desktop\request.csr" -new -newkey rsa:2048 -nodes -keyout "%USERPROFILE%\Desktop\privateKey.key" -config "C:\Program Files\OpenSSL-Win64\bin\cnf\openssl.cnf"
  1. When prompted, enter values for the certificate fields. For Common Name, use a descriptive name like your Apple ID and server name (e.g., company@example.com - FileWave Server). This helps you identify the certificate later.

Common Name and private-key storage
The Common Name is a descriptive value in the CSR, not proof of the owning Apple Account or Apple-issued topic. The command uses the filename privateKey.key regardless of the Common Name. Record the account separately and protect the private key, signed request, certificate, and .p12 files. Do not share their contents in screenshots or support notes.

1 windows_cmd_csr_creation.png

Step 2: Sign the CSR with FileWave

Before the CSR can be uploaded to Apple, it must be signed by FileWave.

  1. Navigate to https://csr.filewave.com/ and log in with your FileWave account
  2. Upload the request.csr file you created in Step 1
  3. Under Download signed CSR, your uploaded CSR should now appear as signed
  4. Download this newly signed CSR – this is the file you will upload to Apple in the next step
  5. Store the file in a secure location

csr_portal.png

Step 3: Upload the signed FileWave CSR to Apple

If you are renewing a certificate, skip to Renewing an existing certificate below.

Creating a new certificate
  1. Go to the Apple Push Certificates Portal: https://identity.apple.com/pushcert/
  2. Sign in with an Apple ID (⚠️ do not use a personal Apple ID – use a generic business or institution Apple ID for long-term use)
  3. Click Create
  4. Accept Apple's Terms of Use
  5. Click Choose File and upload the signed FileWave CSR from Step 2
  6. Click Upload – Apple will confirm the request
  7. Download the issued APNS certificate (.pem or .cer) and store it securely

create_push.png

After first creation and download, skip the renewal-only steps and continue to Step 4: Create a .p12 file.

Renewing an existing certificate
  1. Go to https://identity.apple.com/pushcert/ and log in with the same Apple ID that owns the certificate
  2. Locate the certificate to renew and click the info (i) button to view certificate details, including the Topic 

    APNS renewal.003.png

  3. Compare this Topic with the 'Current Certificate' in FileWave Central > Preferences > Enrollment > Apple > Apple Push Notification Certificate 

    APNS renewal.001.png

Topic mismatch
If the topics do not match, stop. Verify that you signed in with the Apple Account that owns the installed certificate and selected that same certificate. Use your protected setup records to identify the account; the private-key filename is not proof of account ownership. Contact Apple for help before creating a replacement.

  1. Click Renew
  2. Upload the signed FileWave CSR from Step 2
  3. Click Upload – Apple will confirm the request 

    apns_confirmation.png

  4. Download the renewed APNS certificate (.pem or .cer) and store it securely 

    signed_csr_download.png

Step 4: Create a .p12 file from the Signed Certificate

  1. Open cmd.exe as an Administrator
  2. Create a .p12 file by entering the following command. Replace the file paths if necessary, and note that MDM_FileWave.pem is an example – use your actual downloaded certificate filename:
"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" pkcs12 -export -in "%USERPROFILE%\Downloads\MDM_FileWave.pem" -inkey "%USERPROFILE%\Desktop\privateKey.key" -out "%USERPROFILE%\Desktop\push_cert.p12" -name fw-apns
  1. When prompted for the Export Password, leave it blank and press Enter 

    cerate_p12.png

Path Issues
If the command errors when creating the .p12 file, replace the %USERPROFILE% variable with the full file path (e.g., C:\Users\YourUsername\).

  1. Inspect the local certificate bundle with the following command. Its output can include private-key material: keep it local and do not copy it into tickets, chat, or screenshots.
"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" pkcs12 -info -in "%USERPROFILE%\Desktop\push_cert.p12"

This displays certificate and key information. Confirm the Apple-issued certificate topic against the certificate selected in Apple and, for renewal, the current certificate in Central. Do not require the Apple-issued certificate Common Name to equal the descriptive Common Name entered in the CSR.

openssl_private_key.png

The image above is an older metadata example. The export command in this guide uses fw-apns as its friendly name; it does not automatically record the Apple Account. Keep that account in your protected setup records.

Common Name and topic are different checks
A CSR label or private-key filename does not establish the Apple-issued topic. The renewal identity is the same certificate/topic in the same owning Apple Account.

Step 5: Upload the certificate into FileWave

  1. Launch FileWave Admin and log in to your FileWave server
  2. Open Preferences 

    filewave_admin_prefs.png

  3. Select Enrollment > Apple (or Mobile > Apple in older versions) 
  4. Click Browse and navigate to the push_cert.p12 file you created in Step 4
  5. Select the file and click Upload APN Certificate/Key Pair

APNS renewal.001.png

For renewal, the topic must match the previous topic. FileWave Central warns when the topics do not match. Stop on that warning rather than accepting a replacement:

APNs Mismatch Warning.png

Click OK to save and close the Preferences dialog.

An accepted upload configures the certificate; check its topic and expiration before relying on it for Apple MDM.

Step 6: Verification

  • Confirm the installed topic and expiration; for renewal, the topic must be unchanged and the expiration extended.
  • Review existing MDM status, recent command history, and certificate errors without sending device work. Continue with verification and renewal reminders.

APNs certificates require yearly renewals. Through FileWave Admin > Dashboard > Alert Settings, you can configure automated email reminders. Consider enabling the 'APN for MDM' alert. Note: this requires Email preferences in Admin to be configured.

Verification and renewal reminders

After either route, check the certificate displayed in Central: the intended topic, a future expiration date, and no certificate error. For a renewal, compare the topic with the value recorded before you started and confirm that the expiration has advanced. Review existing MDM status and recent command history for certificate errors without sending a new command. A successful install and the displayed certificate establish configuration readiness; they do not by themselves prove a device has received management work.

Do not run Update Model merely to refresh the certificate display or commit an APNs installation. A Model Update is a separate management operation that can release pending device work; it is not a harmless certificate check. If you later need an end-to-end device test, plan that separately with the device and pending work in scope.

Record the owning Apple Account, unchanged renewal topic, and new expiration in your protected administration records. Set a calendar reminder before the annual expiration. In Central, use Dashboard > Alert Settings > APN for MDM for an additional alert; email delivery also requires working Server Mail Preferences.

Contact Apple for help

If you cannot identify or access the Apple Account that owns the certificate, contact Apple Deployment Programs Support before creating a replacement certificate:

Contact Apple for help with APN