Android and iOS app certificate

Last Updated On April 29, 2020
You are here:

This process requires active Apple Developer Account (99$/year) and a Google Developer Account (25$). If you don’t have one please contact us, we can provide our for you.

If you find these steps too hard for your, please provide us your Apple and Google accounts to do it for you.

To publish your app through your developer account you need to create the certificate to sign the app. You need to send some files to make us able to publish the app for you. Here the steps to follow:

Android Credentials

The Android keystore, used for signing apps, can be generated using keytool, which is included in the Java JDK. Change MY-RELEASE-KEY and MY_ALIAS_NAME to be relevant to your app. The tool will ask you to enter a keystore password and a key password. So use this command on your shell:

keytool -genkey -v -keystore MY-RELEASE-KEY.keystore -alias MY_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000

Apart from the two password mentioned before, other fields will be asked to be filled during the generation of the keystore. In the bellow’s image you could see an example of the execution of this command:

Compile all the information required by Google Play. Check then our Final Step.

To sign and publish the app go to the relative guide.

iOS Credentials

You’ll need an Apple Developer account (Individual or Organisation). (Here a full guide for iOS publishing)

Registering your App ID

Every app must register an ID with Apple.

iOS App id
  • Under Explicit App ID, set the Bundle ID to the ID we’ve specified in your app’s config.xml file. iOS Bundle IDs are represented as a reversed address, such as com.customlistingapp.italiancodersyour Bundle ID is your customlistingapp.domain if you didn’t specify one to us. For example, if your website is www.dom.com the Bundle ID will be: com.customlistingapp.dom

Distribution/Development Certificates

Now open Xcode and go inside “Preference” under the tab “Xcode“.
Once there, go under the tab “Accounts” and add your; a new tab should appear showing it.
Select it and click on the button “Manage certificates“, on the bottom left you will find a plus button.
Click on it and add a Distribution and a Development Certificates.

Using OpenSSL (Windows and Linux)

  • Generate a private RSA key file.
openssl genrsa -out keyname.key 2048
  • Create the certificate signing request file by filling out the interactive form.
openssl req -new -key keyname.key -out CertificateSigningRequest.certSigningRequest

iOS Device

Once you manage to do everything above this, you’ll have to add a device to your account.
To do this, connect your device to your Mac/Pc and navigate inside iTunes under the tab “Summary”, there you will find your Phone UDID.
Otherwise, there are some plugins to download on your device.
We would recommend using iTunes instead of an external plugin.

iOS Certificates for Windows and Linux

Using OpenSSL

  • Download your iOS certificate to the same directory as your private RSA key.
  • Change the format of the iOS certificate to PEM.
openssl x509 -inform DER -outform PEM -in ios_development.cer -out ios_development.cer.pem
  • Export the certificate as a .p12 file, giving it a strong password.
openssl pkcs12 -export -inkey keyname.key -in ios_development.cer.pem -out Certificates.p12

Provisioning Profile

Provisioning profiles give your app access to be installed, or provisioned, on specific devices. For iOS App Development provisioning profiles, devices are selected manually.

  • Under Distribution, select App Store.
  • Select the correct App ID (with the Bundle ID matching your app’s config.xml file) or choose to use Wildcard to allow this profile to be used for every app.
  • Select the certificate you generated.
  • Download the .mobileprovision file, which is your provisioning profile file.

In the same way as Distribution, now go for Development:

  • Under Development, select iOS App Development.
  • Select the correct App ID (with the Bundle ID matching your app’s config.xml file) or choose to use Wildcard to allow this profile to be used for every app.
  • Select the certificate you generated.
  • Download the .mobileprovision file, which is your provisioning profile file.

To publish the app go to the relative guide.

Final step

Send us your .mobileprovision and .p12 files with the password used to sign the certificate for Apple and Google the key generated.

Leave a Reply

Your email address will not be published. Required fields are marked *