我只是试图使用java keytool,但我无法弄清楚如何设置主机名。Keytool set hostname
这就是我就是在尝试:
hostname[username:/this/is/a/path][640]% keytool -keystore server.keystore -genkeypair -alias hostname
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: hostname
What is the name of your organizational unit?
[Unknown]: hostname
What is the name of your organization?
[Unknown]: hostname
What is the name of your City or Locality?
[Unknown]: hostname
What is the name of your State or Province?
[Unknown]: hostname
What is the two-letter country code for this unit?
[Unknown]: CA
Is CN=hostname, OU=hostname, O=hostname, L=hostname, ST=hostname, C=CA correct?
[no]: yes
Enter key password for <hostname>
(RETURN if same as keystore password):
hostname[username:/this/is/a/path][641]%
既然我已经设定为主机名各个领域我可以假设我的主机名设置为主机名?
这就是我所怀疑的,但我想确保这不是我的问题。什么是不明确的工具。 (谢谢!) – sixtyfootersdude 2010-02-04 14:08:21
在服务器密钥库或客户端信任库上设置主机名是否更重要?无论哪种情况,我们在每台机器上都使用相同的命令,对吗? – MacGyver 2014-05-23 14:57:45