windows - java 8 keytool 使用的默认 keystore 文件名和位置是什么?

标签 windows java-8 default keystore keytool

<分区>

收到命令 c:\java\jre8\bin\keytool -genkey -alias tomcat -storetype PKCS12 -keyalg RSA -keysize 2048

如你所见,我忘了告诉文件名和位置 一切顺利, keystore 似乎已创建 但 keystore 文件是在哪里创建的?!

最佳答案

默认文件名为.keystore

和位置 c:\Users\\.keystore

感谢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/

相关文章:

windows - Windows 10 中的信标

windows - 如何更改 Windows Unicode 语言环境/语言的默认字体

当枚举与自定义单元工厂一起使用时,JavaFX 无法设置数据

java - Java8中可以对两个不同的Stream进行比较操作吗?

r - 强制 R 不使用指数表示法(例如 e+10)?

vim - 设置 MacVim 默认字体

html - Favicon 在 IE11 中不工作;适用于 FF 和 Chrome

python - 用Python编写后文件开头的奇怪字符

java - Java 8 中::运算符的名称是什么

C++ primer 说我们可以为 "=default"构造函数使用初始化列表