[RESOLVED] The password for the Key Store located at /path/KeyNameHere.key.p12 was not valid, or the Key Store was not valid.

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]

This morning I tried removing the 1.6.0.jdk folder, installing the daily build from 3.21.2013 and letting that install Java 6. That didn’t help. I also tried creating another certificate, but that didn’t help either.

Not really sure where to go from here. [import]uid: 98804 topic_id: 36428 reply_id: 144666[/import]

This morning I tried removing the 1.6.0.jdk folder, installing the daily build from 3.21.2013 and letting that install Java 6. That didn’t help. I also tried creating another certificate, but that didn’t help either.

Not really sure where to go from here. [import]uid: 98804 topic_id: 36428 reply_id: 144666[/import]

This morning I tried removing the 1.6.0.jdk folder, installing the daily build from 3.21.2013 and letting that install Java 6. That didn’t help. I also tried creating another certificate, but that didn’t help either.

Not really sure where to go from here. [import]uid: 98804 topic_id: 36428 reply_id: 144666[/import]

This morning I tried removing the 1.6.0.jdk folder, installing the daily build from 3.21.2013 and letting that install Java 6. That didn’t help. I also tried creating another certificate, but that didn’t help either.

Not really sure where to go from here. [import]uid: 98804 topic_id: 36428 reply_id: 144666[/import]