问题
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.
回答1:
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
回答2:
These commands worked for me:
keytool -importkeystore -srckeystore yourp12file.p12 -destkeystore keystorefile.keystore -srcstoretype pkcs12
回答3:
No, you can't use .p12 file to uplaod app to Google PlayStore. You need .keystore file.
A P12 file (a file with a .p12 extension) is a type of certificate file (a Personal Information Exchange file). The Packager for iPhone uses this type of certificate to build an iPhone application. You convert the developer certificate you receive from Apple into this form of certificate. So, a .p12 file is for iOS development.
On the other hand, you could try doing a system restore, on your computer, to a previous date in which you haven't misplaced or deleted your key yet.
Also you can view:
Android Keystore File Lost
Lost my keystore for uploaded app on android market
来源:https://stackoverflow.com/questions/19829630/signing-apk-with-p12