Skip to content

Instantly share code, notes, and snippets.

@kevinpelgrims
Created September 18, 2017 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinpelgrims/c24d210afc5a67598caab8c8a54adb50 to your computer and use it in GitHub Desktop.
Save kevinpelgrims/c24d210afc5a67598caab8c8a54adb50 to your computer and use it in GitHub Desktop.
Compare certificate fingerprints (Android)

Compare certificate fingerprints of APK with local keystore

  1. Unpack APK and get certificate fingerprints

unzip app-release.apk -d app-release/

keytool -printcert -file app-release/META-INF/CERT.RSA (the file might have a different name, but there is only one .RSA file)

  1. Get local keystore certificate fingerprints

keytool -list -keystore my-signing-key.keystore

  1. Compare!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment