JDK-8023546 : sun/security/mscapi/ShortRSAKey1024.sh fails intermittently
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2013-08-22
  • Updated: 2016-08-03
  • Resolved: 2015-06-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9 Other
6-poolResolved 7u91Fixed 8u60Fixed 9 b71Fixed openjdk7uFixed
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8130016 :  
Description
TESTFAIL:sun/security/mscapi/ShortRSAKey1024.sh

ACTION: shell -- Passed. Execution successful
REASON: User specified action: run shell ShortRSAKey1024.sh 1024 
TIME:   3.265 seconds
messages:
command: shell ShortRSAKey1024.sh [1024]
reason: User specified action: run shell ShortRSAKey1024.sh 1024 
elapsed time (seconds): 3.265
STDOUT:
Removing the keypair if it already exists (for unknown reason)...
keytool error: java.lang.Exception: Alias <7106773.1024> does not exist
Creating a temporary RSA keypair in the Windows-My store...

Running the test...
Loaded keystore: Windows-MY
Loaded entry: 7106773.1024
serverPort = 3065
Loaded keystore: Windows-MY

Removing the temporary RSA keypair from the Windows-My store...
Done.
STDERR:
Exception in thread "main" java.lang.Exception: Alias <7106773.1024> does not exist
	at sun.security.tools.keytool.Main.doDeleteEntry(Main.java:1329)
	at sun.security.tools.keytool.Main.doCommands(Main.java:932)
	at sun.security.tools.keytool.Main.run(Main.java:334)
	at sun.security.tools.keytool.Main.main(Main.java:327)


ACTION: shell -- Passed. Execution successful
REASON: User specified action: run shell ShortRSAKey1024.sh 768 
TIME:   3.235 seconds
messages:
command: shell ShortRSAKey1024.sh [768]
reason: User specified action: run shell ShortRSAKey1024.sh 768 
elapsed time (seconds): 3.235
STDOUT:
Removing the keypair if it already exists (for unknown reason)...
keytool error: java.lang.Exception: Alias <7106773.768> does not exist
Creating a temporary RSA keypair in the Windows-My store...

Running the test...
Loaded keystore: Windows-MY
Loaded entry: 7106773.768
serverPort = 3067
Loaded keystore: Windows-MY

Removing the temporary RSA keypair from the Windows-My store...
Done.
STDERR:
Exception in thread "main" java.lang.Exception: Alias <7106773.768> does not exist
	at sun.security.tools.keytool.Main.doDeleteEntry(Main.java:1329)
	at sun.security.tools.keytool.Main.doCommands(Main.java:932)
	at sun.security.tools.keytool.Main.run(Main.java:334)
	at sun.security.tools.keytool.Main.main(Main.java:327)

ACTION: shell -- Failed. Execution failed: exit code 1
REASON: User specified action: run shell ShortRSAKey1024.sh 512 
TIME:   1.031 seconds
messages:
command: shell ShortRSAKey1024.sh [512]
reason: User specified action: run shell ShortRSAKey1024.sh 512 
elapsed time (seconds): 1.031
STDOUT:
Removing the keypair if it already exists (for unknown reason)...
keytool error: java.lang.Exception: Alias <7106773.512> does not exist
Creating a temporary RSA keypair in the Windows-My store...
keytool error: java.security.KeyStoreException: Invalid Signature.

Unable to generate key pair in Windows-My keystore
STDERR:
Exception in thread "main" java.lang.Exception: Alias <7106773.512> does not exist
	at sun.security.tools.keytool.Main.doDeleteEntry(Main.java:1329)
	at sun.security.tools.keytool.Main.doCommands(Main.java:932)
	at sun.security.tools.keytool.Main.run(Main.java:334)
	at sun.security.tools.keytool.Main.main(Main.java:327)
Exception in thread "main" java.security.KeyStoreException: Invalid Signature.

	at sun.security.mscapi.KeyStore.storePrivateKey(Native Method)
	at sun.security.mscapi.KeyStore.access$100(KeyStore.java:58)
	at sun.security.mscapi.KeyStore$KeyEntry.setPrivateKey(KeyStore.java:145)
	at sun.security.mscapi.KeyStore.engineSetKeyEntry(KeyStore.java:409)
	at sun.security.mscapi.KeyStore$MY.engineSetKeyEntry(KeyStore.java:60)
	at java.security.KeyStore.setKeyEntry(KeyStore.java:1271)
	at sun.security.tools.keytool.Main.doGenKeyPair(Main.java:1547)
	at sun.security.tools.keytool.Main.doCommands(Main.java:953)
	at sun.security.tools.keytool.Main.run(Main.java:334)
	at sun.security.tools.keytool.Main.main(Main.java:327)

TEST RESULT: Failed. Execution failed: exit code 1
Comments
Raising priority to P3. This test fails too often periodically and needs to be resolved.
08-06-2015

In recent 3 months (b29 to b38), this test failed 14 times out of the total 1794 runs
10-12-2014

14 times the test failed during a same binary run cycle.
09-12-2014

sun/security/mscapi/PublicKeyInterop.sh fails in nightly run. .... keytool error: java.lang.Exception: Alias <6888925> does not exist..... RULE sun/security/mscapi/PublicKeyInterop.sh Exception java.lang.NullPointerException
10-09-2013

Adding notes for bug matching test sun/security/mscapi/ShortRSAKey1024.sh RULE sun/security/mscapi/ShortRSAKey1024.sh Exception java.lang.Exception: Alias <7106773.1024> does not exist RULE sun/security/mscapi/ShortRSAKey1024.sh Exception java.lang.Exception: Alias <7106773.768> does not exist RULE sun/security/mscapi/ShortRSAKey1024.sh Exception java.security.KeyStoreException: Bad Key.
10-09-2013

Non-critical test problem that occurs intermittently. Deferring past JDK8.
04-09-2013