As I rarely build for Android, this is my first time coming across this error. Initially I even forgot you couldn’t use a debug build to upload to Google Play.
I tried using an old .p12 certificate I had, but I kept getting the error: “The password for the Key Store located at /path/KeyNameHere.key.p12 was not valid, or the Key Store was not valid.”
I assumed I had just forgotten the password so I tried the various steps below:
- Created new certificates
- Removed Java using Terminal: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
- Downloaded and Installed Java 6
- Rebooted numerous times
Still leads to the error: “The password for the Key Store located at /path/KeyNameHere.key.p12 was not valid, or the Key Store was not valid.”
Software Details:
Corona Version 2013.2.20
OSX 10.8.2
System > Library > Java > JavaVirtualMachines > 1.6.0.jdk
Any suggestions?
ANSWER:
To create a certificate I used: keytool -genkey -v -keystore mykeystore.keystore -alias aliasname -keyalg RSA -validity 999999
Whereas before I was using: keytool -genkey -v -keystore myketstore.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000
Not sure what made the difference there, but now it’s working. [import]uid: 98804 topic_id: 36428 reply_id: 336428[/import]