Reputation: 10905
I have a .key file and a signed .apk file (android phongap application built using phonegap build).
How can I check if the .apk was signed using that key?
Upvotes: 0
Views: 155
Reputation: 2319
You could retrieve and compare the fingerprints of the public keys included in the apk file and your key file.
For the apk:
/META-INF/CERT.RSA
from the apk.keytool -printcert -file CERT.RSA
to compute the SHA1 + MD5 fingerprints.For the key file:
keytool -list -v -keystore <keystore file> -alias <key alias>
.-v
only the MD5 fingerprint will be printed.Upvotes: 1