-
Notifications
You must be signed in to change notification settings - Fork 1
3. Keystore Setup
This is for Android only.
You will need to create a keystore file for Android platform. Keystore file is used to upload and to update app binary file to Playstore and is alos used to generate hash keys for interacting with 3rd party service like facebook login.
It's important to know that Playstore will generate another Keystore file for publishing and you may need the hash key of it to interact with 3rd party.
- Enter the command below and input what it asks.
keytool -genkey -v -keystore keystore.key -keyalg RSA -keysize 2048 -validity 10000 -alias key
- Refer Flutter - Create a keystore for details.
-
To get debug hash key (SHA1 and others), enter the command below,
- Just press enter if it asks password,
keytool -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
- And copy SHA1 key and paste it into
Project Settings => Android apps => SHA cetificate fingerprints
.
-
Some 3rd party service like Facebook may ask base64 encrypted hash key, you can get it with the following command
- Just press enter if it asks password,
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
-
To get release hash key (SHA1 and others), enter the command below,
- Just press enter if it asks password,
keytool -exportcert -list -v -alias [key] -keystore [keystore.key]
You can replace [key]
with real key and [keystore.key]
with real keystore file path.
-
Some 3rd party service like Facebook may ask base64 encrypted hash key, you can get it with the following command
- Just press enter if it asks password,
keytool -exportcert -alias YOUR_RELEASE_KEY_ALIAS -keystore YOUR_RELEASE_KEY_PATH | openssl sha1 -binary | openssl base64
- It's important to know that Playstore will generate another Keystore for publish. And you need to input the hash key of it.
- Buy Me a Coffee : https://www.buymeacoffee.com/faisalramdan17
- Contact us on Telegram : https://t.me/faisalramdan17
- Website: https://codingyourlife.id
- GitHub: https://github.com/faisalramdan17
- Facebook : https://www.facebook.com/codingyourlife.id
- Instagram: https://instagram.com/faisalramdan17 & https://instagram.com/codingyourlife.id
- LinkedIn: https://www.linkedin.com/in/faisalramdan17