already saw that, thx anyway. I found out what is problem i think. My game was Draft in Android Console, after i made version 1 game and tried to upload game, google didnt accept it because SHA1 key is randomly given and i should accept it or change it with that pem file(Keystore). hmmm
Did you try Googling "
convert keystore to pem"?
The first 10 results are guides on how to do it.
yes i did, i should use openSSL to convert it but i justcan't get it to work... i tried even cmd but no success
Converting JKS Key and Certificate to PEM
This process uses both Java Keytool and OpenSSL (keytool and openssl, respectively, in the commands below) to export the composite private key and certificate from a Java keystore and then extract each element into its own file.
The PKCS12 file created below is an interim file used to obtain the individual key and certificate files.
Replace
hostname-keystore,
cmhost,
hostname, and
password with values from your system.
- Export the private key and certificate command line:
$ keytool -importkeystore -srckeystore /opt/cloudera/security/jks/hostname-keystore.jks \
-srcstorepass password -srckeypass password -destkeystore /tmp/hostname-keystore.p12 \
-deststoretype PKCS12 -srcalias hostname -deststorepass password -destkeypass password
- Extract the certificate file from the resulting PKCS12 file:
$ openssl pkcs12 -in /tmp/hostname-keystore.p12 -passin pass:password -nokeys \
-out /opt/cloudera/security/pki/hostname.pem
This extracted certificate can be used, as is.
[/paste:font]
Use OpenSSL to extract the private key from the PKCS keystore when needed. This statement extracts the key and saves it to a keystore, giving it the password you provide:
$ openssl pkcs12 -in /tmp/
hostname-keystore.p12 -passin pass:
password \
-nocerts -out /opt/cloudera/security/pki/
hostname.key -passout pass:
password
To generate a key without a password, use this version of the command:
$ openssl rsa -in /tmp/
hostname-keystore.p12 -passin pass:
password \
-nocerts -out /opt/cloudera/security/pki/
hostname.pem
Its so complicated, i cant belive there is no some kind of program to do that... I tryied with cmd via java keytool but im getting all the time Access is denied. -.-
*********
Moderator Edit: triple post merged. Please don't make back-to-back posts. Use the edit feature to update previous post.