I have run this command keytool -genkey -v -keystore c:/Users/USER_NAME/key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key. I got this in my Terminal 'keytool' is not recognized as an internal or external command, operable program or batch file. How can I resolve this error?
Asked
Active
Viewed 1,369 times
2 Answers
0
keytool is not on the PATH of your OS. You can put keytool on the PATH and run again or execute directly from the folder where it is in (generally is the folder of your jdk)

Rodrigo Bastos
- 2,230
- 17
- 17
0
keytool is part of jdk, it should be $JAVA_HOME/bin/keytool . make sure to find it in your environment variables

Mohamed hassan kadri
- 994
- 6
- 17