2016-06-20 6 views
1

Ich versuche Schlüsselspeicher für meine Anwendung mit keytool Befehl zu erzeugen folgt:können nicht Keystor JDK6 aber in der Lage zu erzeugen, mit JDK5 zu erzeugen

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

Und es funktioniert mit JDK5 fein und nicht mit JDK6 arbeiten. FYI:

Wenn mit JDK5 Ausführung

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): 

Wenn gleiche mit 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 

Bitte helfen Sie mir Ausführung.

Antwort

1

Ja, Sie sind richtig. 'Neues Passwort erneut eingeben' wurde seit JDK6 hinzugefügt. Also müssen Sie nach dem Passwort eingeben

+0

Ja, danke @Uday –

1

Ich habe eine Lösung für mein Problem.

'Erneut neues Passwort eingeben:' ist neu in jdk6 & jdk7 Version und nicht mit jdk5 fragen. Also, kopierte und fügte neues Passwort unter Passwort in meiner 'keystore.data.txt' Datei dann in der Lage, Keystore-Datei zu generieren.