Tuesday, February 28, 2023

How to create a keystore for signed apk in android and flutter

You must add a digital signature to your software in order to share it on the Play Market. Follow these steps to submit your application.

Deployment and upload are the two types of authentication credentials available on Android. The.apk file authenticated with the "deployment key" is downloaded by the end consumers. The.aab/.apk files that developers submit to the Play Store are authenticated using a "upload key" and are then re-signed using the distribution key after being accepted. 

Using the command line, execute the following:

Use the following command on Mac or Linux:.

  keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload




Use the following instruction on Windows:

  keytool -genkey -v -keystore %userprofile%\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload


The upload-keystore.jks file is kept in your personal directory by this programme. Change the argument you give to the -keystore option if you want to store it somewhere else. But don't put the keystore file into public source control; keep it secret!

No comments: