1
votes

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?

2
you need to follow this steps This will Help youArun R. Prajapati

2 Answers

0
votes

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)

0
votes

keytool is part of jdk, it should be $JAVA_HOME/bin/keytool . make sure to find it in your environment variables