Skip to content

Instantly share code, notes, and snippets.

@Surf-logic
Last active April 25, 2024 01:57
Show Gist options
  • Save Surf-logic/2db2d4caa288b1fc679184a125a62c36 to your computer and use it in GitHub Desktop.
Save Surf-logic/2db2d4caa288b1fc679184a125a62c36 to your computer and use it in GitHub Desktop.
Keytool cheat sheet

Generate new keystore and certificate

  1. Use the following command line to generate a new key
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
  1. Export the certificate for that key to PEM format
keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks
  1. Once you have generated a PEM file please follow the steps below:
Go to Setup > App integrity > App Signing.
Request Upload key reset.
Give a reason why you’re requesting a key reset.
Enter PEM file.
Click Request.

Link to Expo App Credentials

https://docs.expo.dev/app-signing/app-credentials/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment