How do I create iOS certificate?

An Apple certificate and Provisioning file are required to build ZIZERA iOS apps using ZIZERA App builder. A membership in the Apple Developer Program is required to obtain these files.

Note:

  • The Development certificate allows to install the iOS apps on a pre-selected set of specific devices.
  • The Distribution certificate is used once the app is ready to be published at the iOS app store.

Create certificate file

The certificate file for iOS can be created either on Mac or Windows.

Create file on Mac

Learn more about how to obtain an Apple Developer Certificate through this Apple documentation.

To export the certificate in P12 format:

  1. Open the Keychain Access application.
  2. Add the certificate to the Keychain by selecting File > Import.
  3. Select the certificate file (".cer") obtained from the Apple Developer account.
  4. Select the Keys category in the Keychain.
  5. Select the private key associated with the iPhone Development certificate.
    Note: The private key can be identified by the iPhone developer from the paired public certificate.
  6. Command-click on the iPhone Developer certificate.
  7. Select Export "iPhone Developer: <Name…>".
  8. Save the Keystore in the Personal Information Exchange (".p12") file format.
  9. Enter a password and verify the same when prompted by the Keytool.
    Note: This password is required by the Certificate.p12 to sign the application.
create-certificate-file-ios2

Create file on Windows

1. Download and install OpenSSL.

2. Run the following command-line statement from the OpenSSL bin directory to convert the Apple developer certificate file obtained from Apple into a PEM certificate file.

openssl x509 -in developer_identity.cer -inform DER -out developer_identity.pem -outform PEM

3. Convert the private key obtained from the keychain on a Mac computer into a PEM key using the below command.

openssl pkcs12 -nocerts -in mykey.p12 -out mykey.pem

4. Generate a valid Personal Information Exchange (".p12") file, based on the key and the PEM version of the iPhone developer certificate.

openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out iphone_dev.p12

5. After exporting the certificate file, register the device for which the file is created.

Register devices

  1. Visit the Apple Developer web site.
  2. Navigate to the Device pane > Manage tab.
  3. Add the Device Name and the Device UDID (which is 40 hex characters).