Signing apk with .p12

Joey picture Joey · Nov 7, 2013 · Viewed 13.7k times · Source

I am going to update my client's app which is available on Google PlayStore. And I have only a .p12 file with password, not .keystore file.

I am wondering if it's possible to publish the updated version to Google PlayStore.

Sorry for basic question. I am so confused with that. Thank you in advance for your assistance.

Answer

authcate picture authcate · Nov 8, 2013

You can just convert your p12 file to jks:

Create an empty JKS store

keytool -genkey -alias anyname -keystore yourcertificate.jks
keytool -delete -alias anyname -keystore yourcertificate.jks

Import yourcertificate.p12 into yourcertificate.jks

keytool -v -importkeystore -srckeystore yourcertificate.p12 -srcstoretype PKCS12 -destkeystore yourcertificate.jks -deststoretype JKS

You can also check this link: http://shib.kuleuven.be/docs/ssl_commands.shtml#keytool