How to create keystore using keytool?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sprowk
:warning: Old Version Published before Godot 3 was released.

I opened command prompt. Typed cd. Then typed path: “C:\Program files\Java\jdk1.8.0_111\bin\keytool.exe”. Keytool loaded and i could see commands.
Typed: keytool -genkey -alias mydomain -keyalg RSA -keystore KeyStore.jks -keysize 2048 -validity 10000
(and many variations of this) but it alwats displayed:
keytool isnt recognized as an internal or external command, operable program or batch file.
Which commands should i type for generating keystore properly?

:bust_in_silhouette: Reply From: danielpcs

go to “C:\Program files\Java\jdk1.8.0_111\bin” instead and use this: "keytool -genkey -v -keystore Your_personal_file_title.keystore -alias Your_personal_alias -keyalg RSA -keysize 2048 -validity 10000"

change your_personal_file_title name and your_personal_alias (you’ll use the alias and password later so write it up somewhere you’ll remember)

Thanks, tried few more things inspirated by this answer and did it.

Sprowk | 2016-11-14 21:34