Debug.keystore

Hi everyone. I searched the forum (and the web !) to find some informations about this debug.keystore but I didn't find enough answers.
Here's the story : I've got an app, already on appstore and I want it to run on android. BUT I don't have any android device. So I've tried to sign it through Gamesalad servers with a debug.keystore because I want to send the app to some friends of mine so they can test it for me.

The problem is that I don't manage to create this key (because it's not in the directory it should be( ~/.android). I found this command line on the web to create one :

keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"

But I get an error message :

erreur keytool : java.io.IOException: ObjectIdentifier() -- Must be at least two oid components
java.io.IOException: ObjectIdentifier() -- Must be at least two oid components
at sun.security.util.ObjectIdentifier.checkValidOid(ObjectIdentifier.java:95)
at sun.security.util.ObjectIdentifier.(ObjectIdentifier.java:77)
at sun.security.x509.AVAKeyword.getOID(AVA.java:1263)
at sun.security.x509.AVA.(AVA.java:175)
at sun.security.x509.AVA.(AVA.java:128)
at sun.security.x509.RDN.(RDN.java:134)
at sun.security.x509.X500Name.parseDN(X500Name.java:901)
at sun.security.x509.X500Name.(X500Name.java:148)
at sun.security.x509.X500Name.(X500Name.java:135)
at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1153)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:786)
at sun.security.tools.KeyTool.run(KeyTool.java:172)
at sun.security.tools.KeyTool.main(KeyTool.java:166)

Has anyone already tried to do something similar ?

Thank you for your answers !

PJPL.

Answers

  • part12studiospart12studios Member Posts: 620
    you should try this instead..

    keytool -genkey -v -keystore yourgamename.keys -alias yourgamename -keyalg RSA -keysize 2048 -validity 10000

    I have published numerous android apps and this has worked well for all of them. you've got some stuff in there i've never seen before. i'm assuming everything else is configured correctly. should work though.

    Thanks
    Caleb
  • lycettebroslycettebros Member, PRO Posts: 1,598
    concur with @part12studios

    Also remember to keep the keystore file in a safe location as any updates to the app will require the same keystore file.
  • PJPLPJPL Member Posts: 24
    Hi and thank you Caleb and lycettebros.:)

    I've tried this solution to attempt to sign my app through Gamesalad publishing but it didn't work.

    The problem is always the same : I still get a ! next to the password...

    I think I'm going to read again VERY carefully the whole coobook about android publishing and also everything about that on android website.

    I must have missed something.

    PJPL
  • lycettebroslycettebros Member, PRO Posts: 1,598
    make sure there are no non alphanumeric characters (just to be sure) in the password or spaces.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    make sure there are no non alphanumeric characters (just to be sure) in the password or spaces.
    I also think it doesn't play we'll with foreign characters like è or ü. Stuff like that
  • PJPLPJPL Member Posts: 24
    Hi everyone. Sorry for this late answer. I tried to fix this issue by changing my computer language from french to english and it worked ! Thank you for your answers, it's been very helpfull. :)
Sign In or Register to comment.