有没有办法将导出密码直接传递给命令?

发布于 2025-01-21 05:10:38 字数 334 浏览 1 评论 0原文

为了自动执行SSL证书部署的过程,我需要信息是否可以直接在命令中提供导出密码,而无需输入输入?

它使用的命令:

openssl pkcs12 -export -in domain.crt -inkey domain.key -certfile root.crt -out domain.p12

keytool -importkeystore -srckeystore domain.p12 -srcstoretype PKCS12 -destkeystore domain.jks

它仅在输入输入中输入密码后才工作,但我必须直接在命令中输入密码。

谢谢,问候。

To automate the process of SSL certificate deployment, I need information whether the export password and then the security password can be provided directly in the command without the need to enter it in input?

The commands it uses:

openssl pkcs12 -export -in domain.crt -inkey domain.key -certfile root.crt -out domain.p12

keytool -importkeystore -srckeystore domain.p12 -srcstoretype PKCS12 -destkeystore domain.jks

It's working only after i've enter password in input but i must enter password directly in command.

Thanks and greetings.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文