Published on 10/11/2022
Published by Pratik Takle
how to create keystore for android-react native repository
-
- Open a command window/terminal and switch to that directory.
- Then run:
-
1keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
- Keytool prompts you to provide passwords for the Keystore, the Distinguished Name fields, and the password for your key. It then generates the Keystore as a file called
my-release-key.keystore
in the directory, you’re in. The Keystore and key are protected by the passwords you entered. The Keystore contains a single key, valid for 10000 days. Thealias_name
is a name that you — will use later, to refer to this Keystore when signing your application. - Convert Keystore to pkcs12
1keytool -importkeystore -srckeystore my-release-key.keystore -destkeystore askalpha-release-key.keystore -deststoretype pkcs12 - for more information on signing Android apps go here: http://developer.android.com/tools/publishing/app-signing.html
- You can also watch a video on this – https://youtu.be/0UwnF4tsXtY?t=74
- https://reactnative.dev/docs/signed-apk-android