Debug.keystore
PJPL
Member Posts: 24
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.
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
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
Also remember to keep the keystore file in a safe location as any updates to the app will require the same keystore file.
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
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left