我只是試圖使用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