Generating Android release certificates
keytool
is a Java utility that manages keys and certificates. The keytool
utility stores the keys and certificates in a keystore.
In this recipe, you will understand how to use the keytool
utility to generate Android certificates. This step is required to sign and publish your app in the Google Play Store.
Getting ready
Before following along with this recipe, you should have completed the previous recipes in this chapter: Registering your Android app on Google Play and Installing and configuring fastlane.
How to do it...
You will now create an Android keystore. Follow these steps:
- On Mac/Linux, use the following command:
keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
- On Windows, use the following command:
...keytool -genkey -v -keystore c:\Users\USER_NAME\key.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias androidkey