Creating a Code Signing Certificate (.p12) from an Apple Developer ID Application Certificate
This guide provides step-by-step instructions to create a code signing certificate (.p12) from an Apple Developer ID Application certificate. This certificate is used to code sign your app for distribution outside of the Mac App Store Connect.
Steps
1. Generate a Certificate Signing Request (CSR)
- Open the Keychain Access application on your Mac.
- From the menu bar, select
Keychain Access>Certificate Assistant>Request a Certificate from a Certificate Authority.... - Enter your email address and common name. Leave the CA Email Address field blank.
- Select
Saved to diskandLet me specify key pair information. - Click
Continueand save the CSR file to your disk.
2. Request the Developer ID Application Certificate
- Go to the Apple Developer website and log in with your Apple ID.
- Navigate to
Certificates, Identifiers & Profiles. - Under
Certificates, click the+button to create a new certificate. - Select
Developer ID Applicationand clickContinue. - Upload the CSR file you generated in step 1 and click
Continue. - Download the generated certificate (
.cerfile) to your disk.
3. Import the Certificate into Keychain Access
- Double-click the downloaded
.cerfile to import it into Keychain Access. - The certificate should appear in the
My Certificatescategory.
4. Export the Certificate as a .p12 File
- In Keychain Access, locate the imported certificate under
My Certificates. - Right-click the certificate and select
Export. - Choose a location to save the file and select the
Personal Information Exchange (.p12)format. - Enter a name for the file and click
Save. - You will be prompted to create a password for the .p12 file. Enter a strong password and click
OK. - Enter your Mac user account password to allow the export.
5. Verify the .p12 File
- Ensure the .p12 file is saved at the specified location.
- You can use this .p12 file for code signing your applications.
By following these steps, you will have created a .p12 code signing certificate from an Apple Developer ID Application certificate.