有没有办法让keytool不提示输入密钥的密码?(Is there a way to make keytool not prompt for password for the key?)

编程入门 行业动态 更新时间:2024-10-26 04:24:52
有没有办法让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.

更多推荐

本文发布于:2023-08-05 10:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1431241.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密钥   没有办法   提示   密码   keytool

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!