|
| 1 | +# Creating a Code Signing Certificate (.p12) from an Apple Developer ID Application Certificate |
| 2 | + |
| 3 | +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. |
| 4 | + |
| 5 | +## Steps |
| 6 | + |
| 7 | +### 1. Generate a Certificate Signing Request (CSR) |
| 8 | +1. Open the Keychain Access application on your Mac. |
| 9 | +2. From the menu bar, select `Keychain Access` > `Certificate Assistant` > `Request a Certificate from a Certificate Authority...`. |
| 10 | +3. Enter your email address and common name. Leave the CA Email Address field blank. |
| 11 | +4. Select `Saved to disk` and `Let me specify key pair information`. |
| 12 | +5. Click `Continue` and save the CSR file to your disk. |
| 13 | + |
| 14 | +### 2. Request the Developer ID Application Certificate |
| 15 | +1. Go to the [Apple Developer](https://developer.apple.com/) website and log in with your Apple ID. |
| 16 | +2. Navigate to `Certificates, Identifiers & Profiles`. |
| 17 | +3. Under `Certificates`, click the `+` button to create a new certificate. |
| 18 | +4. Select `Developer ID Application` and click `Continue`. |
| 19 | +5. Upload the CSR file you generated in step 1 and click `Continue`. |
| 20 | +6. Download the generated certificate (`.cer` file) to your disk. |
| 21 | + |
| 22 | +### 3. Import the Certificate into Keychain Access |
| 23 | +1. Double-click the downloaded `.cer` file to import it into Keychain Access. |
| 24 | +2. The certificate should appear in the `My Certificates` category. |
| 25 | + |
| 26 | +### 4. Export the Certificate as a .p12 File |
| 27 | +1. In Keychain Access, locate the imported certificate under `My Certificates`. |
| 28 | +2. Right-click the certificate and select `Export`. |
| 29 | +3. Choose a location to save the file and select the `Personal Information Exchange (.p12)` format. |
| 30 | +4. Enter a name for the file and click `Save`. |
| 31 | +5. You will be prompted to create a password for the .p12 file. Enter a strong password and click `OK`. |
| 32 | +6. Enter your Mac user account password to allow the export. |
| 33 | + |
| 34 | +### 5. Verify the .p12 File |
| 35 | +1. Ensure the .p12 file is saved at the specified location. |
| 36 | +2. You can use this .p12 file for code signing your applications. |
| 37 | + |
| 38 | +By following these steps, you will have created a .p12 code signing certificate from an Apple Developer ID Application certificate. |
0 commit comments