Browse Source

Update exporting_for_android.rst

I ran the original command and keytool printed:                                                                                                                                                         Warning:                                                                                                                The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore debug.keystore -destkeystore debug.keystore -deststoretype pkcs12". 

So I added the `-deststoretype pkcs12` to the command used for the generation. Maybe we should also add a note for old projects to migrate using that command printed by keytool. 

Also, there is a default directory Android/keystores when you install the SDK (tested only on Windows 10 but I think it is the same on Mac & Linux), so maybe we should propose that as the default location for the debug.keystore
Cyril Bos 5 years ago
parent
commit
cfb4867bc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      getting_started/workflow/export/exporting_for_android.rst

+ 1 - 1
getting_started/workflow/export/exporting_for_android.rst

@@ -31,7 +31,7 @@ macOS, you can find it in the ``~/.android`` directory).
 If you can't find it or need to generate one, the keytool command from
 If you can't find it or need to generate one, the keytool command from
 the JDK can be used for this purpose::
 the JDK can be used for this purpose::
 
 
-    keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999
+    keytool -keyalg RSA -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999 -deststoretype pkcs12
 
 
 This will create a ``debug.keystore`` file in your current directory. You should move it to a memorable location such as ``%USERPROFILE%\.android\``, because you will need its location in a later step. For more information on ``keytool`` usage, see `this Q&A article <https://godotengine.org/qa/21349/jdk-android-file-missing>`__.
 This will create a ``debug.keystore`` file in your current directory. You should move it to a memorable location such as ``%USERPROFILE%\.android\``, because you will need its location in a later step. For more information on ``keytool`` usage, see `this Q&A article <https://godotengine.org/qa/21349/jdk-android-file-missing>`__.