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

标签 tomcat keystore

我正在尝试使用以下 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/

相关文章:

git - Tomcat 应用程序无法启动

javascript - TOMCAT 向请求添加参数时返回 400 (bad request)

java - "Software caused connection abort: socket write error"的官方原因

Java KeyStore 重复别名

java - 在 Java 中验证证书会引发异常 - 无法找到指向请求目标的有效证书路径

java - 未找到 Web 服务器 AngularJs GET 404

ssl - keystore 中已过期但已过时的证书是一个问题吗?

java - 告诉 Java 使用 Windows keystore

java - 安装更新 SSL 证书会破坏 Java Web 集成吗?

python - 使用 saltstack 设置环境变量