感谢您的宝贵时间。我正在尝试从 PKCS12 文件创建 java keystore 。
这以前有效,但我已经做了一些工作,使用命令 keytool -importkeystore -deststorepass:file ...
此功能显然在 Java > 7 中可用: http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/keytool.html
-storepass[:env|:file] argument Note: All other options that require passwords, such as -keypass, -srckeypass, -destkeypass -srcstorepass, and -deststorepass, accept the env and file modifiers. (Remember to separate the password option and the modifier with a colon, (:).)
但由于某种原因,我收到消息:非法选项:-deststorepass:file
有谁知道我在这里做错了什么,或者如何正确使用带有 :file 修饰符的 keytool 命令?
最佳答案
我已将 java 版本设置为 1.7,但忽略了将 keytool 设置为适当的版本。
update-alternatives --set keytool [path]
关于Java keytool - 非法选项 deststorepass :file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25932980/