Android Signing Certificates¶
To build signed Android apps in Capawesome Cloud, you need to configure signing certificates. Android apps are signed using a Java Keystore (JKS) file containing your signing key. This certificate ensures the authenticity and integrity of your application.
Configuration¶
To create an Android signing certificate, navigate to the Signing Certificates page in the Capawesome Cloud Console and provide the following information:
- Name: A descriptive name for the certificate (e.g., "Production Android Key").
- Platform: Must be set to
Android. - Type: The certificate type (
DevelopmentorProduction). - Keystore File: The Java Keystore (JKS) file containing the signing key. Must have a
.jksor.keystoreextension. - Keystore Password: The password for the keystore file.
- Key Alias: The alias of the key within the keystore.
- Key Password: The password for the key alias.
Read on for detailed instructions on creating and obtaining these credentials.
Obtaining Credentials¶
Name¶
Choose a descriptive name that helps you identify the certificate's purpose (e.g., "Production Android Key", "Development Key", "Release Certificate"). This name is only used within Capawesome Cloud for organization purposes.
Type¶
Select the appropriate certificate type:
- Development: For development and testing builds that are not distributed publicly.
- Production: For release builds that will be distributed through Google Play Store or other channels.
Keystore File¶
A keystore file is required to sign your Android app. You can create a keystore using Android Studio or the keytool command-line utility.
Create in Android Studio¶
- Open Android Studio and create a new project or open an existing one.
- Click on Build in the top menu, then select Generate Signed Bundle / APK.
- Choose either Android App Bundle or APK and click Next.
- Click on Create new... to generate a new keystore.
- Fill in the required fields:
- Key store path: Choose a location to save your keystore file (e.g.,
my-release-key.jks). - Password: Set a strong password for the keystore.
- Alias: Choose an alias for your key (e.g.,
my-key-alias). - Password: Set a password for the key (can be the same as the keystore password).
- Validity (years): Set the validity period for the key (e.g., 25 years).
- Certificate: Fill in your first and last name, organizational unit, organization, city or locality, state or province, and country code (XX).
- Click OK to create the keystore.
- Complete the signing process by following the prompts to generate the signed bundle or APK.
The keystore file will be saved to the location you specified.
Create using keytool¶
Alternatively, you can create a keystore using the keytool command-line utility that comes with the Java Development Kit (JDK):
keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-key-alias
You will be prompted to:
- Enter a password for the keystore
- Re-enter the password to confirm
- Enter your name and organizational information
- Enter a password for the key (press Enter to use the same password as the keystore)
The keystore file my-release-key.jks will be created in your current directory.
Keep your keystore secure
Store your keystore file in a secure location and never commit it to version control. If you lose your keystore or forget the passwords, you will not be able to update your app on Google Play Store.
Keystore Password¶
This is the password you set when creating the keystore. It protects access to the keystore file itself.
Key Alias¶
The key alias is the name you assigned to the signing key within the keystore. If you created the keystore using Android Studio, this is the value you entered in the Alias field. If you used keytool, this is the value specified with the -alias parameter.
Key Password¶
This is the password for the specific key identified by the key alias. It may be the same as the keystore password or different, depending on how you created the keystore.