我正在尝试在我的 OpenWRT NSLU2 上运行build-key-pkcs12 user
,为我的 VPN 用户生成一些客户端密钥。一切都运行正常,直到我到达该enter export password
部分,并且 SSH 终端完全冻结。 Enter 绝对不执行任何操作,提示符只是挂起,并且不接受任何输入。我在 Windows 7 下使用 PUTTY。
我一直在关注本指南。
Telnet 的作用完全相同。
# cat /proc/version
Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sun Mar 24 00:20:13 UTC 2013
命令输出:
root@OpenWrt:/etc/easy-rsa/keys# build-key-pkcs12 u
NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/easy-rsa/keys
Generating a 1024 bit RSA private key
.......++++++
...................++++++
writing new private key to 'u.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [UK]:
State or Province Name (full name) [(removed)]:
Locality Name (eg, city) [(removed)]:
Organization Name (eg, company) [N/A]:
Organizational Unit Name (eg, section) [N/A]:
Common Name (eg, your name or your server's hostname) [u]:
Name [George]:
Email Address [test@localhost]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /etc/easy-rsa/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'UK'
stateOrProvinceName :PRINTABLE:'(hidden)'
localityName :PRINTABLE:'(hidden)'
organizationName :PRINTABLE:'N/A'
organizationalUnitName:PRINTABLE:'N/A'
commonName :PRINTABLE:'u'
name :PRINTABLE:'George'
emailAddress :IA5STRING:'test@localhost'
Certificate is to be certified until Aug 5 00:01:55 2025 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
Data Base Updated
Enter Export Password:
这就是终端崩溃的地方。我也尝试过 Windows 7 Telnet,效果相同。
我怎样才能解决这个问题?
有没有其他方法可以在不使用此程序的情况下生成客户端密钥?
注意:按 Enter 键不会执行任何操作。终端不响应任何输入,包括 Ctrl + C
**编辑:Ctrl + D 使终端响应,但随后我得到Can't read password