gpt4 book ai didi

java - Keytool 设置主机名

转载 作者:IT老高 更新时间:2023-10-28 20:32:03 25 4
gpt4 key购买 nike

我只是尝试使用 java keytool,但我不知道如何设置主机名。

这就是我正在尝试的方式:

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]%

由于我已将所有字段设置为主机名,我可以假设我的主机名设置为主机名吗?

最佳答案

CN=hostname - 这是您在这里被要求的第一个选项。令人困惑的是,keytool 将其称为“名字和姓氏”。

关于java - Keytool 设置主机名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2200088/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com