有没有办法让keytool不提示输入密钥的密码?(Is there a way to make keytool not prompt for password for the key?)
我正在尝试生成一个密钥库。 我已为密钥库设置了密码,但我尝试不为密钥设置密码。
keytool -storepass "$password" -keystore ${PFX_broker}server.keystore.jks -alias $brokerCertAlias -validity $validity -genkey -dname "CN=$CN" -noprompt;上面的命令将提示我输入一个密钥密码,当我按回车键时,该密码默认为商店通行证。
是否可以完全跳过为密钥设置密码而没有提示?
I am trying to generate a keystore. I have set a password for the keystore but I am trying to not set a password for the key.
keytool -storepass "$password" -keystore ${PFX_broker}server.keystore.jks -alias $brokerCertAlias -validity $validity -genkey -dname "CN=$CN" -noprompt;The above command will prompt me for a key password which defaults to the store pass when I press enter.
Is it possible to skip setting a password for the key altogether and not have a prompt?
最满意答案
似乎keytool总是需要商店和密钥的密码。 没有其他办法了。
It seems keytool always requires a password for both the store and the key. There is no way around it.
更多推荐
发布评论