<分区>
收到命令 c:\java\jre8\bin\keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048
如你所见,我忘了告诉文件名和位置 一切顺利, keystore 似乎已创建 但 keystore 文件是在哪里创建的?!
<分区>
收到命令 c:\java\jre8\bin\keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048
如你所见,我忘了告诉文件名和位置 一切顺利, keystore 似乎已创建 但 keystore 文件是在哪里创建的?!
最佳答案
默认文件名为.keystore
和位置 c:\Users\
感谢this answer这给了我一个提示
现在我知道了,这是有道理的。
另外from the docs :
-keystore keystore
The keystore location.
...
For example, if keytool -genkeypair is invoked and the -keystore option is not specified,
the default keystore file named .keystore in the user's home directory will be created if it does not already exist.
Similarly, if the -keystore ks_file option is specified but ks_file does not exist, then it will be created
关于windows - java 8 keytool 使用的默认 keystore 文件名和位置是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50216531/