Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Keytool does not accepts the "yes" word and start again and again [duplicate]

I'm trying to generate a certificate for an Android app with the following command:

keytool -genkey -v -keystore my_key.keystore
-alias my_alias -keyalg RSA -keysize 2048 -validity 10000

When I finish the last question, the

"Its correct [no]: "

message apperars. If I write YES, keytool ignores my answer and starts from the beginning again.

I'm on Windows 7 and jdk1.7.0_79.

See this image

Any idea about it?

like image 773
MickePar Avatar asked Dec 19 '22 16:12

MickePar


1 Answers

It would appear that you are using a locale other than en_us, perhaps es_XX?

As such, keytool is most likely looking for "yes" in your locale ("si" in this case).

like image 177
rmlan Avatar answered May 01 '23 04:05

rmlan