JDK-6211837 : Regression Failure: sun/security/tools/keytool/CloneKeyAskPassword.sh on tiger
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 5.0u2
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2004-12-22
  • Updated: 2010-04-02
  • Resolved: 2004-12-22
Related Reports
Duplicate :  
Description
OS : Solaris 9 Sparc
TestCase :
/net/latte/deployment1/regtests/1.5.0/test/sun/security/tools/keytool

JDK 1.5.0_02b3


To Reproduce: run the below testcase.
When prompted for password type in test456

Exception is thrown.

This testcase passes on 1.4.2_07

bash-2.05# ${TESTJAVA}/bin/keytool \
 -keyclone \
 -alias mykey \
 -dest myclone \
 -keystore CloneKeyAskPassword.jks \
 -storepass test123
Enter key password for <mykey>test456

The Following Error is then Displayed:
keytool error: java.security.UnrecoverableKeyException: Cannot recover key
###@###.### 2004-12-22 18:01:27 GMT

Comments
EVALUATION Most likely, this is due to 6178366 which was integrated in b04. User was testing against b03 of 5.0u2. Seems to work fine b04. [wetmore@bongos] 250 >/java/re/jdk/5.0u2/promoted/all/b03/binaries/solaris-sparc/bin/keytool -keyclone \ ? -alias mykey \ ? -dest myclone \ ? -keystore CloneKeyAskPassword.jks \ ? -storepass test123 Enter key password for <mykey>test456 keytool error: java.security.UnrecoverableKeyException: Cannot recover key [wetmore@bongos] 251 >/java/re/jdk/5.0u2/promoted/all/b04/binaries/solaris-sparc/bin/keytool -keyclone -alias mykey -dest myclone -keystore CloneKeyAskPassword.jks -storepass test123 Enter key password for <mykey>test456 Enter key password for <myclone> (RETURN if same as for <mykey>) If this still is a problem in future builds, please reopen this bug. ###@###.### 2004-12-22 21:39:54 GMT
22-12-2004