It then generates the keystore as a file called keystore_name.jks in the directory you’re in. Keytool then prompts you to enter your personal details for creating the certificate, as well as provide passwords for the keystore and the key. Keytool -genkey -v -keystore keystore_name.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias alias_name