Skip to content

Instantly share code, notes, and snippets.

@mohancm
Last active April 19, 2023 08:32
Show Gist options
  • Save mohancm/6a9d435a9188b37cd454fdff74d9bbe4 to your computer and use it in GitHub Desktop.
Save mohancm/6a9d435a9188b37cd454fdff74d9bbe4 to your computer and use it in GitHub Desktop.
generating keystore using platform keys:
# Platform keys can be found in $ANDROID_ROOT/build/target/product/security/
required files:
- platform.x509.pem
- platform.pk8
# command in linux with JAVA setup
openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.key
openssl pkcs12 -export -in platform.x509.pem -inkey platform.key -name platform -out platform.pem -password pass:mohan100
keytool -importkeystore -srckeystore platform.pem -srcstoretype PKCS12 -srcstorepass mohan100 -destkeystore platform.keystore -deststorepass mohan100
## For Android studio
key store password: mohan100
key alias: platform
key password: mohan100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment