Create keystore problems

pascal83pascal83 Member Posts: 14
Hello everyone, when I follow the GameSalad cookbook to setup my Android Publishing, I haven't got any problem until I tried to create a keystore.
As the cookbook says, I type the following commands in terminal "keytool –genkey –v –keystore mykey.keystore –alias myalias –keyalg RSA –keysize 2048 –validity 10000" .
Then first, the terminal $%^&* has encoder problem, I can't see a word. So i do a little search in Google, find out the system send me some simple questions to answer, i typed in black, filled the form, but the last one "IS CN=......, OU=....., O=....., L=....., ST=....., C=CN correct? [no]: " no matter what I entered here, "yes" or "no" or anything else, the system re-asks me all those questions again. All I can do is press "control+c".
Does anybody have a knowledge in this? I have no idea how to make this works :(
And each app has one of this keystore thing?It means I should create as much keystores as my apps? Or it just a keys or certificates container? Last question, when I try signing an application, where can I find my keystore files?
I'm a newbee in android publishing, plenty of questions, really hope someone can help me here, thank you for everything in advance.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I have a video on key creation.



  • pascal83pascal83 Member Posts: 14
    @FryingBaconStudios Thanks your video! I've done exactly the same thing in your video, I still can't end the loop of infos collection, maybe I entered 8 characters include numbers? The terminal keep asking me all infos again and again, is there any rules for those blanks that I can check?
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited March 2012
    Make sure to update the android SDK and make sure it's in your home folder and not at the harddrive level, also make sure you rename the android sdk folder to sdk. Also when making your key don't use any special characters. You only need one key for android. Other than those things I've never heard of your problem
  • pascal83pascal83 Member Posts: 14
    @FryingBaconStudios Strange problems love me a lot! lol When I tried to create a development key for xcode, I faced another problem that no one else has met. How can I post images in this forum? Never mind, the android SDK has not been fully updated yet, sdk folder is put in the same level as download and document folder and renamed "SDK", I guess is good, finish update first, thanks for your patience.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    No problem this kind of stuff can be tricky.
  • olivier.georgeonolivier.georgeon Member Posts: 2

    Same problem on a mac OSX10.10 in French. The keystore file looks OK: I can check it using the command "keytool -list -keystore .keystore"; it asks for my password and recognizes it just fine (only letters); it returns:
    Type Keystore : JKS
    Fournisseur Keystore : SUN
    Votre Keystore contient 1 entr?e(s)
    , 9 juil. 2015, PrivateKeyEntry,
    Empreinte du certificat (MD5) :

    In the "Signing Your Android App" window in GameSalad, the "Android keystore" has the green checkmark but the "password" field remains with the red stopsign. I am stuck because I can't change the default language on my mac. Is there some language-dependant text in the keystore file that GameSalad fails to parse correctly?

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    @olivier.georgeon said:
    Same problem on a mac OSX10.10 in French. The keystore file looks OK: I can check it using the command "keytool -list -keystore .keystore"; it asks for my password and recognizes it just fine (only letters); it returns:
    Type Keystore : JKS
    Fournisseur Keystore : SUN
    Votre Keystore contient 1 entr?e(s)
    , 9 juil. 2015, PrivateKeyEntry,
    Empreinte du certificat (MD5) :

    In the "Signing Your Android App" window in GameSalad, the "Android keystore" has the green checkmark but the "password" field remains with the red stopsign. I am stuck because I can't change the default language on my mac. Is there some language-dependant text in the keystore file that GameSalad fails to parse correctly?

    yes, you need your keyboard to be set to english, it's been a problem for awhile now:

    https://forums.gamesalad.com/discussion/54819/solution-impossible-apk-sign-in-android-password-wrong-keytool-error-java-io-ioexception

  • olivier.georgeonolivier.georgeon Member Posts: 2

    Thank you @jonmulcahy !

    I forgot to say that I tried changing the keyboard to English before posting my previous message but it did not work.

    But changing the computer's language to English did solve the problem. I did not even have to regenerate the keystore file. There is nothing language-dependant or keyboard-dependant in the keystore file after all.

    I suspect that GameSalad calls keytool, which returns a language-dependant message, and then GS parses this message and fails when the message is not in English. If this is the case, maybe you GS guys could add the -J-Duser.language=en in the call instruction within GS to force the keytool's output message to English regardless of the host's local settings. Just a thought, in case it would help. http://stackoverflow.com/questions/17646757/how-to-set-default-language-for-java-keytool

    Anyway. My first game is working on my Android tablet! I am happy :-)

Sign In or Register to comment.