Apple tries to make signing IPAs complicated to stop people from sideloading. Starfiles is here to help. This post will demonstrate how to make a certificate in a simple step-by-step format (with screenshots).
Before we get started, confirm you have a developer account. You can get a developer account from Apple’s developer portal, they cost $100 + tax per year. Anyways, now that you have your developer account ready, here’s how to make a certificate.
Step 1 – Generating a Certificate Signing Request (CSR)
- Open the “Keychain Access” app on a Mac.
- Navigate to “Keychain Access”->“Certificate Assistant”->“Request a Certificate From a Certificate Authority” in the menubar.
- Fill out your email, a common name (can be anything), and a CA email (the email address of your developer account), then select “Saved to Disk” and click “Continue”.
Great, you now have a CSR file saved to your computer. The CSR file will be used to request a certificate from Apple.
Step 2 – Create a Certificate (CER)
- Login to the Apple developer portal.
- Under “Certificates”, create a new certificate.
- Select “iOS Distribution (App Store and Ad Hoc)” and click “Continue”.
- Upload the CSR file you created in step 1 and click “Continue”.
- Click “Download”
Awesome! You now have a CER file, next, we’ll covert it to a P12 which we’ll use to sign apps.
Step 3 – Convert the CER file into a P12
- Reopen “Keychain Access” on your Mac.
- Make sure you have the “login” tab selected on the left sidebar, then click “Certificates”.
- You will see a list of certificates (which I have covered in red in the screenshot), drag your CER file into the list.
- Right click the certificate you just imported (the expiration date should be exactly 1 year from the creation date), then click “export”.
- Save the file as a P12 and set a password do not forget the password.
You now have the P12 file, that is what you’ll need to sign apps.
Step 4 – Create an Identifier
- Reopen the developer portal, and navigate to “Identifiers”.
- Click the blue + button, then ensure you have “App IDs” selected, then continue.
- You will be asked to select an identifier type, select “App” and continue.
- Set your bundle ID to “Wildcard” and write
com.*, your description can be anything.
- Click “continue”.
Your developer account now has an identifier set, this will be used to create the mobileprovision.
Step 5 – Create a Profile (mobileprovision)
A mobileprovision defines the list of devices permitted to use your certificate. Before continuing, make sure you have every device you want to use to sideload linked to your developer account (this can be done in the device tab). If you’re using Starfiles API to create profiles and register devices, you only need to add one device to the profile, you can add the rest later using our API.
- Open the Apple developer portal.
- Select “Profiles” and create a profile.
- Select “Ad Hoc” and press “Continue”.
- Select the Identifier you made in the previous step, then click “Continue”.
- Select the certificate you made in step 2, then click “Continue”.
- Select the device(s) you want to allow to sideload, click “Continue”.
- Type any name for your profile, click “Generate”, then “Download”
You now have the certificate you need to sideload with, specifically the
mobileprovision files, and possibly your p12 password.