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?
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?
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.