Hi,
I found a solution in somewhere on internet, the right command format is:
keytool -genkey -v -genkeypair -alias youralias -keypass yourpassword -keystore keystorefilename.keystore -keyalg RSA -keysize 2048 -validity 10000 -sigalg SHA1withRSA
Note: youralias, yourpassword and keystorefilename, you write the appropriate for you
I think the error was one of two or both:
1- my password contains invalid characters like . ^ { - _
2- I did not use parameter -sigalg SHA1withRSA
Note: password in (-keypass yourpassword) has to be the same you enter when you are asked for password, for that you have to be sure you are using the same password in three places:
1- in command line when you use keytool command
2- When you asked for password through execution of keytool command
3- In android Export page in godot engine in release section, the field name is "Release Password", and ofcourse the value of field "Release user" in export page has to be the same you used with -alias (youralias) in keytool command.
So, apk file was created successfully in release mode, I hope this will help someone.
Thank you