使用 des3 生成私钥卡住了 [英] Generation of private key using des3 gets stuck
问题描述
我正在关注 Heroku 的文档 以生成一个私有的SSL 证书的密钥.
I'm following Heroku's documentation to generate a private key for an SSL certificate.
当我执行命令openssl genrsa -des3 -out server.pass.key 2048
时,得到如下结果:
When I execute the command openssl genrsa -des3 -out server.pass.key 2048
, I get the following result:
$ openssl genrsa -des3 -out server.pass.key 2048
Loading 'screen' into random state - done
Generating RSA private key, 2048 bit long modulus
..........................+++
..................................................+++
我无法进入我应该输入密钥密码的提示.
I can't get to the prompt where I'm supposed to enter the passphrase for the keys.
我不明白为什么 OpenSSL 无法完成.我生成了没有三重 DES 的密钥,所以我猜错误在于加密.我怎样才能解决这个问题?
I don't understand why OpenSSL fails to complete. I've generated keys without triple DES, so I guess the error is in the encryption. How can I get this solved?
推荐答案
我在 Git for Windows shell 中看到了这个确切的症状.可能是它在尝试要求密码时卡住了,但不能.因此,按照此处的建议,我添加了 -passout pass:MyPassword
并且它起作用了.
I saw this exact symptom in a Git for Windows shell.
It might be that it gets stuck trying to ask for a password but can't.
So as suggested here I added -passout pass:MyPassword
and it worked.
这篇关于使用 des3 生成私钥卡住了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!