admin管理员组文章数量:1549475
我是SSL新手。
I am new to SSL.
我正在尝试使用keytool为SSL连接创建密钥库。 首先,我尝试了以下命令
I am trying to create keystore for SSL connection using keytool. First I tried the following command
[aniket@localhost bin]$ keytool -genkey -alias myKeyStore -keyalg RSA -keystore
/home/aniket/keystore
询问我密码和其他详细信息,最后给了我以下错误
It asked me password and other details and finally gave me following error
keytool error: java.io.FileNotFoundException: /home/aniket/keystore
(Is a directory)
所以我在keystore文件夹中创建了一个文件keystoreFile.txt并执行了
So I created a file keystoreFile.txt inside keystore folder and executed
[aniket@localhost bin]$ keytool -genkey -alias myKeyStore -keyalg RSA -keystore
/home/aniket/keystore/keystoreFile.txt
现在(没有提示输入密码等),我得到
and now(no prompt for password etc) I am getting
keytool error: java.lang.Exception: Keystore file exists, but is empty:
/home/aniket/keystore/keystoreFile.tx
文件内容应该是什么。 尽管keytool会生成密钥对(一个公共密钥和相关的私有
What should be the contents of the file. I though keytool will generate key pair (a public key and associated private
版权声明:本文标题:java密钥库文件存在但为空_keytool错误:java.lang.Exception:密钥库文件存在,但为空... 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727229334a1103517.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论