Alias Password for Building Signed APK for Play Store (OSX)

Dear all,

  Recently, I meet a quit strange issue.

  I have recorded the keystore password and alias password for building signed APK to Play Store.

  However, recently the Simulator do not recognise my alias password. This problem only happened on OSX but not Microsoft window.

  My java version is

  java version “1.7.0_79”

Java™ SE Runtime Environment (build 1.7.0_79-b15)

Java HotSpot™ 64-Bit Server VM (build 24.79-b02, mixed mode) 

Forgot to mention, I have updated to latest build and problem persist.

2016.2830

Are you using a VM?

Rob

No. Both window and osx are running on a real computer.

We don’t have such problem for using Corona half year. It just happened recently.

Have you changed anything along the way? Moved your file to a different location? Changed Java versions? Update OS X?

Rob

Dear Rob,

  Thanks for your reply.

  Yes. I originally upgraded the java to 1.8.

  After review the thread.

  https://forums.coronalabs.com/topic/44060-the-password-for-the-key-alias-xxx-was-not-valid/

  I down graded the version to 1.7. But it seemed the problem persist.

  The error message:

  “The password for the alias xxx in Keystore located at xxx.keystore is not correct or the file is not a valid Keystore”

  Anymore information needed?

Java 1.8 works fine to build Android apps on OS X.  I’m not sure how you got the impression that downgrading Java would do anything from that post most of which is long out of date (we’ll do something to stop others tripping over it in the future).

What do you see if you run the keystore alias password validation manually using this Terminal command:

jarsigner -tsa http://timestamp.digicert.com -keystore 'PATH-TO-YOUR-KEYSTORE-FILE' -storepass 'YOUR-KEYSTORE-PASSWORD' -keypass 'YOUR-ALIAS-PASSWORD' /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/\_coronatest.jar NAME-OF-YOUR-ALIAS

For example, this is the correct command line for the Android debug keystore:

jarsigner -tsa http://timestamp.digicert.com -keystore /Applications/CoronaSDK/Resource\ Library/Android/debug.keystore -storepass 'android' -keypass 'android' /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/\_coronatest.jar androiddebugkey

If that all looks nominal, you could try removing your Corona Simulator preferences in case something incorrect has been saved:

defaults delete com.coronalabs.Corona\_Simulator

You’ll need to log in again and you’ll be asked to enter any passwords again.

Forgot to mention, I have updated to latest build and problem persist.

2016.2830

Are you using a VM?

Rob

No. Both window and osx are running on a real computer.

We don’t have such problem for using Corona half year. It just happened recently.

Have you changed anything along the way? Moved your file to a different location? Changed Java versions? Update OS X?

Rob

Dear Rob,

  Thanks for your reply.

  Yes. I originally upgraded the java to 1.8.

  After review the thread.

  https://forums.coronalabs.com/topic/44060-the-password-for-the-key-alias-xxx-was-not-valid/

  I down graded the version to 1.7. But it seemed the problem persist.

  The error message:

  “The password for the alias xxx in Keystore located at xxx.keystore is not correct or the file is not a valid Keystore”

  Anymore information needed?

Java 1.8 works fine to build Android apps on OS X.  I’m not sure how you got the impression that downgrading Java would do anything from that post most of which is long out of date (we’ll do something to stop others tripping over it in the future).

What do you see if you run the keystore alias password validation manually using this Terminal command:

jarsigner -tsa http://timestamp.digicert.com -keystore 'PATH-TO-YOUR-KEYSTORE-FILE' -storepass 'YOUR-KEYSTORE-PASSWORD' -keypass 'YOUR-ALIAS-PASSWORD' /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/\_coronatest.jar NAME-OF-YOUR-ALIAS

For example, this is the correct command line for the Android debug keystore:

jarsigner -tsa http://timestamp.digicert.com -keystore /Applications/CoronaSDK/Resource\ Library/Android/debug.keystore -storepass 'android' -keypass 'android' /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/\_coronatest.jar androiddebugkey

If that all looks nominal, you could try removing your Corona Simulator preferences in case something incorrect has been saved:

defaults delete com.coronalabs.Corona\_Simulator

You’ll need to log in again and you’ll be asked to enter any passwords again.