iOS Developer Certificates
Note: Before generating certificates, make sure all Apple test devices are present in the developer account here: https://developer.apple.com/account/resources/devices/list (more info)
-
To find the UDID, plug the device into a mac and view it in finder. Right click on the device name to copy the UDID.
Exsting Developert Certs: https://www.dropbox.com/sh/09eorjsb0g4rf9u/AAD2YNsGKGE09Zg-su4CWJd8a?dl=0
You will generate the following files:
- Certificate Signing Request (only one is needed per development mac) in Keychain Access on your Mac. This must be from the mac you are working on in order to be able to generate the remaining certificates.
- Distribution Certificate from your developer account.
- .p12 File (bundles private key with certificate) from Keychain Access.
- Wildcard Provisioning Profile from your developer account.
Certificate Signing Request
- Launch Keychain Access located in
/Applications/Utilities
. - Choose Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
- In the Certificate Assistant dialog, enter an email address
mark.tenney@icloud.com
in the User Email Address field. - In the Common Name field, enter a name for the key (for example, "Digital Church Signing Request").
- Leave the CA Email Address field empty.
- Choose “Saved to disk,” then click Continue.
- Choose RSA 2048 bits.
- Save the
CertificateSigningRequest.certSigningRequest
file in [Dropbox > Development > Native Apps > Certification](sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer) > Local Machine Name
iOS App Development Certificate & .p12 File
iOS Push Notifications: Create .p12 File
- Login to developer.apple.com/account and click on Certificates
- Click on the blue plus button to Create a New Certificate
- Select iOS App Development and select Continue.
- Upload the CSR (Certificate Signing Request) file to your developer account and click Continue.
- Download your
ios_development.cer
and move it into [Dropbox > Development > Native Apps > Certification](sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer) > Local Machine - Open the
ios_development.cer
in Keychain Access and import it into your System keychain (not into your icloud keychain). - Search for "Distribution" in Keychain Access and find your newly added certificate. (Hint: it will be the one that expires in 365 days). Select both the Distribition Certificate AND the private key with the common name you used when you generated the CSR file above. Right-click and Export those files as a .p12 file.
- Set a password for the certificate and save in 1Password.
- Now you should have an
ios_development.cer
and aCertificates.p12
file in the development machine certificates folder. - Rename the
Certificates.p12
file toios_development.p12
Register a Wildcard Development ID
- Login to developer.apple.com/account and click on Identifiers.
- Click on the blue plus button to Register a New Identifier.
- Go to AppIDs > App and create a new app ID for the app. Enter "Wildcard Development" in the description. For the bundle ID, use
app.digitalchurch.*
- Confirm the details and click Register.
Wildcard Provisioning Profile
iOS Push Notifications: Create provisioning profile
- Login to developer.apple.com/account and click on Profiles.
- Click on the blue plus button to Register a New Provisioning Profile.
- Under Development, select iOS App Development and click Continue.
- Choose the "Wildcard Development" App ID and click Continue.
- Choose the Development Distribution Certificate and click Continue. (This MUST be the same certificate we used on previous files for this app.)
- Select the devices you wish to test with and click Continue.
- Name the Provisioning Profile
wildcard_development
and click Generate. - Download the new
wildcard_development.mobileprovision
file and move it into [Dropbox > Development > Native Apps > Certification](sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer) > Local Machine