In order to create a CSR file, you must have a MAC machine
- Go to the application folder on your MAC and open the Utilities folder.
- Open the Keychain Access utility.
- Click Keychain Access from the menu bar, and then go to Certificate Assistant.
- Select "Request a Certificate From a Certificate Authority".
- Enter the requested information into the certificate assistant. Make sure you choose the "Saved to disk" option, check the "Let me specify key pair information" box, and save the CSR file in a folder you can access later on.
- Go to Apple's developer's website (https://developer.apple.com/) and click on "Account" in the top right corner.
- Now go to the "Certificates, Identifiers & Profiles" section.
- Under Certificates create a new certificate by clicking the plus sign (shown here inside the yellow rectangle):
- From this point you should follow the instructions given on the website itself to create a certificate, however, you must make sure that the type of certificate you create is a developer type.
- After creating the certificate, download it and save it in a folder you can access on your computer.
- Now you must import that certificate to the Keychain Access utility on your Mac. Go to the Applications folder, and then into the Utilities folder. Find the Keychain Access icon and open the Keychain Access utility by double-clicking it.
- Go to "log in" under the Keychains section.
- Now, go to the File drop-down menu in the menu bar, and select "Import Items"
- Navigate to the folder in which you saved the .cer file you received from Apple (on step 10) and import it to the Keychain Access utility.
The certificate will be imported to Keychain with its private key.