All I'm trying to do is create a .keystore file for my android application. But I have two problems
Where is the output .keystore file after I run this command?
keytool -genkey -v -keystore shumi.keystore -alias shumi -keyalg RSA -keysize 2048 -validity 10000
With problem #1, I tried looking for documentation I could understand and answered questions here on stackoverflow. I learned that -keystore
should be a path but I can't seem to find the right syntax. I tried the following code but it gave me a FileNotFoundException
.
keytool -genkey -v -keystore C:/shumi.keystore -alias shumi -keyalg RSA -keysize 2048 -validity 10000
Happy Holidays and please, someone help.
Keytool generates the keystore file in the current folder, if you only pass a file name after -keystore
.
The FileNotFoundException
in your second command is just a permission problem: Windows doesn't allow regular users to create new files in C:\\
. Just use a path where you have write privileges like your home folder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.