Signing apk with .p12

两盒软妹~` 提交于 2020-01-20 15:12:46

问题


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:

  1. Android Keystore File Lost

  2. Lost my keystore for uploaded app on android market



来源:https://stackoverflow.com/questions/19829630/signing-apk-with-p12

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!