Part 3: Preparing the Push Certificate and Generating Additional Certs

 

Part 3: Preparing the Push Certificate and Generating Additional Certs


Part 3: Preparing the Push Certificate and Generating Additional Certs

Step 8: Prepare the Push Certificate

  1. Export the Certificate:

    • Save it as mdm.p12 from Keychain Access.
  2. Convert to PEM Format:

    bash
    # Convert the p12 file to a PEM file openssl pkcs12 -in mdm.p12 -out PushCert.pem -nodes

Step 9: Generate Additional Certificates

  1. Run the Certificate Generation Script:

    • Navigate to the scripts directory and run:
      bash
      ./make_certs.sh
    • This script will generate necessary certificates and place them in the correct directories.
  2. Identify Important Files:

    • Most certificates will be moved to /server. Key files include identity.p12, which will be used later for creating configuration profiles.

Step 10: Create Enroll.mobileconfig Using iPhone Configuration Utility

  1. Open the iPhone Configuration Utility:

    • Create a new configuration profile under Configuration Profiles -> New.
  2. Configure General Settings:

    • Name: Enter a descriptive name.
    • Identifier: Use the identifier from the push certificate (com.apple.mgmt.External.hexstuffhere).
  3. Configure MDM Settings:

    • Server URLhttps://YOUR_HOSTNAME_OR_IP:8080/server
    • Check-In URLhttps://YOUR_HOSTNAME_OR_IP:8080/checkin
    • Topic: Matches the identifier from the General section.
    • Identity: Use identity.p12.
  4. Export and Save the Profile:

    • Save the profile as Enroll.mobileconfig and move it to your server directory.