Phonegap / cordova keystore for phonegap build no extension

▼魔方 西西 提交于 2020-01-13 20:23:11

问题


I'm switching from the phonegap / cordova CLI to phonegap build to compile my apps. i used to use the commands

  1. phonegap build android
  2. cd platforms/android
  3. ant release

i had a ant.properties file containing this code:

key.store = /Users/xx/myAppKey
key.alias = myApp

As you can see, the myAppKey what should be a .keystore file doesn't have an extension and therefore phonegap build is refusing this file to be a signing key file. How can i solve this issue because i'd like to do all this by using phonegap build from now on, including the key signing

EDIT: I found the solution. I used the following commands to resolve the issue.

first i converted it to a p12 file:

keytool -importkeystore -srckeystore myKey -destkeystore myKey.p12 -deststoretype PKCS12

then from the p12 i made a correct keystore file again:

keytool -v -importkeystore -srckeystore myKey.p12 -srcstoretype PKCS12 -destkeystore myKey.keystore -deststoretype JKS

来源:https://stackoverflow.com/questions/40339359/phonegap-cordova-keystore-for-phonegap-build-no-extension

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