gpt4 book ai didi

tomcat - 无法使用 JDK6 生成 keystore ,但可以使用 JDK5 生成

转载 作者:行者123 更新时间:2023-11-28 22:11:32 29 4
gpt4 key购买 nike

我正在尝试使用以下 keytool 命令为我的应用程序生成 keystore :

keytool -genkey -alias tomcat -keystore tomcat.keystore -keyalg RSA -keysize 2048 < keystore.data.txt

它在 JDK5 上运行良好,在 JDK6 上运行不佳。仅供引用:

用JDK5执行时

Enter keystore password:  What is your first and last name?
[Unknown]: What is the name of your organizational unit?
[Unknown]: What is the name of your organization?
[Unknown]: What is the name of your City or Locality?
[Unknown]: What is the name of your State or Province?
[Unknown]: What is the two-letter country code for this unit?
[Unknown]: Is CN=tpserver-hostname, OU=MyCompany, O=MyOrg., L=MyCity, ST=MyState (ST), C=IN correct?
[no]:
Enter key password for <tomcat>
(RETURN if same as keystore password):

JDK6执行时

Enter keystore password:  Re-enter new password: They don't match. Try again
Enter keystore password: Re-enter new password: They don't match. Try again
Enter keystore password: Re-enter new password: They don't match. Try again
Too many failures - try later

请帮助我。

最佳答案

是的,你是对的。从JDK 6开始添加'重新输入新密码'。所以你必须在密码后输入

关于tomcat - 无法使用 JDK6 生成 keystore ,但可以使用 JDK5 生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37924135/

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