Skip to main content
LinkedIn
Copied!

Table of Contents

Obtaining a signing certificate for Android apps

Version:

Only available versions of this content are shown in the dropdown

Guarantee that the code and updates of your mobile app come from a legitimate source by creating a signing certificate for the Android certificate set that is required to generate an installation package for your Android app.

Ensure that you have access to the Java Keytool utility by downloading and installing a version of Java Runtime Environment (JRE) or Java SDK.

You generate a signing certificate with the Java Keytool command line utility that manages keys and certificates. The certificate guarantees that the code and updates of your app come from a legitimate source. The certificate is stored in a .p12 file that you upload to an Android certificate set in Pega Platform.

  1. Open your preferred terminal tool.

    For Windows, open the Command Prompt application.
  2. At the command prompt, enter the following command with variables that match your system configuration: <directory with your Java version installation>\bin\keytool -genkey -v -keystore <target path and name of the certificate>.p12 -alias <unique identification of the certificate in the keystore> -keyalg RSA -keysize 2048 -storetype PKCS12 -validity <number of days for which the certificate is valid>

    The minimum certificate validity for app distribution through Google Play is 25 years.
    Create a uPlusExpensesCertificate.p12 file in the C:\mobile-certificates\ directory, with a certificate size of 2048 bits, and certificate validity of 10000 days. For Windows, with JRE installed in C:\Program Files\Java\jre1.8.0_202 and with C:\ as the active terminal directory, enter the following command:

    "Program Files"\Java\jre1.8.0_202\bin\keytool -genkey -v -keystore mobile-certificates\uPlusExpensesCertificate.p12 -alias uPlusExpenses -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000

  3. Confirm the command by pressing the Enter key.

  4. At the password prompt, set and confirm the password for the keystore.

    This password is required in the Android certificate set in Pega Platform.
  5. Optional:

    To include additional information about the certificate ownership, provide answers to the questions in the terminal:

    1. For every question that you want to answer, enter your response, and then press the Enter key.

      You can skip a question and continue to the next entry by leaving the entry blank and then pressing the Enter key.
      After the last question, the terminal displays a summary of your entries.
    2. If the entries in the summary are incorrect, enter no, press the Enter key, and then repeat step 5.a.

    3. If the entries in the summary are correct, enter yes, and then confirm the data by pressing the Enter key.

The Java Keytool utility creates the .p12 file with your certificate in the location that you specified. You can upload the file to an Android certificate set in Pega Platform.
A mobile app developer obtains a signing certificate for the Android certificate set that is required to generate an installation package for the Android expense reporting app.

Certificate creation with the Java Keytool utility
Terminal commands in Windows Command Prompt that create a P12
                            certificate file for mobile use.

    Suggest Edit
    Did you find this content helpful?

    Have a question? Get answers now.

    Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

    Ready to crush complexity?

    Experience the benefits of Pega Community when you log in.

    We'd prefer it if you saw us at our best.

    Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

    Close Deprecation Notice
    Contact us